Help

Fix Khmer Unicode Typing in Ubuntu 11.x

Currently Ubuntu 11.x does not allow for all Khmer vowels to be correctly typed.  If you’ve had trouble typing Khmer in Ubuntu, try this solution and see if it works – it should allow the NiDA keyboard that comes with Ubuntu to be fully used.

Here’s how it can be fixed:
1. Type
sudo gedit /etc/environment
2. Add a line
GTK_IM_MODULE=xim
3. Save and close.

4.Then in terminal type:
sudo gedit /usr/share/X11/locale/en_US.UTF-8/Compose

5. Gedit should open, search for Khmer and make sure the following exists (if not, copy and paste it in):
#
# Khmer digraphs
#
<U17ff> : “ាំ”
<U17fe> : “ោះ”
<U17fd> : “េះ”
<U17fc> : “ុំ”
<U17fb> : “ុះ”
6. Save and reboot.

 

And that’s it!  Let us know if you have any trouble in the comments.

Fix Khmer Unicode Display Problem in OpenOffice | ដោះស្រាយបញ្ហា ការ​បង្ហាញ​ពុម្ពអក្សរ​យូនីកូដ​ខ្មែរ នៅក្នុង OpenOffice

Are Khmer Unicode characters displaying incorrectly in OpenOffice?  When you use a Khmer spelling checker do squares show up intermingled with Khmer script?  The problem is the default GUI font does not contain all the characters of the Khmer Script.

1) To fix the display problem go to Tools>Options…>OpenOffice .org>View and uncheck “Use system font for interface”.

2) Then go to Tools>Options…>OpenOffice .org>Fonts and check “Apply replacement table”. Type “Andale Sans UI” in the box under “Font” (it isn’t in the list) and then select a font that contains a full Khmer character set under “Replace with” (we recommend using the Khmer SBBIC System font).

3) Click the green tick mark.

4) Then go to Tools>Options…>OpenOffice.org>View and make sure that “Use system font for user interface” is NOT checked and click “OK”

Then (if needed) re-boot OpenOffice and it all should look great!

Also, if you see gray spaces between words (they are non-breaking spaces), just click on the “View” menu and choose “Field Shadings” to disable them (or Ctrl+F8).

តើ តួ​ពុម្ពអក្សរ​យូនីកូដខ្មែរ ត្រូវ​បាន​បង្ហាញ​មិន​បាន​ត្រឹម​ត្រូវ​មែន​ទេ​នៅ​ក្នុង OpenOffice របស់​លោកអ្នក? នៅ​ពេល​ដែល​លោកអ្នក​ប្រើ ឧបករណ៍​ពិនិត្យ​អក្ខរាវិរុទ្ធ​ខ្មែរ ដើម្បី​ពិនិត្យ​អត្ថបទ តើ លោកអ្នក ឃើញ​មាន ប្រអប់​ការេ បង្ហាញ​លាយ​ជា​មួយ​អក្សរ​ខ្មែរ ទេ?
បញ្ហា​នេះ​បន្ទាល​មក​ពី​លក្ខណ​ទូ​ទៅ​របស់​ប្រភេទ​ពុម្ពអក្សរ GUI (default GUI font)ដែល​មិន​មាន​នូវ​តួអក្សរ​ខ្មែរ​គ្រប់​ទាំង​អស់។


១) ដើម្បី​ដោះស្រាយ​បញ្ហា​ការ​បង្ហាញ​អក្សរខ្មែរ​មិន​បាន​ត្រឹម​ត្រូវ​សូម ទៅ​កាន់ Tools>Options…>OpenOffice.org>View រួច​សូម​ដក​សញ្ញា​ធីក​ដើម្បី​មិន​ជ្រើសរើស នូវ “Use system font for interface”។


២) បន្ទាប់​មក​សូម​ទៅ​កាន់ Tools>Options…>OpenOffice.org>Fonts រួច​គូស​ធីក​សំរាប់ “Apply replacement table”។ ​វាយ​ “Andale Sans UI” ទៅ​ក្នុង​ប្រអប់​ខាង​ក្រោម “Font” (វា​មិន​ស្ថិត​ក្នុង​តា​រាង​នោះ​ទេ) ហើយ​បន្ទាប់មក​ជ្រើសរើស ប្រភេទ​អក្សរ​មួយ​ដែល​មាន​តួអក្សរ​ខ្មែរ​មួយ​ពេញ​លេញ​ដែល​ត្រូវ​បាន​ដាក់​ខាង​ក្រោម “Replacement with” ( Khmer SBBIC System ល្អ​ប្រើ)។


