Skip to main content

三 ┏( ^o^)┛ < 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.
http://zuse.jp/misc/canossa.png

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

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

  • PTY and Normal Terminal/Application:

    +---------------------------------------------+
    |                  Terminal                   |
    +---------+-----------------------------------+
              |
    +---------|-----------------------------------+
    |  +------+-------+        +---------------+  |
    |  |    Master    |========|     Slave     |  |
    |  +--------------+        +-------+-------+  |
    +----------------------------------|----------+
                                       |
    +----------------------------------+----------+
    |                Application                  |
    +---------------------------------------------+
    
  • 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)
                                                                                    +-----+
    
  • sskk

     +---------------------------------------------+
     |                                             |
     |                  Terminal                   |
     |                                             |
     +---------------------------------------------+
            |                       ^
            |                       |
        < input >               < output >
            |                       |
            |      +----------------+
            |      |                      [ PTY 1 ]
     +------|------|-------------------------------+
     |      v      |                               |
     |  +----------+---+       +----------------+  |
     |  |    Master    |=======|      Slave     |  |
     |  +--------------+       +--+-------------+  |
     |                            |        ^       |
     +----------------------------|--------|-------+
                                  |        |
                              < input >    |
                                  |        |
                  +---------------+    < output >
                  |                        |
     [ sskk ]     |                        |
     +------------|------------------------|---------------+
     |            |                        |               |
     |            |                        |<--------------------------+
     |            |                        |               |           |
     |            v                        |               |           |
     |   +-----------------+       +-------+--------+      |    +------+------+
     |   |                 |       |                |      |    |             |
     |   |                 |       |                |      |    |             |
     |   |  InputHandler   |       |  OutputHandler |      |    |   Canossa   |
     |   |                 |       |                |      |    |             |
     |   |                 |       |                |      |    |             |
     |   +--------+--------+       +----------------+      |    +-------------+
     |            |                        ^               |           ^
     |            |                        |               |           |
     |            |                        |               |           |
     |            |              +-------------------+     |           |
     |            |              |                   |     |           |
     |            |              |  TFF Multiplexer  +-----------------+
     |            |              |                   |     |
     |            |              +---------+---------+     |
     |            |                        |               |
     +------------|------------------------|---------------+
                  |                        |
              < input >                < output >
                  |                        |
                  |       +----------------+
                  |       |
                  |       | [ PTY 2 ]
          +-------|-------|-----------------------------+
          |       v       |                             |
          |  +------------+--+       +---------------+  |
          |  |    Master     |=======|     Slave     |  |
          |  +---------------+       +----+----------+  |
          |                               |      ^      |
          +-------------------------------|------|------+
                                          |      |
                     +--------------------+      |
                     |                           |
                 < input >                   < output >
                     |                           |
                     v                           |
    +----------------+---------------------------------------------+
    |                                                              |
    |                        Application Process                   |
    |                                                              |
    +--------------------------------------------------------------+
    

Dependency

Project details


Release history Release notifications

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
sentimental_skk-0.0.40-py2.6.egg (2.0 MB) Copy SHA256 hash SHA256 Egg 2.6 Dec 23, 2012
sentimental_skk-0.0.40-py2.7.egg (2.0 MB) Copy SHA256 hash SHA256 Egg 2.7 Dec 23, 2012
sentimental-skk-0.0.40.tar.gz (1.9 MB) Copy SHA256 hash SHA256 Source None Dec 23, 2012

Supported by

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