[Localization] Khmer keyboard composed keys with xim

Philipp Kocher philipp.kocher at gmx.net
Sun Jun 28 20:19:55 EDT 2009


Hello

Below is a short description of how to get the composed keys (one
keystroke generates multiple characters) of the Khmer keyboard on the XO
working with the xim (based on build 802).
Please give feedback (e.g. what are the known problems with this 
configuration) or help testing (e.g. the Write Activity behaves 
sometimes strangely with the default font "DejaVu Serif", showing 
sometimes Khmer and sometimes just wired characters ...).

1. Install rpm "khmeros-fonts-base" (available in Fedora repos)
2. Copy the attached file "kh" to /usr/share/X11/xkb/symbols/
3. Copy the attached file "keyboard" to /etc/sysconfig/
4. Replace in the script /usr/bin/olpc-session the line "export
GTK_IM_MODULE" with "export GTK_IM_MODULE="xim""
5. Append the content of the attached file Compose to
/usr/share/X11/locale/en_US.UTF-8/Compose
6. Add the aliases "km_KH.utf8  km_KH.UTF-8" and "km_KH.utf8:
km_KH.UTF-8" to the file /usr/share/X11/locale/locale.alias
7. Add the references "en_US.UTF-8/XLC_LOCALE  km_KH.UTF-8" and
"en_US.UTF-8/XLC_LOCALE:  km_KH.UTF-8" to the file
/usr/share/X11/locale/locale.dir
8. Add the references "en_US.UTF-8/Compose  km_KH.UTF-8" and
"en_US.UTF-8/Compose:  km_KH.UTF-8" to the file
/usr/share/X11/locale/compose.dir

- In point 6., 7. and 8. the difference between the two strings is just
a colon.
- The when changing the language, the Sugar Control Panel writes 
"LANG="km_KH.utf8"" in the file ~/.i18n and not km_KH.UTF-8 as expected. 
The switch for the "xim" input method in /usr/bin/olpc-session for am_ET 
and ne_NP probably doesn't work?
- I didn't create a new Compose file for km_KH because this means that
the composed keys just work if the language is set to Khmer. I think it
is better when the composed keys work independent of the language
configured in sugar. Other languages use the Compose file in en_US.UTF-8 
as well.

The composed keys with an US keyboard are:
<shift><g>
<shift><j>
<shift><v>
<shift><[>
<shift><s>

Regards,
Philipp

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kh
Url: http://lists.laptop.org/pipermail/localization/attachments/20090629/9776b0ae/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: keyboard
Url: http://lists.laptop.org/pipermail/localization/attachments/20090629/9776b0ae/attachment-0001.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Compose
Url: http://lists.laptop.org/pipermail/localization/attachments/20090629/9776b0ae/attachment-0002.txt 


More information about the Localization mailing list