Accented letters don't work in Ubuntu 12.04
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 3
- Joined: Sat Jun 15, 2013 5:31 pm
Accented letters don't work in Ubuntu 12.04
Accented letters (dead keys) don't work in Ubuntu 12.04, brazilian portuguese keyboard. Result "~a" instead "ã". Any workaround?
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Accented letters don't work in Ubuntu 12.04
tilded a is at position 227 in the ASCII table, so the following will put an tilded a into your textField:
put fld "TextAlreadyTyped" & numToChar(227) into fld "TextAlreadyTyped"
if you get hold of a font editing program such as FontForge (Free): crack open your Linux Terminal and type this;
sudo apt-get install fontforge
you can open a font and see the addresses of the letters you want.
put fld "TextAlreadyTyped" & numToChar(227) into fld "TextAlreadyTyped"
if you get hold of a font editing program such as FontForge (Free): crack open your Linux Terminal and type this;
sudo apt-get install fontforge
you can open a font and see the addresses of the letters you want.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Accented letters don't work in Ubuntu 12.04
If you download the "Roarquay" stack you will find that it will give you the Unicode address for any key that you type.
This means that if you type the key combination that would normally give you a tilded a (or anu other character for that matter)
the unicode address will appear in the textField in the Roarquay stack.
You can then set up your program with a set of "key traps" rather like this script in the stack/card:
on rawKeyDown RKK
set the useUnicode to true
switch RKK
case RKK = 227 then
set the unicodeText of fld "XYZ" to the unicodeText of fld "XYZ" & numToChar(227)
break
end switch
pass rawKeyDown
end rawKeyDown
This means that if you type the key combination that would normally give you a tilded a (or anu other character for that matter)
the unicode address will appear in the textField in the Roarquay stack.
You can then set up your program with a set of "key traps" rather like this script in the stack/card:
on rawKeyDown RKK
set the useUnicode to true
switch RKK
case RKK = 227 then
set the unicodeText of fld "XYZ" to the unicodeText of fld "XYZ" & numToChar(227)
break
end switch
pass rawKeyDown
end rawKeyDown
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Accented letters don't work in Ubuntu 12.04
Whoops: here's the stack I mentioned.
- Attachments
-
- Roarquay.zip
- stack
- (30.4 KiB) Downloaded 318 times
-
- Posts: 3
- Joined: Sat Jun 15, 2013 5:31 pm
Re: Accented letters don't work in Ubuntu 12.04
Thank you, but the problem is that LiveCode can't recognize the input of accented letters that use the dead key input method. I can't use this characters in labels, for example.