replacing Chinese chars with their spellings
P. Alejandro Lopez-Valencia
dradul at yahoo.com
Fri Apr 26 15:56:34 EDT 2002
"Dan Jacobson" <jidanni at deadspam.com> escribió en el mensaje
news:m2g01lfx7i.fsf at jidanni.org...
> Before I start learning python, here's what I want to do: I have a
> table of Hakka Chinese words and their pronunciations. I scan a file
> and replace any Hakka ["big5" 2, 4, 6 ... byte long strings] there
> with their pronunciations. If it were just one character [two byte]
> words I would use the "c2t" program. Is there a template that munches
> forth in a file and replaces the longest match in a database
> before moving on?
> --
> http://jidanni.org/ Taiwan(04)25854780
This will help you get started:
http://pythonzh.sourceforge.net/
More information about the Python-list
mailing list