Homework to be done before creating web-pages in a particular language

(Written with respect to HINDI)


 

First thing you require is a unicode editor. There are many editors available on the net but yudit is an open-source unicode editor available at http://www.yudit.org/

 

Installation

Get the the latest version of yudit.rpm and type

 

$rpm -i yudit.rpm

 

This will install the package. Watch out for errors as you may need some additional software packages. After installing yudit, execute it by typing

 

$yudit

 

 

Install Devanagari-Fonts in Linux

Download the Raghu Devanagari font (raghu.ttf) from http://rohini.ncst.ernet.in/indix/download/font/raghu.ttf

Make a font directory say raghu in your home and copy the font file into it.

 

mkdir ~/raghu

 

The font file should have the extension ".bdf". For this use ttf to bdf converter - ttf2bdf.

 

ttf2bdf raghu.ttf

 

Run the mkfontdir command to create an index of the font file.

 

mkfontdir ~/raghu

 

This will create a fonts.dir file in the font directory. This file contains an entry for each font in the directory. Add the directory to the current fontpath.

 

xset fp+ ~/raghu

 

If xset returns an error, check the permissions so that the font directory, ~/raghu, can be accessed by other users. Set the permissions to rwxr_xr_x. In case problem persists, see that the fonts.dir file is created correctly. Force the server to re-scan for available fonts.

 

xset fp rehash

 

To verify that the font has been correctly installed, you can run the following command

 

xlsfonts | grep  <fontname>

 

Editing html in Unicode Editor

Choose the language in which you want to edit. Switch the editor mode to language X and type in the proper key sequence to get the alphabet in that language. The key sequence produces appropriate UNICODE characters.e.g. I made the page in Hindi with Devanagari script using yudit

 

For more information on UNICODE try the following link:

http://www.unicode.org