This is a crude little program for those who want to display Urdu pages on the web.
Write Urdu on-the-fly!
by Rizwan Mohammad
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 Unicode characters.
Now if you have a font, supporting Urdu Unicode, loaded on your computer, your browser will display this webpage in Urdu script!
Write a U-TRANS file as explained above. Look at the following example
Type the text displayed below in a file called 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 a Web browser will appear as displayed in the image below:
This is my first Urdu web page. <P>
<font face="Urdu Nastaliq Unicode" size=+3>
ab urdU kA zamAn,h ,hae.
|Urdu Nastaliq Unicode||ArabTeX Home Page||Nastalique|
Department of Physics
Jamia Millia Islamia, New Delhi-110025, INDIA.
U-TRANS, program for creating Urdu Webpages.|
Copyright © 2002 Tabish
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
1st July 2002