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. 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 Kerala font to console from manglish:
malvi_mozhi_kerala < text_in_manglish.txt

To produce Malayalam in Kerala font as an HTML document from manglish:
malvi_mozhi_kerala -h < text_in_manglish.txt > text_in_kerala.html

To produce manglish from Malayalam text in Kerala font:
lamvi_kerala < text_in_kerala.txt > text_in_manglish.txt

Manglish text can be converted to Unicode as this:
malvi_mozhi_unicode -u text_in_unicode.html

The above two commands can be combined to produce Malayalam in Unicode from Kerala font:

lamvi_kerala < text_in_kerala.txt > text_in_manglish.txt ¦ malvi_mozhi_unicode -u text_in_unicode.html


By this command, we are 'piping' the output of first program 'lamvi_kerala' to the input of second program 'malvi_mozhi_unicode'. Please note the pipe symbol '' between the two parts of the command.


Note:
1. If you need to do some pre-processing of the file with Keralite 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.

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 'fonts add-on package' available at Varamozhi site. (Read details in another blog post here)

2 Comments:

At Wed Jan 11, 07:40:00 PM CST, Blogger viswaprabha വിശ്വപ്രഭ said...

More Tips:

1.
When you need to process very large files, the command line interface can be pretty much faster than using the Varamozhi program itself.


2.

If you do any text processing in the input file (That is, the file containing the ASCII font text (eg. Keralite Text), please make sure that the file is saved in ANSI/ASCII encoding format, but not in Unicode or any other formats!

The Windows Notepad and other text editors like UltraEdit can save a text file in different encoding schemes. Please set this to ANSI/ASCII before you take this file to lamvi command!

If this is not done, the resulting English text will be some meaningless strings instead of the proper varamozhi Manglish text!

 
At Thu Apr 26, 12:11:00 AM CDT, Blogger kcmbukhari@gmail.com said...

kalm

 

Post a Comment

<< Home