Baraha - Command-line Utilities

brhdc.exe

The utility for data conversion. This utility allows you to convert Indian language text from one script to another AND/OR from one data encoding to another. The text to be converted may contain different scripts in ANSI, UNICODE or LATIN encodings. For example, let's say the user has Kannada text in ANSI encoding (text that uses "BRH Kannada" font) along with Telugu text in UNICODE encoding (text that uses Gautami font). Now, he can convert this entire text to Devanagari in UNICODE encoding.

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, BARAHA, ISO15919, IAST.

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 encoding and saved as output.rtf

brhsort.exe

The utility for sorting Indian language text. The text to be sorted may contain different scripts in either ANSI or UNICODE encoding.

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 encoding.