Skip to main content

Japanese Auto character set Conversion On Tty

Project description

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:

    -h, --help

    show this help message and exit

    -t TERM, --term=TERM
     

    override TERM environment variable

    -l LANG, --lang=LANG
     

    override LANG environment variable

    -o ENC, --outenc=ENC
     

    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^)┛

Project details


Release history Release notifications

History Node

0.2.9

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.5

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
jacot-0.1.4-py2.6.egg (20.6 kB) Copy SHA256 hash SHA256 Egg 2.6 Oct 29, 2012
jacot-0.1.4-py2.7.egg (20.6 kB) Copy SHA256 hash SHA256 Egg 2.7 Oct 29, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page