[Localization] khmer unicode

Edward Cherlin echerlin at gmail.com
Tue May 27 23:15:41 EDT 2008


On Tue, May 27, 2008 at 2:27 PM, Sayamindu Dasgupta <sayamindu at gmail.com> wrote:
> Hi Bart,
> Could you tell us the exact steps of how to reproduce the issue you
> are seeing, and the expected results ?
> For example:
>
> I press the key 'y' and expect the character ¥ to appear, but only y appears.

(real example)  Compose Y =  produces ¥.

> That would help us try to investigate and fix the problem.
> Thanks,
> Sayamindu

# Khmer digraphs
# A keystroke has to generate several characters, so they are defined
# in this file

<U17fb>    :   "ុះ"
<U17fc>    :   "ុំ"
<U17fd>    :   "េះ"
<U17fe>    :   "ោះ"
<U17ff>    :   "ាំ"

What method are you using to input the Unicode values, and what do you
see for each?

When I use the Raw Code IME to input these Unicode values on a US
Dvorak keyboard, I get the specified Unicode code points, not the
Khmer translation. ៻៼etc.

When I type these characters on the Ubuntu Khmer layout, I also get
the single Unicode characters, not the sequences specified in this
file. I have included the corresponding keys on the QWERTY layout.

៻ U17fb  <
៼ U17fc  ,
៽ U17fd  V
៾ U17fe  :
៿ U17ff  A

> On Mon, May 26, 2008 at 9:21 PM, Bart Geesink <bart at geesink.org> wrote:
>> Hi List,
>>
>> I am trying to get Khmer Unicode working on the XO. So far, almost everything
>> is working as everything is already present in Xorg. However, there are four
>> special characters in Khmer, which are combined vowels (you press one key on
>> your keyboard and two vowels appear). This does not seem to work on the XO.
>> If I press these keycombinations, I get to see an symbol for the
>> corresponding unicode character.
>> The compose key combinations are in this
>> file: /usr/share/X11/locale/en_US.UTF-8/Compose. I copied the one from my
>> openSUSE system (on which it works).

The file on my Ubuntu system shows five combinations, as does the
keyboard layout. Note that these are not Compose sequences, which work
fine. I don't know how this feature is implemented, but here is the
canonical information source on Khmer keyboards from KhmerOS.

http://www.khmeros.info/drupal/?q=en/download/keyboard
"Gnome does not work with the keys that produce two unicode
characters. But you can type the
two components individually.
"E.g. ោ‍ះ can be typed as ោ​ះ"

Javier Sola of KhmerOS knows as much as anybody about Khmer keyboards.
I am copying this message to him. This was discussed recently at

http://www.khmeros.info/drupal/?q=km/node/2631

Also, https://bugzilla.novell.com/show_bug.cgi?id=335944 says that the
problem can be caused by SCIM, which has its own hardcoded compose
table, by incorrect locale definitions, and by errors in environment
variables. For example,

We have been able to fix the problem. It appeared that there were missing
entries for Khmer locales in two files:
/usr/share/X11/locale/locale.dir
/usr/share/X11/locale/compose.dir

In the first file, we added these two lines:
en_US.UTF-8/XLC_LOCALE                  km_KH.UTF-8
en_US.UTF-8/XLC_LOCALE:                  km_KH.UTF-8

In the second file, these two lines have been added:
en_US.UTF-8/Compose            km_KH.UTF-8
en_US.UTF-8/Compose:            km_KH.UTF-8

So the Compose file was there, and everything worked when you had your $LANG
environment variable on en_US.UTF8 (or whatever $LANG you used). When the $LANG
was set to km_KH no compose file would be used since it was missing from the
compose.dir file.

The KhmerOS people say that they applied these changes but still have
the problem.

>> I have changed the language settings so that $LANG is en_US.UTF-8 (in order to
>> be sure that the correct Compose file is used).
>> I also tried to copy the compose file to ~.XCompose but that also didn´t work
>> (this ~.XCompose should override the Compose file
>> in /usr/share/X11/locale/$LANG as suggested here:
>> http://xorg.freedesktop.org/releases/X11R7.1/doc/RELNOTES4.html).
>>
>> I also tried to put:
>> export GTK_IM_MODULE=xim
>> in ~.bashrc as suggested in several places, but that also didn't seem to work.

http://osdir.com/ml/gnome.gtk+.internationalization/2004-04/msg00019.html
(replying to Javier Sola)

"Note that for Compose to work you must select "X input mode" in gtk
input menu; and you must have a correct locale setting.
To make that the default, put export GTK_IM_MODULE=xim
somewhere in your ~/.profile or similar."

Pablo Saratxaga
Mandriva

I am copying this message to Pablo.

>> Does anyone have a clue how I can enable Compose on the XO? Or what I am doing
>> wrong here?
>>
>> Thanks,
>> Bart
>> _______________________________________________
>> Localization mailing list
>> Localization at lists.laptop.org
>> http://lists.laptop.org/listinfo/localization
>
> --
> Sayamindu Dasgupta
> [http://sayamindu.randomink.org/ramblings]
> _______________________________________________
> Localization mailing list
> Localization at lists.laptop.org
> http://lists.laptop.org/listinfo/localization

-- 
Edward Cherlin
End Poverty at a Profit by teaching children business
http://www.EarthTreasury.org/
"The best way to predict the future is to invent it."--Alan Kay


More information about the Localization mailing list