<s> import sys <EOL> sys . path . append ( '<STR_LIT:..>' ) <EOL> from tamil . txt2unicode import auto2unicode , tscii2unicode <EOL> BUF_SIZE = <NUM_LIT:100> <EOL> infile = '<STR_LIT>' <EOL> outfile = '<STR_LIT>' <EOL> inf = open ( infile ) <EOL> outf = open ( outfile , '<STR_LIT:w>' ) <EOL> def converte2unicode ( lines ) : <EOL> for line in lines : <EOL> uni = tscii2unicode ( line ) <EOL> outf . write ( uni ) <EOL> tmp_lines = inf . readlines ( BUF_SIZE ) <EOL> while tmp_lines : <EOL> converte2unicode ( tmp_lines ) <EOL> tmp_lines = inf . readlines ( BUF_SIZE ) <EOL> inf . close ( ) <EOL> outf . close ( ) <EOL> print ( "<STR_LIT>" , outfile ) </s>
