Great Reads

Welcome to the world of Greatreads. You can find old as well as newer reads.

Saturday, July 5, 2008

Subject Adding Nepali To Linux


Steps

1) Locale installation:

Basic process:

a) Remove the previous old one if exist

command: rm -rf /usr/lib/locale/ne_NP

b) cp /usr/share/i18n/charmaps/UTF-8.gz /tmp

c) /bin/gunzip -d /tmp/UTF-8.gz

d) Download ne_NP from http://www.nepalinux.org/ldf/ne_NP

e) /usr/bin/localedef -i ne_NP -f /tmp/UTF-8 /usr/lib/locale/ne_NP

f) check by using locale -a

2) Fonts installation:

a) Download samanata.ttf from http://www.nepalinux.org/fonts/samanata.ttf

b) mkdir -p /usr/share/fonts/default/npfonts

c) cp -f samanatha.ttf /usr/share/fonts/default/npfonts/

d) fc-cache -f

e) fc-list to view installed fonts

3) Running Nepali Gnome:

If you are on runlevel 3

a) export LC_ALL=ne_NP at root will change default locale for Nepali env.

b) startx to see nepali Gnome

OR

If you are on runlevel 5

1) Edit locale.aliases of gdm folder

2) Add ' Nepali' ne_NP 

3) Select Nepali on Languages select option of gdm login screen

4) Login to see Nepali Gnome

4) Input system:

A) xkb

Note: only for romanizied input

a) Download ne file from http://www.nepalinux.org/input/ne

b) cp -f files/ne /usr/X11R6/lib/X11/xkb/symbols/pc

c) cp -f files/ne /usr/X11R6/lib/X11/xkb/symbols

d) Add the following lins on /usr/X11R6/lib/X11/xkb/rules/xorg.xml

or /usr/X11R6/lib/X11/xkb/rules/xfree86.xml

<layout>

<configItem>

<name>ne</name>

<description>Nepali_Romanized</description>

</configItem>

<variantList/>

</layout>

e) Adding Nepali Roman keyboard utility in Gnome desktop bottom panelOn the bottom panel right

1) Right click the mouse

2) Click "Add to Panel"

3) Click "Keyboard indicator"

4) Click the "ADD" button

5) Right click the added icon

6) Click "Open keyboard preferences"

7) Click the "Layout" tab

8) Select "Nepali_Romanized" from available layouts

9) Click "ADD and Close"

10) Open Gedit and try to type, you will get Nepali characters

B) iiimf:

Note: Both traditional and romanzied can be done

Download npkeybt.data and npkeybr.data from 

http://www.nepalinux.org/input/npkeybt.data and 

http://www.nepalinux.org/input/npkeybr.data

IIIMF in Debian:

For debian download following deb files from http://www.debian.org

iiimf-htt-csconv , iiimf-htt-le-indic, iiimf-htt-server, iiimf-htt-xbe, iiimgcf, libiiimcf2, libiiimp0 

or simply you can try 'apt-get install iiimf*' if you have good Internet connection.

1) install using dpkg -i package name if you have download from debian site

2) mkdir -p /usr/lib/im/locale/UNIT/NEPALI/data

3) cp npkeybt.data /usr/lib/im/locale/UNIT/NEPALI/data

4) cp npkeybr.data /usr/lib/im/locale/UNIT/NEPALI/data

5) Add the following to /usr/lib/im/locale/UNIT/sysime.cfg

[ ne_NP ]

npkeybt common/ctim.so NEPALI

npkeybr common/ctim.so NEPALI

6) Start iiimf using, /etc/init.d/iiimf-htt-server start

7)Using iiimf:

Open xterm

export GTK_IM_MODULE=iiim gedit

Press ctrl +o 

Press f5 and f6 to get Nepali traditional and romanized input.

IIIMF in FC3:

a)For fc3 download required packages from (http://fedora.redhat.com) or from fc3 DISC 3 

CD.

iiimf-libs-12.1-4, iiimf-le-unit-12.1-4, iiimf-server-12.1-4, iiimf-gtk-12.1-4, iiimf-csconv-12.1-4, 

iiimf-libs-devel-12.1-4, iiimf-gnome-im-switcher-12.1-4

b) rpm -ivh iiim*

c) mkdir -p /usr/lib/im/locale/UNIT/NEPALI/data

d) cp npkeybt.data /usr/lib/im/locale/UNIT/NEPALI/data

e) cp npkeybr.data /usr/lib/im/locale/UNIT/NEPALI/data

f) Add the following to /usr/lib/im/locale/UNIT/sysime.cfg[ ne_NP ]

npkeybt common/ctim.so NEPALI 

npkeybr common/ctim.so NEPALI

g)Start iiimf using, /etc/init.d/iiimf-htt-server start

g)Using iiimf:

# Adding keyboard utility in Gnome desktop bottom panel

On the buttom panel right

1) Right click the mouse

2) Click "Add to Panel"

3) Click "input method switcher"

4) Click the "ADD" button

5) Right click the added icon

6) Select unitle

7)Press f5 and f6 to get nepali traditional and romanized input.

OR

1) ln -s /etc/X11/xinit/xinput.d/iiimf /etc/alternatives/xinput-ne_NP

2) ln-s /etc/alternatives/xinput-ne_NP /etc/X11/xinit/xinput.d/ne_NP

3) Open gedit and press ctrl +o 

4) Press f5 and f6 to get Nepali traditional and romanized input.