Converting website from Baraha fonts to Unicode

If you have a website created using Baraha fonts (or other 3rd party fonts supported by brhhtml tool), you can convert the entire website to Unicode automatically. You can also create and maintain the Unicode pages separately from the ANSI (Baraha Fonts) version.

Click here to access the brhhtml help.

 Important tips before converting the website:

  1. Take the backup before running the utility.
  1. The htm files should have .htm extension only. .html is not supported.
  1. The htm files should have only one type of font encoding. Mixing of Baraha and other 3rd party fonts not supported.
  1. Don't use the Font Name and Font Size in the htm files. Always use Cascaded Style Sheets (CSS) for specifying font name, size and other attributes.
  1. Always use the relative paths to the .htm and .css links within the htm files. If OVERWRITE_SRC_FILE=0, the relative links are automatically updated to the correct paths during the conversion. The absolute links are not touched and retained as is.
  1. Don't use directory paths in the links. Always use the files.

<a href="kavana/content/index.htm">  This is good.

<a href="kavana/content/">  This is not good.


1. Lets say all the htm files are present under a directory called c:\data\vk\files as shown below. Copy the brh2unc.bat and brh2unc_all.bat  batch files to the directory one level above the htm files.  (ex: c:\data\vk\ ).  Make sure the path of the brhhtml.exe in the batch files is correct. (ex: c:\program files\Baraha 7.0\brhhtml.exe). Specify the correct Script and SytleSection parameters in the batch files.

 brhhtml_1.gif (14221 bytes)

2. To convert all the htm files under the c:\data\vk\files directory, run the brh2unc_all.bat at the command prompt as shown below. If the OVERWRITE_SRC_FILE=1 is set in brhhtml.ini file, then the input files are overwritten by the output files. If OVERWRITE_SRC_FILE=0, then new files with the file names like xxx_unc.htm are created.

  brhhtml_3.gif (8741 bytes)

3.  If you want to convert a single file say c:\data\vk\files\index.htm, run the brh2unc.bat at the command prompt passing the absolute path of the file as shown below.

 brhhtml_2.gif (8925 bytes)

 Note: if there is a space within the filename, enclose the entire file name within quotes. (ex: brh2unc.bat  "c:\data\vk\files\copy of index.htm")