Cnprint is an utility to print Chinese text or convert Chinese text to PostScript. It works just like a print command and support GB, HZ and BIG5 formats.
cnprint260.tar.gz
can be found at
ftp.ifcss.org:/pub/software/unix/print
The package cnprint260.tar.gz
contains only four files
# ls
cnprint.1 cnprint.c cnprint.cmd cnprint.help
You can compile it by
# gcc cnprint.c -o cnprint
# mv cnprint /usr/local/bin
# mv cnprint.1 /usr/local/man/man1
For cnprint to work properly, you need to specify the full path for
the fonts files (HBF fonts). In csh
or tcsh
# setenv HBFPATH "/usr/local/chinese/HBF/"
In sh
or Bash
# set HBFPATH="/usr/local/chinese/HBF/"; export HBFPATH
The file cnprint.cmd
contains the default settings for
cnprint
. It should be put in \$HBFPATH
# cp cnprint.cmd $HBFPATH
If you convert Chinese text file to PostScript use the command
``cnprint -w FILENAME
''
GB2PS is another printing utility support GB and HZ encoding. It comes with a cover page for printing HXWZ.
Package: gb2ps.2.02.tar.gz ftp.ifcss.org:/pub/software/unix/print fonts: csong24.ccf ckai24.ccf ftp.ifcss.org:/pub/software/fonts/gb/misc cfang24.ccf chei24.ccfPut fonts in some place. Mine is in
/usr/local/chinese/CFONT
Before you compile gb2ps, you need to change two settings in the
Makefile
, the fonts directory and cover page location
CFONT=/usr/local/chinese/CFONT/
COVERPAGE=/usr/local/chinese/lib/cover.ps
Then just type
# make
# cp gb2ps /usr/local/bin
Don't know much about it