Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)

TorgoX
  sburkeNO@SPAMcpan.org
http://search.cpan.org/~sburke/

"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Thursday February 28, 2002
07:40 PM

Yi-tastic!

[ #3203 ]
Dear Log,

If ever I had forgotten how good Perl was at short little use-once data conversion programs, I have now remembered.

See, I'm brushing up my Chinese by trying to read the Yi Jing in the original. So I found an e-text of it in Chinese, and after getting it into UTF8, I wrote wee little Perl programs to chunk it into one file per hexagram (while also doing some cleanup in it, like turning double-width punctuation into the normal 7-bit variants). Then I wrote another program that for, each of those 64 files, produces a file that lists each character and its English translation(s) (as determined by reading in the Unihan database), as well as the Unicode character number.
WONDERFUL. EFFORTLESS. PERL.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.