Macro Language Reference > Macros > System > langkey
  
langkey
Description
Switches from one input language to another, with the language switch key being the key that generates the given key_code. At present, only a switch between Latin and Arabic is supported, but future versions of PTC ALD may allow other languages to be included.
Syntax
langkey key_code:n
key_code
The keyboard code of the language switch key: can be determined via the * (asterisk) macro. After using the langkey macro to set the language switch key, that key should not be used for any other key assignment; if it is, langkey will not work.
0
Disable the language switch feature.
Additional Information
 
Language switching in this way is not supported on the Unicode version of PTC ALD since Windows now handles the provision of correct Unicode keystrokes based on your current Windows keyboard layout.
The language file (default slukwin.3ad on Windows) can contain multiple langdef sections that map system character codes to the character codes you require. In slukwin.3ad there is only one keyboard definition, which maps from Windows ANSI to PTC ALD ISO. The Arabic language file contains a map to PTC ALD ISO and an Arabic map that generates the character codes used in our Arabic fonts.
 
If you have your own fonts in a customized order, you could include a langdef for the list in a customised language file: this would map the characters accordingly.