三 三 ( ´_ゝ`)< Japanese Input Method SKK (Simple Kana to Kanji conversion) on your terminal
Project description
What is this?
This program provides Simple Kana Kanji conversion (SKK) input method service to your terminal. It depends on Canossa(https://github.com/saitoha/canossa), which is an off-screen terminal emulation service, Canossa makes application enable to restore specified screen region on demand!! So this SKK service can provide cool popup feature.
Requirements
Python 2.6/2.7 unix/linux version
Install
via github
$ git clone --recursive https://github.com/saitoha/sentimental-skk.git sentimental-skk $ cd sentimental-skk $ python setup.py install
or via pip
$ pip install sentimental-skk
upgrade install via pip
$ pip install sentimental-skk --upgrade
Usage
$ sskk [options]
Options:
-h, --help show this help message and exit --version show version -t TERM, --term=TERM override TERM environment variable -l LANG, --lang=LANG override LANG environment variable -o ENC, --outenc=ENC set output encoding -u, --use-titlebar use title bar manipulation feature
How It Works
This program works as a terminal filter application and creates some PTYs. It hooks I/O stream between terminal and applications running on it.
The output stream which is recognized as STDOUT handle for applications, is duplicated and processed with the terminal emulation engine called as “Canossa”. Canossa has a virtual terminal screen buffer which consists with a couple of character cell objects, and behave as another terminal emulator.
+---------------------------------------------+ | | | Terminal | | | +---------------------------------------------+ | ^ | | < input > < output > | | | +----------------+ | | [ PTY 1 ] +------|------|-------------------------------+ | v | | | +----------+---+ +----------------+ | | | Master |=======| Slave | | | +--------------+ +--+-------------+ | | | ^ | +----------------------------|--------|-------+ | | < input > | | | +---------------+ < output > | | [ sskk ] | | [ canossa ] +------------|------------------------|------------+----------------------+ | | | | | | | |<------------------------+ | | v | | | | | +-----------------+ +---------+------+ | +---------+------+ | | | | | | | | | | | | | | | | | | | | | InputHandler | | OutputHandler | | | Canossa | | | | | | | | | | | | | | | | | | | | | +--------+---+----+ +----------------+ | +----------------+ | | | | ^ | ^ ^ | | | | | | | | | | | | | | | | | | | | +-------------------+ | | +----+----+ | | | | | | | | | | | | | | | TFF Multiplexer +-----------+ | widgets | | | | | | | | | | | | | | +-----------+-------+ | +---------+ | | | | | | ^ | | | | | | | | | | +------------------------------------------------+ | | | | | | +------------|------------------------|------------+----------------------+ | | < input > < output > | | | +----------------+ | | | | [ PTY 2 ] +-------|-------|-----------------------------+ | v | | | +------------+--+ +---------------+ | | | Master |=======| Slave | | | +---------------+ +----+----------+ | | | ^ | +-------------------------------|------|------+ | | +--------------------+ | | | +---------------+----------------------------------------------+ | | | Application Process | | | +--------------------------------------------------------------+
Components represented by above diagram, such as InputHandler, OutputHandler, Canossa, Multiplexer are based on TFF.
TFF (Terminal Filter Framework):
Scanner Event Driven Parser Event Dispatcher +-----+ +-----+ +-----+ << I/O Stream >> | | << CodePoint Stream >> | | << Event Stream >> | | << I/O Stream >> ------------------->| |------------------------>| |-------------------->| |---||--------------------> (Raw Sequences) | | (Unicode Points) | | (Function Call) | | (Raw Sequences) +-----+ +-----+ +--+--+ ISO-2022 ISO-6429 | Compatible Parsing | v +-----+ Event Observer | | << I/O Stream >> (I/O Handler) | |---||--------------------> | | (Raw Sequences) +-----+
Dependency
Masahiko Sato et al./SKK Development Team’s SKK dictionaries http://openlab.jp/skk/skk/dic
wcwidth.py https://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/cassandra/pylib/cqlshlib/wcwidth.py (Licensed under Apache License 2.0)
Hayaki Saito’s Canossa https://github.com/saitoha/canossa
Hayaki Saito’s TFF, Terminal Filter Framework https://github.com/saitoha/tff
Hayaki Saito’s termprop https://github.com/saitoha/tff
Reference
Daredevil SKK (DDSKK) http://openlab.ring.gr.jp/skk/ddskk-ja.html
Unicode Text Editor MinEd http://towo.net/mined/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for sentimental_skk-0.0.98-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d1b5fa9f0abbf3a3d062074e5460f569414161b78305c59f4512113903dc65f |
|
MD5 | 706be08076b22fe0767e873c8ae06ddb |
|
BLAKE2b-256 | 5e2f8f3a3a9eb821978f6d73011da43ff8da68976f27d175a0296e14bacfbbf0 |
Hashes for sentimental_skk-0.0.98-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8e7b711154717b7e997e937281a5acf1e00b6ccc221f6b9023c59168292aa7 |
|
MD5 | 72b17dc901288ce31bcdf0e6de4ac30e |
|
BLAKE2b-256 | 21b52b4319ae9c30c8a393e9e7526b4eefc469f5a061eb7389f08aa4c432cb81 |
Hashes for sentimental_skk-0.0.98-py2.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf07061400c5f1513f7db56bdcdc21daacceafb06864ecdb7e85c1946eb1e96 |
|
MD5 | 4026ce578d8d9d81efdc133f073aa5f3 |
|
BLAKE2b-256 | c52469e41f89fd076c60229644c29475afa92ce8a8a89a12520f6c200e13a811 |