Command-line utilities
brhfc.exe
The batch utility for conversion of text between Baraha and other 3rd party fonts. This utility has the same functions as the FontConvert.
Usage: brhfc InFile OutFile InFont OutFont [ProxyFont]
InFile: Input file in RTF or TXT format.
OutFile: Output file in RTF or TXT format.
InFont: The font of input text to be converted.
OutFont: The font to which text will be converted.
ProxyFont: Optional parameter. If specified, ProxyFont is used instead of OutFont in the OutFile. This font should have the same encoding as the OutFont.
Example:
brhfc input.rtf output.rtf Shree-Kan-850 "BRH Kannada"
brhfc input.rtf output.rtf Shree-Kan-850 "BRH Kannada" "BRH JHK01"
In the above example, the text in the input.rtf is converted from Shree-kan-0850 font to BRH Kannada font encoding and saved as output.rtf file. In the 2nd example, the output text uses and arbitrary font BRH JHK01 instead of BRH Kannada font.
The following 3rd party font encodings are supported by the tool.
Baraha Kan New - Kannada font used in older versions of Baraha
Baraha Devanagari - Devanagari font used in older versions of Baraha
Shree-Kan-0850 - Kannada font from ShreeLipi
SHREE_DECCAN - Kannada font used in Prajavani news paper.
KN-TTUma - Kannada font from CDAC
KNW-TTUma - Kannada font used in Kannadaprabha news paper
AkrutiKndPadmini - Kannada font from Akruti
brhdc.exe
The batch utility for data conversion. This utility allows you to convert Indian language text from one script to another AND/OR from one data format to another. The text to be converted may contain different scripts in ANSI, UNICODE or LATIN formats. For example, let's say you have Kannada text in ANSI format (text that uses "BRH Kannada" font) along with Telugu text in UNICODE format (text that uses Gautami font). Now, you can convert this entire text to Devanagari in UNICODE format!
Usage: brhdc InFile OutFile Script OutType
InFile: Input file in RTF format.
OutFile: Output file in RTF or TXT format.
Script: The script to which text will be converted. It should be one of the scripts supported in Baraha which are: Kannada, Devanagari, Tamil, Telugu, Malayalam, Gujarati, Gurumukhi, Bengali and Oriya. If the original script has to be retained, use "none".
OutType: The text format of OutFile. This should be one of ANSI, UNICODE, LATIN.
Example:
brhdc input.rtf output.rtf Kannada UNICODE
In this example, all the Indian language text in the input.rtf file is converted into Kannada script in UNICODE format and saved as output.rtf
brhsort.exe
Is the batch utility for sorting Indian language text. The text to be sorted may contain different scripts in either ANSI or UNICODE format.
Usage: brhsort InFile OutFile Direction OutType
InFile: Input file in RTF format.
OutFile: Output file in RTF format.
Direction: The sort direction. This should be either Ascending or Descending
OutType: The text format of OutFile. This should be either ANSI or UNICODE.
Example:
brhsort input.rtf output.rtf Ascending ANSI
In this example, the text in the input.rtf file is sorted in ascending order and saved in output.rtf in ANSI format.
brhhtml.exe
Is the batch utility for converting HTML files that use Baraha fonts and other 3rd party fonts to UTF-8 encoding.
Usage: brhhtml File Script StyleSection
File: The Input file which can be either an htm file (.htm), or a text file (.txt) containing a list of .htm files. The .txt file should contain absolute paths of the .htm files listed line by line.
Script: The script to which text is converted. This should be one of the scripts supported in Baraha which are: Kannada, Devanagari, Tamil, Telugu, Malayalam, Gujarati, Gurumukhi, Bengali and Oriya.
StyleSection: The section name in the brhhtml.ini which lists various fonts and styles. Any text that is formatted using these fonts and styles are converted to UTF-8 encoding. For specifying the style section, create a brhhtml.ini file in the same folder of brhhtml.exe and add the section as shown in the example.
Example1: brhhtml input.html Kannada FontStyles
In this example, let's say, the input.html contains Kannada text in "BRH Kannada" and "BRH Vijay" fonts. The Kannada text may be formatted using <FONT> tag or using cascading style sheets (CSS) such as KanStyle1 KanStyle2. Create the section [FontStyles] in the ini file and specify the various fonts and style sheets as shown below. In the list, mention the font names first followed by the style sheet names.
[FontStyles]
BRH Kannada
BRH Vijay
KanStyle1
KanStyle2
Following parameters can be specified in the ini file under [settings] section.
CONVERT_TITLE_TEXT specifies if the title text should be converted or not.
CONVERT_BODY_TEXT specifies if the body text should be converted or not.
IGNORE_KAN_NUKTA specifies if NUKTA character is produced in the output Unicode text.
If OVERWRITE_SRC_FILE = 1 the output filename is same as the input filename. If it is 0, for every input file xxx.htm, a corresponding xxx_unc.htm is created. The hyper links within the htm file (relative path only) are also updated to corresponding xxx_unc.htm.
[SETTINGS]
CONVERT_TITLE_TEXT=0
CONVERT_BODY_TEXT=1
IGNORE_KAN_NUKTA=1
OVERWRITE_SRC_FILE=0
The following 3rd party font encodings are supported by the tool.
Baraha Kan New - Kannada font used in older versions of Baraha
Baraha Devanagari - Devanagari font used in older versions of Baraha
Shree-Kan-0850 - Kannada font from ShreeLipi
SHREE_DECCAN - Kannada font used in Prajavani news paper.
KN-TTUma - Kannada font from CDAC
KNW-TTUma - Kannada font used in Kannadaprabha news paper
AkrutiKndPadmini - Kannada font from Akruti
Note: To avoid display of program stamp in the output files, purchase the registered version. Support for other 3rd party fonts can be provided upon request.