៣) សូម​ចុច​លើ សញ្ញា​ធីក​ពណ៌​បៃតង។


៤) បន្ទាប់​មក​សូម​ទៅ​កាន់ Tools>Options…>OpenOffice.org>View ហើយ​សូម​បញ្ជាក់​ថា “Use system font for user interface” មិន​ត្រូវ​បាន​គូស​ធីក​ជ្រើស​រើស រួច​ហើយ​សូម​ចុច “OK”។ រួច​សូម re-boot OpenOffice (ប្រសិនជា​ចាំ​បាច់) ហើយ​អត្ថបទ​ភាសាខ្មែរ​របស់​លោកអ្នក​នឹង​មើល​ទៅ​ប្រសើរ​ជាង​មុន។


ផង​ដែរ​នោះ បើសិន​លោកអ្នក​ឃើញ​ចន្លោះ​ពណ៌​ប្រផេះ​រវាង​តួអក្សរ​សូម ចុច លើ “View” menu ហើយ​ជ្រើស​រើស “Field Shadings” ដើម្បី​បំបាត់​នូវ​ចន្លោះ​ទាំង​នោះ(ឬ​ក៏​លោក​អ្នក​អាច ចុច Ctrl និង F8)។

How to Install Khmer Unicode on Windows 7 | របៀប​ដំឡើង ពុម្ពអក្សរ​យូនីកូដខ្មែរ លើ Windows 7:

Actually Khmer Unicode does not need to be installed on Windows 7.  Without making any changes any text you view in Khmer will appear, but will be mostly unreadable because of its small size.

Here is a sample of what Khmer Unicode looks like in Windows 7 when you look on a website (in this case sbbic.org) before any changes are made:

khmer-unicode-windows-7-unaltered

Also, title bars are difficult to read:
khmer-unicode-windows-7-unaltered

So how do we make it so that Windows 7 will display Khmer Unicode correctly and allow you to type in Khmer?

First, download this collection of Khmer Unicode fonts (we collected some of the main Khmer Unicode fonts available  into one .zip file for easy download).  After you download them, extract the files to a folder and then select all the fonts and then right click and choose “Install” (pictured below):
install-khmer-unicode-fonts

Once all the fonts are installed download the SBBIC Khmer Unicode Keyboard so that you will be able to type in Khmer.  Our keyboard is based on the Khmer OS keyboard with a few slight modifications.  It will work with both 32-bit and 64-bit systems.  Download the SBBIC Khmer Unicode Keyboard here.

After downloading, extract the .zip file and double-click on setup:
install-khmer-unicode-keyboard-windows-7

You will also find the SBBIC Khmer Keyboard Layout in the “KhmerKeyboard_SBBIC_1.0.pdf file that you can use for reference when learning to type in Khmer Unicode.

Now that you have installed many of the most used Khmer Unicode fonts and a keyboard, you will find that many websites (such as sbbic.org) will display in Khmer correctly.  But title bars are still difficult to read.

In order to change the Khmer font used in title bars you will need to make some changes to the Windows registry.  Please make a backup of your registry before attempting to make any changes (to backup your registry click the start menu and type “regedit”  The Windows registry editor will appear, then click the file menu and click “Export” and export your registry to a safe location).

You can download this zip file (from nokorsoft.com) that includes the file “fixWindows7.reg” which will make the changes for you or you can manually make the changes.  If you download the zip file extract its contents and double-click the file baned “fixWindows7″ and accept the changes to your registry.  Or you can make the following changes yourself:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
“Daunpenh (TrueType)”=-
“Khmer UI (TrueType)”=-
“Khmer UI Bold (TrueType)”=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
“DaunPenh”=”Khmer OS System”
“Khmer UI”=”Khmer OS System”
“Khmer UI Bold”=”Khmer OS System”

