YYT(1) | Yi Yan Tang User Manual | YYT(1) |
yyt - A psuedo tty program which automatically converts among Chinese encodings.
yyt [-h|--help]
yyt [-V|--version]
yyt [-f encoding|--from=encoding] [-t
encoding|--to=encoding] [command...]
Where [command...] is the command you want to run using yyt. If not given, the default is set to the environment variable SHELL. If SHELL is not set, /bin/sh will be used.
yyt is a psuedo tty program that will translate Chinese encodings automatically on a console. Supported encodings are BIG5/GB2312/HZ/UTF-7/UTF-8/UCS.
yyt is similar to hztty(1) except that yyt will make things automatic all the way.
Yi Yan Tang use Saka's libhz to detect and convert Chinese encodings. libhz is include in autoconvert and can be found at http://www.debian.org/~ygh/.
yyt supports following Chinese encodings for both input and output:
yyt supports following command line options:
NOTE: If the --from encoding is not set, yyt will guess the encoding of the incoming text. You can safely type the command:
There are some on the fly commands which can be used to control the behavior of yyt once it is started. User can use these commands to switch encoding, disable auto-encoding-detection or turn off encoding conversion all together.
To active the yyt command mode, press the combination key
(for switch-on-YYT-command-mode). Then follow a single key command. Once the command is entered, the command mode is switched off.
The possible commands in the command mode are:
Note: If the incoming encoding is explicitly set either through command line options or on line command, the user input is also converted from the terminal encoding to the incoming encoding.
Please see BUGS section.
yyt tries to segment a stream of text into Hanzi parts and English parts. That way, we can have a better guessing on the Chinese encodings for every small part of Chinese. However, Hanzi segmentation does not always work correctly, especially when using curses/slang based programs. Redraw screen (normally ctrl-l) sometime correct it. This problem is expected. Suggestions on better segmentation algrithm are always welcomed.
Turn off auto-detection by specify a fromcode by (ctr-y key ) will give better conversion result.
hashao <hashao@chinese.com>
libhz(3), pyhz(7), hztty(1)
yiyantang homepage at http://yiyantang.on.openave.net/
autoconvert homepage at http://www.debian.org/~ygh/
June 2001 | YiYanTang |