skip to navigation
skip to content

Not Logged In

jacot 0.1.4

Japanese Auto character set Conversion On Tty

Latest Version: 0.2.9

This module Provides the auto-conversion filter supports well-known Japanese Encodings(CP932/EUC-JP).

Install

$ git clone https://github.com/saitoha/jacot.git
$ cd jacot
$ python setup.py install

Usage

$ jacot.py [options] [command | -]
  • Options:

    <kbd>-h, --help</kbd>

    show this help message and exit

    <kbd>-t <var>TERM</var>, --term=<var>TERM</var></kbd>
     

    override TERM environment variable

    <kbd>-l <var>LANG</var>, --lang=<var>LANG</var></kbd>
     

    override LANG environment variable

    <kbd>-o <var>ENC</var>, --outenc=<var>ENC</var></kbd>
     

    set output encoding

  • Example:

… 1. Create auto-conversion TTY session, like cocot.:

$ LANG=ja_JP.UTF-8 $SHELL
$ echo 'あいうえお今日は≠〆>' | iconv -t cp932
???????????????́??Y??
$ jacot
$ echo 'あいうえお今日は≠〆>' | iconv -t cp932
あいうえお今日は≠〆>

… 2. Read from stdin, without TTY session, just like nkf.:

$ LANG=ja_JP.UTF-8 $SHELL
$ echo '三 ┏( ^o^)┛' | iconv -t eucjp | jacot
三 ┏( ^o^)┛

… 3. Set terminal output encoding:

$ LANG=ja_JP.EUC-JP $SHELL
$ jacot -o eucjp
$ echo '三 ┏( ^o^)┛' | iconv -t sjis
三 ┏( ^o^)┛
 
File Type Py Version Uploaded on Size
jacot-0.1.4-py2.6.egg (md5) Python Egg 2.6 2012-10-29 20KB
jacot-0.1.4-py2.7.egg (md5) Python Egg 2.7 2012-10-29 20KB
  • Downloads (All Versions):
  • 86 downloads in the last day
  • 916 downloads in the last week
  • 2668 downloads in the last month