Now restart your computer and everything should be running smoothly!  Now websites in Khmer should display perfectly as this screenshot:
sbbic-fixed-windows-7-khmer

Next, install the Khmer Spelling Checker and also try out the new Khmer Grammar Checker!

តាម​ពិត​ទៅ យើង​មិន​ចាំ​បាច់​ដំឡើង ពុម្ពអក្សរ​ខ្មែរ Khmer Unicode នៅ​លើ Windows 7 ឡើយ។យើង​អាច​មើល​អត្ថបទ ជា​ភាសា​ខ្មែរ​ទាំង ឡាយ​បាន​លើ Windows 7 ក៏​ប៉ុន្តែ​ភាគ​ច្រើន​អត្ថបទ​ទាំង​នោះ​មិន​អាច​អាន​ដាច់​បាន ដោយ​ទំហំ​អក្សរ​របស់​ពួក​វា​តូចៗ​ពេក។

រូប​ខាង​ក្រោម​នេះ​បង្ហាញ​ពី ពុម្ពអក្សរ​យូនីកូដខ្មែរ លើ Windows 7 លើ​ទំព័រ​អ៊ីនធឺណិត នៅ​មុន​ពេល​វា​ត្រូវ​បាន​កែប្រែ៖

khmer-unicode-windows-7-unaltered

ផង​ដែរ​នោះ​របារ​តូចៗ​ក៏​ពិបាក​នឹង​អាន៖
khmer-unicode-windows-7-unaltered

ដូច​ច្នេះ​តើ​យើង​ត្រូវ​ធ្វើ​យ៉ាង​ដូច​ម្ដេច​ទៅ​ដើម្បីអោយ Windows 7 បង្ហាញ ពុម្ពអក្សរ​យូនីកូដខ្មែរ យ៉ាង​ត្រឹម​ត្រូវ ហើយ​យើង​ក៏​អាច​វាយ​អក្សរ​ខ្មែរ​បាន​នោះ ?

ដំបូង​សូម​ទាញ​យក ប្រភេទ​អក្សរ​ខ្មែរ ជាច្រើន (ពួក​យើង​បាន​ធ្វើការ​ប្រមូល​ផ្តុំ ប្រភេទ​អក្សរ​ខ្មែរ​ចំបងៗ ដែល​អាច​រក​បាន ដាក់​ក្នុង ឯកសារ ប្រភេទ .zip file មួយ​ដើម្បី​អោយ​ងាយស្រួល​ក្នុង​ការ​ទាញ​យក)។បន្ទាប់​ពី​លោក​អ្នក​ទាញ​យក​ពួក​វា​ហើយ​សូម​ទាញ​យក​ឯក​សារ​ទាំង​នេះ​ទៅ​ជា​សំណុំ​ឯកសារ​មួយ(folder) រួច select ឯកសារ​ប្រភេទ​អក្សរ​ទាំង​អស់ ហើយ យក​មៅ​ស្តាំ​ដើម្បី​ចុច (right-click)រួច​ជ្រើស​រើស “Install” ដើម្បី​ដំឡើង(សូម​មើល​រូប​ខាង​ក្រោម)៖
install-khmer-unicode-fonts

នៅ​ពេល​ដែល​ប្រភេទ​ពុម្ពអក្សរ​ទាំង​អស់​ត្រូវ​បាន​ដំឡើង​រួច​រាល់ សូម​ទាញ​យក Khmer Unicode Keyboard  របស់ ស.ស.ឈ.ន.ក ដើម្បី​នឹង​អាច​វាយ​ជា​ភាសា​ខ្មែរ​បាន។ តារាង​អក្សរ​របស់​ពួក​យើង​យោង​ទៅ​តាម​តារាង​អក្សរ Khmer OS ដោយ​មាន​ការ​កែប្រែ​បន្តិចបន្តួច។ វា​នឹង​មាន​ដំណើរ​ការ​ល្អ​ជា​មួយ​ទាំង​ប្រព័ន្ធ 32-bit និង 64-bit។ សូមទាញយក Khmer Unicode Keyboard  របស់ ស.ស.ឈ.ន.ក ត្រង់នេះ

