Section "InputDevice" ... Option "XkbLayout" "us,th_tis" Option "XkbOptions" "grp:alt_shift_toggle,lv3:ralt_switch,grp_led:scroll" ... EndSectionor, for Xorg 7, add to /etc/X11/xorg.conf:
Section "InputDevice" ... Option "XkbLayout" "us,th" Option "XkbVariant" "basic,tis" Option "XkbOptions" "grp:alt_shift_toggle,lv3:ralt_switch,grp_led:scroll" ... EndSection
LANG=th_TH XIM=<mode>
# dpkg-reconfigure localesor directly edit /etc/environment
# cd /your/font/path # mkfontdir
# cd /your/font/path # type1inst # mkfontdiror, for XFree86 4.3.0:
# cd /your/font/path # mkfontscale -e tis620-0 -e tis620-2 # mkfontdir -e /usr/X11R6/lib/X11/fonts/encodingsor, for Xorg 7:
# cd /your/font/path # mkfontscale -a tis620-0 -a tis620-2 # mkfontdir -e /usr/share/fonts/X11/encodings
# cd /your/font/path # ttmkfdir > fonts.scale # mkfontdir -e /usr/X11R6/lib/X11/fonts/encodingsor, for XFree86 4.3.0:
# cd /your/font/path # mkfontscale -e tis620-0 -e tis620-2 # mkfontdir -e /usr/X11R6/lib/X11/fonts/encodingsor, for Xorg 7:
# cd /your/font/path # mkfontscale -a tis620-0 -a tis620-2 # mkfontdir -e /usr/share/fonts/X11/encodings
$ xset fp+ `pwd` $ xset fp rehash
Section "Files" ... FontPath "/your/font/path1" FontPath "/your/font/path2" ... EndSection
catalogue=/your/font/path1,/your/font/path2and restart X font server
# /etc/rc.d/init.d/xfs restartor use chkfontpath (RedHat & Mandrake only)
# chkfontpath --remove `pwd` # chkfontpath --add `pwd`
# fc-cache -f [/your/font/path]to update fontconfig cache
\documentclass[a4paper]{article} \usepackage[thai]{babel} \begin{document} สวัสดีครับ \end{document}
\bind "C-backslash" "keymap-toggle"This makes Ctrl-Backslash the language toggle key
(Thanks to K.Chanop for the LyX Howto)