Page 1 of 1

Accented letters don't work in Ubuntu 12.04

Posted: Sat Jun 15, 2013 6:19 pm
by meiradarocha
Accented letters (dead keys) don't work in Ubuntu 12.04, brazilian portuguese keyboard. Result "~a" instead "ã". Any workaround?

Re: Accented letters don't work in Ubuntu 12.04

Posted: Sun Jun 16, 2013 8:01 pm
by richmond62
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.

Re: Accented letters don't work in Ubuntu 12.04

Posted: Sun Jun 16, 2013 9:33 pm
by richmond62
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

Re: Accented letters don't work in Ubuntu 12.04

Posted: Sun Jun 16, 2013 9:34 pm
by richmond62
Whoops: here's the stack I mentioned.

Re: Accented letters don't work in Ubuntu 12.04

Posted: Wed Aug 07, 2013 11:30 pm
by meiradarocha
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.