[jawsscripts] Re: Languages

  • From: "Tiflotecnia - Rui Fontes" <rui.fontes@xxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 8 Mar 2010 11:13:41 -0000

Hello,

As Jaws 10 changes the Key echo language accordingly to the keyboard 
language, I have searched in Default.JSS, and found the following constants, 
functions and scripts... I think that is possible to make some changes to 
enable the change of synthesizer instead of Key echo language...

I am going to try, but I am only a begginer scripter!

Globals

;For KeyboardLayoutChanged:

;Update and set by script and event

int gbKeyboardLayoutChange,


void function KeyboardLanguageChangedEvent(string sLayoutName, int nLangId, 
string sLangAbbrev)

var

string sMsg

Let gstrKeyboardLayout = sLayoutName

if (GetJCFOption(OPT_LANGUAGE_DETECTION) && (sLangAbbrev!=cscNull)) then

;need to use sAbbrev in call to SetTypingEchoLanguage

SetTypingEchoLanguage(sLangAbbrev)

endIf

If ! gbKeyboardLayoutChange then

Return;

EndIf

Let gbKeyboardLayoutChange = FALSE;

if (sLayoutName!=cscNull) then

let sMsg = FormatString (cKeyboardLayout_L, sLayoutName)

;Cause OT_STATUS message to be short where it applies:

SayFormattedMessage(OT_STATUS, sMsg, sLayoutName)

endIf

endFunction


void Function KillgbKeyboardLayoutChange ()
Let gbKeyboardLayoutChange = FALSE;
EndFunction

Script SwitchInputLanguage(int bAltKey);
;Updates global bool for InputLanguageChanged:
;Force key through if using that for language change:
;Alt key doesn't go through, whereas control key does.
If bAltKey then
 TypeCurrentScriptKey ()
EndIf
Let gbKeyboardLayoutChange=TRUE;
ScheduleFunction("KillgbKeyboardLayoutChange",2)
EndScript



----- Original Message ----- 
From: "Fernando" <fredygnr@xxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, March 08, 2010 1:49 AM
Subject: [jawsscripts] Re: Languages


> I'm sorry... I wrote 'What I can' instead of 'What I can't ' bad....
> ----- Original Message ----- 
> From: "Fernando" <fredygnr@xxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Sunday, March 07, 2010 9:10 PM
> Subject: [jawsscripts] Re: Languages
>
>
> Rui, Harmony:
>
> What I can do is use no more than a keystroke which can be used to switch 
> to
> other languages, such as alt+shift is used in setting keyboard. I use Jaws
> 10.
>
> I know that you can use control+insert+s to open a list where select 
> voices,
> and if you want create profiles, it is possible from Insert+j,
> Languages/Profile/Create new. These new profiles will appear into the list
> opened with control+insert+s.
>
> Rui, I still need to learn a big amount of Portuguese, I know practicly
> nothing about this language. I hardly wrote a little of English, my 
> genuine
> speech is Spanish.
>
> ----- Original Message ----- 
> From: "Tiflotecnia - Rui Fontes" <rui.fontes@xxxxxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Sunday, March 07, 2010 1:40 PM
> Subject: [jawsscripts] Re: Languages
>
>
> Hi Fernando,
>
> Do you want to use a keystroke for each language, or a keystroke for
> displaying a list of languages?
>
> What Jaws are you using?
>
> If you want to practise portuguese, you can mail me in portuguese...
>
> Rui
>
> ----- Original Message ----- 
> From: "Fernando" <fredygnr@xxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Sunday, March 07, 2010 3:34 AM
> Subject: [jawsscripts] Languages
>
>
>> Hi.
>>
>>
>> I'm thinking to use SetSynthLanguage function to change between any
>> languages, using a single keystroke and don't have idea How can I do it.
>> If
>> anyone know how make it, I hope can help me.
>>
>> I use anything like this:
>>
>> Script Language ()
>>
>> SetSynthLanguage ("Castilian Spanish")
>>
>> EndScript
>>
>> And I don't know what another things I should. Well, I'd use like
>> parameters
>> Castilian Spanish, American English and Brazilian Portuguese, which are
>> languages between I wish exchange.
>>
>>
>>
>> What a worst scripter!
>>
>> Greetings
>>
>>
>>
>>
>> __________
>> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>>
>> View the list's information and change your settings at
>> //www.freelists.org/list/jawsscripts
>>
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>
> __________ Información de NOD32, revisión 4921 (20100306) __________
>
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
>
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>
> __________ Información de NOD32, revisión 4923 (20100307) __________
>
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
>
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
> 

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: