Accented letters don't work in Ubuntu 12.04

Deploying to Linux? Get penguinated here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
meiradarocha
Posts: 3
Joined: Sat Jun 15, 2013 5:31 pm

Accented letters don't work in Ubuntu 12.04

Post by meiradarocha » Sat Jun 15, 2013 6:19 pm

Accented letters (dead keys) don't work in Ubuntu 12.04, brazilian portuguese keyboard. Result "~a" instead "ã". Any workaround?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Accented letters don't work in Ubuntu 12.04

Post by richmond62 » Sun Jun 16, 2013 8:01 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Accented letters don't work in Ubuntu 12.04

Post by richmond62 » Sun Jun 16, 2013 9:33 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Accented letters don't work in Ubuntu 12.04

Post by richmond62 » Sun Jun 16, 2013 9:34 pm

Whoops: here's the stack I mentioned.
Attachments
Roarquay.zip
stack
(30.4 KiB) Downloaded 318 times

meiradarocha
Posts: 3
Joined: Sat Jun 15, 2013 5:31 pm

Re: Accented letters don't work in Ubuntu 12.04

Post by meiradarocha » Wed Aug 07, 2013 11:30 pm

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.

Post Reply

Return to “Linux”