Google
 
Showing posts with label nepali. Show all posts
Showing posts with label nepali. Show all posts

Friday, April 03, 2009

Fixing Nepali Unicode in Ubuntu

Setting up to type Unicode Nepali in Ubuntu is easy (just add Keyboard Indicator applet and add Nepali Layout). For more, follow this article in Ubuntu Nepali wiki. However there are few glitches.

Incomplete keyboard layout
The Nepali Romanized Keyboard layout shipped with Ubuntu (located at /usr/share/X11/xkb/symbols/np) is incomplete. The definition for the whole upper row (1-0 keys) are missing. Also, more importantly, zero-width joiner (ZWJ) and zero-width non-joiner (ZWNJ) characters are wrongly defined (ref: standard layout map).

You can find the working version here: http://www.nepalinux.org/input/ne. So lets, fix it. Fire up your terminal


$ cd /usr/share/X11/xkb/symbols/
$ sudo mv np np.bak
$ sudo wget http://www.nepalinux.org/input/ne -O np
Glyph missing
The devanagari fonts included in the standard Ubuntu installation has few Nepali specific glyphs missing. Most notably, 'pareli ra' or 'samyukta ra' (whatever it is called, the one you use in the word 'paryo').

Well, the fix is to install a font file which has this glyph. My recommendation is Lohit Nepali, available at http://nepalinux.org/fonts/. At terminal,

$ cd /usr/share/fonts/truetype
$ sudo wget http://nepalinux.org/fonts/Lohit-Nepali.ttf
$ sudo fc-cache -fv
Now if you want a specific font file (say, Kalimati) to be used as default devanagari font file, follow the following procedure.

Create a file in /etc/fonts/conf.avail/

$ sudo gedit /etc/fonts/conf.avail/64-ttf-nepali.conf
and paste the following content

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Kalimati</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Kalimati</family>
</prefer>
</alias>
</fontconfig>
Now, create a symbolic link to it in /etc/fonts/conf.d/

$ sudo ln -s /etc/fonts/conf.avail/64-ttf-nepali.conf /etc/fonts/conf.d/64-ttf-nepali.conf
You might have to restart X to see the changes.

Tuesday, January 27, 2009

Firefox Nepali Dictionary now public

Firefox Nepali Dictionary Plugin has been approved for public status. The plugin is now also listed at Dictionary and Languages page at Firefox Addon site.

For more on the plugin, see this blog post.

Sunday, December 14, 2008

Nepali Spell-check Dictionary for Firefox

Under Linux, if you have Nepali Spell-check enabled for OpenOffice.org (instructions here), Nepali spell-check works in Firefox as well. But for those who want it just for Firefox (or, Thunderbird), I've created a small extension which does the job.

Installation Instruction

  • Download the installation package here or from Firefox Addon Page.
  • Drag and drop the file to Firefox and follow the instructions
  • For Nepali spell-check, right click in the textbox and select Languages > ne_NP
Choose ne_NP from Languages menu



The extension is currently experimental at
Firefox Addon Page. Please drop your valuable review/comments there.