បន្ទាប់​ពី​ការ​ទាញ​យក​រួច សូម​ដក​យក ពី​ឯកសារ .zip file និង ចុច​ត្រួត លើ ឯកសារ​ឈ្មោះ setup ៖

install-khmer-unicode-keyboard-windows-7

លោក​អ្នក​និង​រក​ឃើញ​ផង​ដែរ​នូវ Khmer Keyboard Layout របស់ ស.ស.ឈ.ន.ក ក្នុង ឯកសារ​ឈ្មោះ KhmerKeyboard_SBBIC_1.0.pdf ដែល​អ្នក​អាច​ប្រើ​ជា​ឯកសារ​យោង​នៅ​ពេល​អ្នក​វាយ​ពុម្ពអក្សរ​ខ្មែរ Khmer Unicode។
ដោយ​អ្នក​បាន​ដំឡើង ប្រភេទ​អក្សរ ភាគ​ច្រើន​ក្នុង​ចំណោម​ប្រភេទ​អក្សរ​ដែល​គេ​ប្រើ​ច្រើន​បំផុត និង ខ្ទង់​សំរាប់​ចុច​មួយ (keyboard) លោក​អ្នក​នឹង​ឃើញ​ថា គេហទំព័រ​ជា​ច្រើន​ដែល​មាន​អក្សរខ្មែរ បង្ហាញ​នូវ​អក្សរ​ខ្មែរ​យ៉ាង​ត្រឹមត្រូវ។ ប៉ុន្តែ​បារ​ចំណង​ជើង​នៅ​តូច​ពេក​ក្នុង​ការ​អាន។ ដើម្បី​ប្ដូរ​នូវ​ពុម្ពអក្សរ​ខ្មែរ​ដែល​ត្រូវ​បាន​ប្រើ​ក្នុង​របារ​ចំណងជើង​លោក​អ្នក​មាន​ការ​ចាំ​បាច់​ក្នុង​ការ​កែប្រែ​ខ្លះ​នូវ Windows registry។ សូម​ធ្វើ​ការ​ចំលង​ទុក​នូវ registry របស់​លោក​អ្នក​មុន​ពេល​ធ្វើការ​កែប្រែ​ណា​មួយ (ដើម្បី​ចំលង​ទុក registry របស់​លោក​អ្នក​សូម​ចុច start menu រួច​វាយ “regedit” Windows registry editor នឹង​បើក​ឡើង។ បន្ទាប់​មក​សូម​ចុច​លើ file menu រួច​ចុច​លើ “Export” រួច​នាំ​ទាញ​ចេញ registry របស់​លោក​អ្នក​ទៅ​កាន់​កន្លែង​ដែល​មាន​សុវត្ថិភាព)។

លោក​អ្នក​អាច​ ទាញ​យក​ឯកសារ​ប្រភេទ zip file នេះ (ពី nokorsoft.com) ដែល​រួម​បញ្ចូល​ឯកសារ “fixWindows7.reg” ដែល​នឹង​ធ្វើការ​កែប្រែ អោយ​អ្នក រឺ​លោក​អ្នក​អាច​ធ្វើការ​កែប្រែ​ផ្ទាល់​ដៃ​ដោយ​ខ្លួន​ឯង។ បើ​សិន​ជា​លោក​អ្នក​ទាញ​យក​ឯកសារ​នេះ​សូម ដក​យក​ឯកសារ​ខាង​ក្នុង​វា (extract) រួច​ចុច​ត្រួច​លើ​ឯកសារ ឈ្មោះ “fixWindows7″ និង​បន្ទាប់​មក​សូម​ទទួល​យល់​ព្រម​ចំពោះ​ការ​កែប្រែ​នូវ registry របស់​អ្នក។ រឺ​លោក​អ្នក​អាច​ធ្វើការ​កែប្រែ​ផ្នែក​មួយ​ចំនួន​ខាង​ក្រោម​នេះ​ដោយ​ខ្លួន​ឯង៖

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
“Daunpenh (TrueType)”=-
“Khmer UI (TrueType)”=-
“Khmer UI Bold (TrueType)”=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
“DaunPenh”=”Khmer OS System”
“Khmer UI”=”Khmer OS System”
“Khmer UI Bold”=”Khmer OS System”

