2007-09-02 22:32:34 +00:00
|
|
|
'***************************************************************************
|
|
|
|
' __________ __ ___.
|
|
|
|
' Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
' Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
' Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
' Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
' \/ \/ \/ \/ \/
|
2007-11-11 08:44:48 +00:00
|
|
|
' $Id$
|
2007-09-02 22:32:34 +00:00
|
|
|
'
|
|
|
|
' Copyright (C) 2007 Steve Bavin, Jens Arnold, Mesar Hameed
|
|
|
|
'
|
|
|
|
' All files in this archive are subject to the GNU General Public License.
|
|
|
|
' See the file COPYING in the source tree root for full license agreement.
|
|
|
|
'
|
|
|
|
' This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
' KIND, either express or implied.
|
|
|
|
'
|
|
|
|
'***************************************************************************
|
|
|
|
|
|
|
|
Option Explicit
|
|
|
|
|
|
|
|
Const SSFMCreateForWrite = 3
|
|
|
|
|
|
|
|
' Audio formats for SAPI5 filestream object
|
|
|
|
Const SPSF_8kHz16BitMono = 6
|
|
|
|
Const SPSF_11kHz16BitMono = 10
|
|
|
|
Const SPSF_12kHz16BitMono = 14
|
|
|
|
Const SPSF_16kHz16BitMono = 18
|
|
|
|
Const SPSF_22kHz16BitMono = 22
|
|
|
|
Const SPSF_24kHz16BitMono = 26
|
|
|
|
Const SPSF_32kHz16BitMono = 30
|
|
|
|
Const SPSF_44kHz16BitMono = 34
|
|
|
|
Const SPSF_48kHz16BitMono = 38
|
|
|
|
|
|
|
|
Dim oShell, oArgs, oEnv
|
2008-01-19 18:46:06 +00:00
|
|
|
Dim bVerbose, bSAPI4, bList
|
2007-09-02 23:22:21 +00:00
|
|
|
Dim sLanguage, sVoice, sSpeed
|
2007-09-02 22:32:34 +00:00
|
|
|
|
|
|
|
Dim oSpVoice, oSpFS ' SAPI5 voice and filestream
|
|
|
|
Dim oTTS, nMode ' SAPI4 TTS object, mode selector
|
2007-09-03 17:10:34 +00:00
|
|
|
Dim nLangID, sSelectString
|
2007-09-02 22:32:34 +00:00
|
|
|
|
|
|
|
Dim aLine, aData ' used in command reading
|
|
|
|
|
2008-01-19 18:46:06 +00:00
|
|
|
Dim counter, ende, list
|
2007-09-02 22:32:34 +00:00
|
|
|
|
|
|
|
On Error Resume Next
|
|
|
|
|
|
|
|
Set oShell = CreateObject("WScript.Shell")
|
|
|
|
Set oEnv = oShell.Environment("Process")
|
|
|
|
bVerbose = (oEnv("V") <> "")
|
|
|
|
|
|
|
|
Set oArgs = WScript.Arguments.Named
|
|
|
|
bSAPI4 = oArgs.Exists("sapi4")
|
2008-01-19 18:46:06 +00:00
|
|
|
bList = oArgs.Exists("listvoices")
|
2007-09-02 22:32:34 +00:00
|
|
|
sLanguage = oArgs.Item("language")
|
|
|
|
sVoice = oArgs.Item("voice")
|
2007-09-02 23:29:20 +00:00
|
|
|
sSpeed = oArgs.Item("speed")
|
2007-09-02 22:32:34 +00:00
|
|
|
|
2008-01-19 18:46:06 +00:00
|
|
|
' display a list of voices for the selected language
|
|
|
|
if bList Then
|
|
|
|
'Create SAPI5 object
|
|
|
|
Set oSpVoice = CreateObject("SAPI.SpVoice")
|
|
|
|
If Err.Number <> 0 Then
|
|
|
|
WScript.StdErr.WriteLine "Error - could not get SpVoice object." _
|
|
|
|
& " SAPI 5 not installed?"
|
|
|
|
WScript.Quit 1
|
|
|
|
End If
|
|
|
|
|
|
|
|
list = ""
|
|
|
|
' Select matching voice
|
|
|
|
For Each nLangID in LangIDs(sLanguage)
|
|
|
|
sSelectString = "Language=" & Hex(nLangID)
|
|
|
|
counter =0
|
|
|
|
ende =0
|
|
|
|
While ende <= 0
|
|
|
|
Err.Clear
|
|
|
|
Set oSpVoice.Voice = oSpVoice.GetVoices(sSelectString).Item(counter)
|
|
|
|
|
|
|
|
If Err.Number = 0 Then
|
|
|
|
list = list & oSpVoice.Voice.GetDescription & ","
|
|
|
|
Else
|
|
|
|
ende = 1
|
|
|
|
Err.Clear
|
|
|
|
End if
|
|
|
|
counter = counter + 1
|
|
|
|
Wend
|
|
|
|
Next
|
|
|
|
|
|
|
|
WScript.StdErr.WriteLine list
|
|
|
|
|
|
|
|
WScript.Quit 0
|
|
|
|
End If
|
|
|
|
|
|
|
|
|
2007-09-02 22:32:34 +00:00
|
|
|
If bSAPI4 Then
|
|
|
|
' Create SAPI4 ActiveVoice object
|
|
|
|
Set oTTS = WScript.CreateObject("ActiveVoice.ActiveVoice", "TTS_")
|
|
|
|
If Err.Number <> 0 Then
|
|
|
|
Err.Clear
|
|
|
|
Set oTTS = WScript.CreateObject("ActiveVoice.ActiveVoice.1", "TTS_")
|
|
|
|
If Err.Number <> 0 Then
|
|
|
|
WScript.StdErr.WriteLine "Error - could not get ActiveVoice" _
|
|
|
|
& " object. SAPI 4 not installed?"
|
|
|
|
WScript.Quit 1
|
|
|
|
End If
|
|
|
|
End If
|
|
|
|
oTTS.Initialized = 1
|
|
|
|
|
|
|
|
' Select matching voice
|
2007-09-03 17:10:34 +00:00
|
|
|
For Each nLangID in LangIDs(sLanguage)
|
|
|
|
sSelectString = "LanguageID=" & nLangID
|
2007-09-02 22:32:34 +00:00
|
|
|
If sVoice <> "" Then
|
|
|
|
sSelectString = sSelectString & ";Speaker=" & sVoice _
|
|
|
|
& ";ModeName=" & sVoice
|
|
|
|
End If
|
|
|
|
nMode = oTTS.Find(sSelectString)
|
2007-09-03 17:10:34 +00:00
|
|
|
If oTTS.LanguageID(nMode) = nLangID And (sVoice = "" Or _
|
2007-09-02 22:32:34 +00:00
|
|
|
oTTS.Speaker(nMode) = sVoice Or oTTS.ModeName(nMode) = sVoice) Then
|
|
|
|
If bVerbose Then WScript.StdErr.WriteLine "Using " & sSelectString
|
|
|
|
Exit For
|
|
|
|
Else
|
|
|
|
sSelectString = ""
|
|
|
|
End If
|
|
|
|
Next
|
|
|
|
If sSelectString = "" Then
|
|
|
|
WScript.StdErr.WriteLine "Error - found no matching voice for " _
|
|
|
|
& sLanguage & ", " & sVoice
|
|
|
|
WScript.Quit 1
|
|
|
|
End If
|
|
|
|
oTTS.Select nMode
|
2007-09-02 23:22:21 +00:00
|
|
|
|
|
|
|
' Speed selection
|
2007-09-02 23:29:20 +00:00
|
|
|
If sSpeed <> "" Then oSpVoice.Speed = sSpeed
|
2007-09-02 22:32:34 +00:00
|
|
|
Else ' SAPI5
|
|
|
|
' Create SAPI5 object
|
|
|
|
Set oSpVoice = CreateObject("SAPI.SpVoice")
|
|
|
|
If Err.Number <> 0 Then
|
|
|
|
WScript.StdErr.WriteLine "Error - could not get SpVoice object." _
|
|
|
|
& " SAPI 5 not installed?"
|
|
|
|
WScript.Quit 1
|
|
|
|
End If
|
|
|
|
|
|
|
|
' Select matching voice
|
2007-09-03 17:10:34 +00:00
|
|
|
For Each nLangID in LangIDs(sLanguage)
|
|
|
|
sSelectString = "Language=" & Hex(nLangID)
|
2007-09-02 22:32:34 +00:00
|
|
|
If sVoice <> "" Then
|
|
|
|
sSelectString = sSelectString & ";Name=" & sVoice
|
|
|
|
End If
|
|
|
|
Set oSpVoice.Voice = oSpVoice.GetVoices(sSelectString).Item(0)
|
|
|
|
If Err.Number = 0 Then
|
|
|
|
If bVerbose Then WScript.StdErr.WriteLine "Using " & sSelectString
|
|
|
|
Exit For
|
|
|
|
Else
|
|
|
|
sSelectString = ""
|
|
|
|
Err.Clear
|
|
|
|
End If
|
|
|
|
Next
|
|
|
|
If sSelectString = "" Then
|
|
|
|
WScript.StdErr.WriteLine "Error - found no matching voice for " _
|
|
|
|
& sLanguage & ", " & sVoice
|
|
|
|
WScript.Quit 1
|
|
|
|
End If
|
|
|
|
|
2007-09-02 23:22:21 +00:00
|
|
|
' Speed selection
|
2007-09-02 23:29:20 +00:00
|
|
|
If sSpeed <> "" Then oSpVoice.Rate = sSpeed
|
2007-09-02 23:22:21 +00:00
|
|
|
|
2007-09-02 22:32:34 +00:00
|
|
|
' Filestream object for output
|
|
|
|
Set oSpFS = CreateObject("SAPI.SpFileStream")
|
|
|
|
oSpFS.Format.Type = AudioFormat(oSpVoice.Voice.GetAttribute("Vendor"))
|
|
|
|
End If
|
|
|
|
|
|
|
|
Do
|
|
|
|
aLine = Split(WScript.StdIn.ReadLine, vbTab, 2)
|
|
|
|
If Err.Number <> 0 Then
|
|
|
|
WScript.StdErr.WriteLine "Error " & Err.Number & ": " & Err.Description
|
|
|
|
WScript.Quit 1
|
|
|
|
End If
|
|
|
|
Select Case aLine(0) ' command
|
2007-09-04 22:03:05 +00:00
|
|
|
Case "QUERY"
|
|
|
|
Select Case aLine(1)
|
|
|
|
Case "VENDOR"
|
|
|
|
If bSAPI4 Then
|
|
|
|
WScript.StdOut.WriteLine oTTS.MfgName(nMode)
|
|
|
|
Else
|
|
|
|
WScript.StdOut.WriteLine oSpVoice.Voice.GetAttribute("Vendor")
|
|
|
|
End If
|
|
|
|
End Select
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "SPEAK"
|
|
|
|
aData = Split(aLine(1), vbTab, 2)
|
2007-09-03 17:10:34 +00:00
|
|
|
aData(1) = UTF8decode(aData(1))
|
2007-09-02 22:32:34 +00:00
|
|
|
If bVerbose Then WScript.StdErr.WriteLine "Saying " & aData(1) _
|
|
|
|
& " in " & aData(0)
|
|
|
|
If bSAPI4 Then
|
|
|
|
oTTS.FileName = aData(0)
|
|
|
|
oTTS.Speak aData(1)
|
|
|
|
While oTTS.Speaking
|
|
|
|
WScript.Sleep 100
|
|
|
|
Wend
|
|
|
|
oTTS.FileName = ""
|
|
|
|
Else
|
|
|
|
oSpFS.Open aData(0), SSFMCreateForWrite, false
|
|
|
|
Set oSpVoice.AudioOutputStream = oSpFS
|
|
|
|
oSpVoice.Speak aData(1)
|
|
|
|
oSpFS.Close
|
|
|
|
End If
|
|
|
|
Case "EXEC"
|
|
|
|
If bVerbose Then WScript.StdErr.WriteLine "> " & aLine(1)
|
|
|
|
oShell.Run aLine(1), 0, true
|
2007-11-11 08:31:37 +00:00
|
|
|
If Err.Number <> 0 Then
|
|
|
|
If Not bVerbose Then
|
|
|
|
WScript.StdErr.Write "> " & aLine(1) & ": "
|
|
|
|
End If
|
|
|
|
If Err.Number = &H80070002 Then ' Actually file not found
|
|
|
|
WScript.StdErr.WriteLine "command not found"
|
|
|
|
Else
|
2007-11-11 08:44:48 +00:00
|
|
|
WScript.StdErr.WriteLine "error " & Err.Number & ":" _
|
|
|
|
& Err.Description
|
2007-11-11 08:31:37 +00:00
|
|
|
End If
|
|
|
|
WScript.Quit 2
|
|
|
|
End If
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "SYNC"
|
|
|
|
If bVerbose Then WScript.StdErr.WriteLine "Syncing"
|
|
|
|
WScript.StdOut.WriteLine aLine(1) ' Just echo what was passed
|
|
|
|
Case "QUIT"
|
|
|
|
If bVerbose Then WScript.StdErr.WriteLine "Quitting"
|
|
|
|
WScript.Quit 0
|
|
|
|
End Select
|
|
|
|
Loop
|
|
|
|
|
|
|
|
' Subroutines
|
|
|
|
' -----------
|
|
|
|
|
2007-09-03 17:10:34 +00:00
|
|
|
' Decode an UTF-8 string into a standard windows unicode string (UTF-16)
|
|
|
|
Function UTF8decode(ByRef sText)
|
|
|
|
Dim i, c, nCode, nTail, nTextLen
|
|
|
|
|
|
|
|
UTF8decode = ""
|
|
|
|
nTail = 0
|
|
|
|
nTextLen = Len(sText)
|
|
|
|
i = 1
|
|
|
|
While i <= nTextLen
|
|
|
|
c = Asc(Mid(sText, i, 1))
|
|
|
|
i = i + 1
|
|
|
|
If c <= &h7F Or c >= &hC2 Then ' Start of new character
|
|
|
|
If c < &h80 Then ' U-00000000 - U-0000007F, 1 byte
|
|
|
|
nCode = c
|
|
|
|
ElseIf c < &hE0 Then ' U-00000080 - U-000007FF, 2 bytes
|
|
|
|
nTail = 1
|
|
|
|
nCode = c And &h1F
|
|
|
|
ElseIf c < &hF0 Then ' U-00000800 - U-0000FFFF, 3 bytes
|
|
|
|
nTail = 2
|
|
|
|
nCode = c And &h0F
|
|
|
|
ElseIf c < &hF5 Then ' U-00010000 - U-001FFFFF, 4 bytes
|
|
|
|
nTail = 3
|
|
|
|
nCode = c And 7
|
|
|
|
Else ' Invalid size
|
|
|
|
nCode = &hFFFD
|
|
|
|
End If
|
|
|
|
|
|
|
|
While nTail > 0 And i <= nTextLen
|
|
|
|
nTail = nTail - 1
|
|
|
|
c = Asc(Mid(sText, i, 1))
|
|
|
|
i = i + 1
|
|
|
|
If (c And &hC0) = &h80 Then ' Valid continuation char
|
|
|
|
nCode = nCode * &h40 + (c And &h3F)
|
|
|
|
Else ' Invalid continuation char
|
|
|
|
nCode = &hFFFD
|
|
|
|
i = i - 1
|
|
|
|
nTail = 0
|
|
|
|
End If
|
|
|
|
Wend
|
|
|
|
|
|
|
|
Else
|
|
|
|
nCode = &hFFFD
|
|
|
|
End If
|
|
|
|
If nCode >= &h10000 Then ' Character outside BMP - use surrogate pair
|
|
|
|
nCode = nCode - &h10000
|
|
|
|
c = &hD800 + ((nCode \ &h400) And &h3FF) ' high surrogate
|
|
|
|
UTF8decode = UTF8decode & ChrW(c)
|
|
|
|
nCode = &hDC00 + (nCode And &h3FF) ' low surrogate
|
|
|
|
End If
|
|
|
|
UTF8decode = UTF8decode & ChrW(nCode)
|
|
|
|
Wend
|
|
|
|
End Function
|
|
|
|
|
2007-09-02 22:32:34 +00:00
|
|
|
' SAPI5 output format selection based on engine
|
2007-09-03 17:10:34 +00:00
|
|
|
Function AudioFormat(ByRef sVendor)
|
2007-09-02 22:32:34 +00:00
|
|
|
Select Case sVendor
|
|
|
|
Case "Microsoft"
|
|
|
|
AudioFormat = SPSF_22kHz16BitMono
|
|
|
|
Case "AT&T Labs"
|
|
|
|
AudioFormat = SPSF_32kHz16BitMono
|
2007-09-05 20:08:01 +00:00
|
|
|
Case "Loquendo"
|
|
|
|
AudioFormat = SPSF_16kHz16BitMono
|
|
|
|
Case "ScanSoft, Inc"
|
|
|
|
AudioFormat = SPSF_22kHz16BitMono
|
|
|
|
Case "Voiceware"
|
|
|
|
AudioFormat = SPSF_16kHz16BitMono
|
2007-09-02 22:32:34 +00:00
|
|
|
Case Else
|
|
|
|
AudioFormat = SPSF_22kHz16BitMono
|
2008-01-19 18:46:06 +00:00
|
|
|
WScript.StdOut.WriteLine "Warning - unknown vendor """ & sVendor _
|
2007-09-02 22:32:34 +00:00
|
|
|
& """ - using default wave format"
|
|
|
|
End Select
|
|
|
|
End Function
|
|
|
|
|
2007-09-03 17:10:34 +00:00
|
|
|
' Language mapping rockbox->windows
|
|
|
|
Function LangIDs(ByRef sLanguage)
|
2007-09-02 22:32:34 +00:00
|
|
|
Dim aIDs
|
|
|
|
|
|
|
|
Select Case sLanguage
|
|
|
|
Case "afrikaans"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h436)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "bulgarian"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h402)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "catala"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h403)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "chinese-simp"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h804) ' PRC
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "chinese-trad"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h404) ' Taiwan. Perhaps also Hong Kong, Singapore, Macau?
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "czech"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h405)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "dansk"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h406)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "deutsch"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h407, &hc07, &h1007, &h1407)
|
2007-09-02 22:32:34 +00:00
|
|
|
' Standard, Austrian, Luxembourg, Liechtenstein (Swiss -> wallisertitsch)
|
|
|
|
Case "eesti"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h425)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "english"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array( &h809, &h409, &hc09, &h1009, &h1409, &h1809, _
|
|
|
|
&h1c09, &h2009, &h2409, &h2809, &h2c09, &h3009, _
|
|
|
|
&h3409)
|
2007-09-02 22:32:34 +00:00
|
|
|
' Britsh, American, Australian, Canadian, New Zealand, Ireland,
|
|
|
|
' South Africa, Jamaika, Caribbean, Belize, Trinidad, Zimbabwe,
|
|
|
|
' Philippines
|
|
|
|
Case "espanol"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array( &h40a, &hc0a, &h80a, &h100a, &h140a, &h180a, _
|
|
|
|
&h1c0a, &h200a, &h240a, &h280a, &h2c0a, &h300a, _
|
|
|
|
&h340a, &h380a, &h3c0a, &h400a, &h440a, &h480a, _
|
|
|
|
&h4c0a, &h500a)
|
2007-09-02 22:32:34 +00:00
|
|
|
' trad. sort., mordern sort., Mexican, Guatemala, Costa Rica,
|
|
|
|
' Panama, Dominican Republic, Venezuela, Colombia, Peru, Argentina,
|
|
|
|
' Ecuador, Chile, Uruguay, Paraguay, Bolivia, El Salvador,
|
|
|
|
' Honduras, Nicaragua, Puerto Rico
|
|
|
|
Case "esperanto"
|
|
|
|
WScript.StdErr.WriteLine "Error: no esperanto support in Windows"
|
|
|
|
WScript.Quit 1
|
|
|
|
Case "finnish"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h40b)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "francais"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h40c, &h80c, &hc0c, &h100c, &h140c, &h180c)
|
2007-09-02 22:32:34 +00:00
|
|
|
' Standard, Belgian, Canadian, Swiss, Luxembourg, Monaco
|
|
|
|
Case "galego"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h456)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "greek"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h408)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "hebrew"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h40d)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "islenska"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h40f)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "italiano"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h410, &h810) ' Standard, Swiss
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "japanese"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h411)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "korean"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h412)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "magyar"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h40e)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "nederlands"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h413, &h813) ' Standard, Belgian
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "norsk"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h414) ' Bokmal
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "norsk-nynorsk"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h814)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "polski"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h415)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "portugues"
|
2007-09-04 12:22:19 +00:00
|
|
|
LangIDs = Array(&h816)
|
|
|
|
Case "portugues-brasileiro"
|
|
|
|
LangIDs = Array(&h416)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "romaneste"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h418)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "russian"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h419)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "slovenscina"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h424)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "svenska"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h41d, &h81d) ' Standard, Finland
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "turkce"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h41f)
|
2007-09-02 22:32:34 +00:00
|
|
|
Case "wallisertitsch"
|
2007-09-03 17:10:34 +00:00
|
|
|
LangIDs = Array(&h807) ' Swiss German
|
2007-09-02 22:32:34 +00:00
|
|
|
End Select
|
|
|
|
End Function
|
2008-01-19 18:46:06 +00:00
|
|
|
|
|
|
|
|