$Id: pkf,v 2.1 2000/02/23 08:04:22 utashiro Exp $;

pkf: Perl Kanji Filter

Usage:
	pkf [option] [-[icode]ocode[in,out]] files

	icode/ocode is one of [jse] (j=JIS, s=SJIS, e=EUC)
	ocode `j' can be followed by JIS in/out character

	-b	buffered output (default)
	-u	unbuffered output
	-m	dynamic input code recognition
	-c	print code name
	-v	print escape sequences used in JIS when used along with -c
	-n	no code conversion (use original code)
	-Z	convert 1-byte (hankaku) kana to 2-byte (zenkaku) kana
	-H	convert 2-byte (zenkaku) kana to 1-byte (hankaku) kana

	-f [unix, mac, dos]
		convert eol string to \\n, \\r, \\r\\n respectively.
		currently this option can't be used with other options.

Input Kanji code is recognized automatically if not supplied. 
Usually this is done only once, but it will be done on each input
line when dynamic recognition is specified.

Output Kanji code is JIS by default.

Output JIS code can be followed by kanji in and out characters.
Default is "BB" which means kanji sequence start with ESC-$-B and
end with ESC-(-B

Example:
	pkf file	convert to JIS code
	pkf -j@J file	convert to JIS code ("ESC-$-@", "ESC-(-J")
	pkf -es file	convert EUC to SJIS
	pkf -me file	convert mixed code file to EUC
	pkf -mc file	convert to JIS and print orginal code on each line


Copyright (c) 1995-1996,2000 Kazumasa Utashiro <utashiro@iij.ad.jp>
Internet Initiative Japan Inc.
3-13 Kanda Nishiki-cho, Chiyoda-ku, Tokyo 101-0054, Japan

Copyright (c) 1991,1992 srekcah@sra.co.jp
Software Research Associates, Inc.

Use and redistribution for ANY PURPOSE are granted as long as all
copyright notices are retained.  Redistribution with modification
is allowed provided that you make your modified version obviously
distinguishable from the original one.  THIS SOFTWARE IS PROVIDED
BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES ARE
DISCLAIMED.