ឥឡូវនេះ​សូម restart កុំព្យូទ័រ​របស់​អ្នក ហើយ​អ្វីៗ​គួរ​តែ​មាន​ទំនើរ​ការ​ល្អ! ក្នុង​ពេល​នេះ គេហទំព័រ​ជា​ភាសា​ខ្មែរ​គួរ​តែ​បង្ហាញ​នូវ​អក្សរ​ខ្មែរ​យ៉ាង​ត្រឹម​ត្រូវ​ដូច​ក្នុង​រូប​ខាង​ក្រោម​នេះ៖

sbbic-fixed-windows-7-khmer

Using Khmer Unicode Fonts With The Mac

1. Download the khmer Unicode fonts (http://www.khmeros.info/drupal/?q=en/download/fonts)
2. Add the Khmer Unicode keyboard (system preferences-international-input menu)
3. Install X11 (a graphical unix interface) – this comes with OSX Tiger on the set-up disk. If they have an earlier OSX system, they can download it off the Apple website (but it’s 41MB) You run X11 by going to applications-utilities-X11 and need to have it running it before you install openoffice
4. Install OpenOffice (downloadable from their website – 130MB!!!)
5. Install “fondue” if you want other non-ttf fonts besides the system fonts that come with open office (http://fondu.sourceforge.net/)
6. Otherwise you can skip 4 and just copy the KhmerOS fonts to the openoffice font folder (ctrl-click on open office – show package contents – contents – openoffice.org2.0 – share – fonts)
7. Now it should work!

Special thanks to David Narita for these instructions!

Using Khmer Unicode Fonts With The Mac

1. Download the khmer Unicode fonts (http://www.khmeros.info/drupal/?q=en/download/fonts)
2. Add the Khmer Unicode keyboard (system preferences-international-input menu)
3. Install X11 (a graphical unix interface) – this comes with OSX Tiger on the set-up disk. If they have an earlier OSX system, they can download it off the Apple website (but it’s 41MB) You run X11 by going to applications-utilities-X11 and need to have it running it before you install openoffice
4. Install OpenOffice (downloadable from their website – 130MB!!!)
5. Install “fondue” if you want other non-ttf fonts besides the system fonts that come with open office (http://fondu.sourceforge.net/)
6. Otherwise you can skip 4 and just copy the KhmerOS fonts to the openoffice font folder (ctrl-click on open office – show package contents – contents – openoffice.org2.0 – share – fonts)
7. Now it should work!

Special thanks to David Narita for these instructions!

How to Install Khmer Unicode on your Windows XP Computer

This tutorial will walk you through the process of enabling Khmer Unicode on your Windows XP computer (if you need help installing Khmer Unicode on Windows 7 click here).

First download this file and then run the file – when you do you should see something like the following:

Now click the “Next >” button as shown in the picture.


Click the “Next >” again (if a box telling you that the directory does not exist pops up, just tell it to create the directory).


Now click “Exit” (it is possible the “Windows File Protection” box might pop-up before you can click “Exit”, if this occurs, go to the next step to deal with the “Windows Protection” box and then once you are done, click the “Exit” button on the Installer window.


When this box pops-up click “Cancel”


When this box pops-up click “Yes”

Now go here and download the latest Khmer Unicode Install Program (currently it is version 1.2.5) and once it is finished downloading, run the program. When you run it you should see something like the following:

Click “Next”


When this box pops-up click the “Complex & kbd” button (this can take a few moments to install, so please be patient). It is possible that you will need your Windows XP cd at this time – so if you are asked for it, please insert it into your cd-rom.


When the text “Complex script enabled/Keyboard layout added.” appears click the “Close” button.


To finish off the installation, click the “Exit” button.


Now you should see a new button in the lower right corner of your screen saying either, “EN” or “CA”. When you want to type in English, make sure “EN” is showing, and when you want to type in Khmer Unicode, make sure the “CA” is showing. To switch between the two languages, you can click on the button and select (like the picture above shows), or you can press the “Alt” key and the “shift” key which is on the right hand side of your keyboard (if you press the “shift” key that is on the left hand side of your keyboard it will not switch).

Enjoy!