Command Line

Command line interface for Mozhi conversion

Varamozhi Editor internally works as a set of command line tools. Those tools can be directly used. This will especially be helpful if you need to convert very large files from one format to another or work with large number of files. The direct tools are much much faster than the Varamozhi On-Screen program!

For using these tools, change directory to

C:\Program Files\Varamozhi Editor\bin

Following examples will show various uses of the command line interface:

(All these commands should be typed in one line)

To produce Malayalam in Matweb font to console from manglish:

malvi_mozhi_mathrubhumi < text_in_manglish.txt

To produce Malayalam in Matweb font as an HTML document from manglish:

malvi_mozhi_mathrubhumi -h < text_in_manglish.txt > text_in_mathrubhumi.html

To produce manglish from Malayalam text in Matweb font:

lamvi_mathrubhumi < text_in_mathrubhumi.txt > text_in_manglish.txt

Manglish text typed in console can be converted to Unicode as this:

malvi_mozhi_unicode -u > text_in_unicode.html

Last two commands can be combined to produce Malayalam in Unicode from Matweb font:

lamvi_mathrubhumi < text_in_mathrubhumi.txt ¦ malvi_mozhi_unicode -u > text_in_unicode.html

By above command, we are piping the output of first program lamvi_mathrubhumi to the input of second program malvi_mozhi_unicode. Please note the pipe symbol | between the two parts of the command.

Notes:

    1. If you need to do some pre-processing of the file with Matweb text (or such ASCII text), please remember to save the same in ANSI/ASCII format before inputting it to the lamvi program. Otherwise, your output will be a text file of meaningless strings instead of proper varamozhi-style Manglish. Quoting the HTML tags is an example for pre-processing. eg: <HTML> to {<HTML>}

    2. The main Varamozhi program (Ver 1.3.3 onwards) contains only the MatWeb and Unicode format conversion modules. If you need to convert files of any other font sets, please download and install the add-on package.