Saturday, March 21, 2015

configure linux terminal to display khmer font correctly

1- install konsole
~$ apt-get install konsole

2- edit konsole configuration (~/.kde/share/config/konsolerc) as below
[$Version]
update_info=konsole.upd:2.9.0-global-options

[Desktop Entry]
DefaultProfile=Shell.profile

[Favorite Profiles]
Favorites=Shell.profile,khmer-font.profile

[MainWindow]
Height 768=409
State=AAAA/wAAAAD9AAAAAAAABVQAAAGFAAAABAAAAAQAAAAIAAAACPwAAAAA
ToolBarsMovable=Disabled
Width 1366=136


3- create file  ~/.kde/share/apps/konsole/khmer-font.profile with the following content
[Appearance]
ColorScheme=Linux
Font=Monospace,9,-1,5,50,0,0,0,0,0
LineSpacing=5

[Cursor Options]
CursorShape=1

[Encoding Options]
DefaultEncoding=UTF-8

[General]
Environment=TERM=urxvt
Name=khmer-font
Parent=FALLBACK/

[Terminal Features]
BlinkingCursorEnabled=true




4- restart konsole application
5- choose khmer-font profile from konsole menu bar --> settings --> switch profiles --> khmer-font



example

- cat local file

- w3m website
 

No comments:

Post a Comment