This program reformats Chinese text encoded in Big-5 using a line-breaking algorithm similar to that of TeX. It has a simple command-line interface.
First I wrote it in C. That was version 1.7, dated 2000-11-18.
source code (30K)
(including documentation as comments at the beginning of the file)
- Sample makefile (1K)
Then I wrote it in Haskell. That was version 1.0, dated 2002-07-23.
(including source code; say
fmt2 --helpfor documentation)