You can write a u-trans file, which will be almost exactly like your HTML file, and use either the font tag or Style Sheet for specifying the Urdu font. When you enter the text, start with a line containing only the word "#beginurdu". Then enter the text in ArabTeX code, which is reasonably phonetic. For example, you would write, "mae.n urdU mE.n likhnA pasand kartA ,hU.n". ArabTeX coding is very simple, and easy to learn. End the text with a line containing the word "#endurdu". This can be repeated many times in a page and wherever required, even inside a table caption.
When this file is run through U-TRANS, it produces an HTML file which has all the HTML code which you put in as it is, except that the coded text is replaced by Urdu font characters.
Now if you have Khat-e-Naqsh loaded on your computer, Netscape will display this webpage in Urdu script.
Write a U-TRANS file as explained above. Look at the following example
<HTML>
<HEAD> </HEAD>
<BODY>
This is my first Urdu web page. <P>
<div align=right>
<font face="Urdu Naqsh Nastalique" size=+4>
#beginurdu
mae.n urdU mE.n likhnA pasand kartI ,hU.n
#endurdu
</font> </div>
<P>
</BODY>
</HTML>
Let this file be example.utx. Now give the following command on your shell
prompt, in the directory containing U-TRANS files:
u-trans < example.utx > example.html
This HTML file, when displayed in Netscape will look like the following:
Khat-e-Naqsh Font Khat-e-Naqsh Natalique | ArabTeX Home Page | Nastalique |
Last modified on Mon Jun 5 14:00:44 IST 2000