Skip to main content

Python implementation of kakasi - kana kanji simple inversion library

Project description

=======
Pykakasi
=======

pykakasi is re-imprelemtation of kakasi library by Python.

How To Use pykakasi
==================

::

import pykakasi.kakasi as kakasi

kakasi = kakasi()
kakasi.setMode("H","a") # default: Hiragana no convert
kakasi.setMode("K","a") # default: Katakana no convert
kakasi.setMode("J","a") # default: Japanese no convert
kakasi.setMode("E","a") # default: Symbols no convert
kakasi.setMode("r","Hepburn") # default: use Hepburn Roman table
kakasi.setMode("s", True) # separate, default: no Separator
kakasi.setMode("C", True) # capitalize default: no Capitalize
conv = kakasi.getConverter()
result = conv.do(text)

You can use output `Mode` values from "H", "K", "a" which is each means
"Hiragana", "Katakana" and "alphabet".
For input, you can use "J" that means "Japanese" that is
mixture of Kanji, Katakana and Hiragana.
Also there is values of "H", "K" that means "Hiragana", and "Katakana".
You can use "Hepburn","Kunrei" or "Passport" as mode "r", Roman table switch.
Also "s" used for separator switch, "C" for capitalize switch.
"S" for separator string option.

Project details


Release history Release notifications

History Node

0.93

History Node

0.92

History Node

0.91

History Node

0.90

History Node

0.82

History Node

0.81

History Node

0.80

History Node

0.28

History Node

0.27

History Node

0.25

History Node

0.24

This version
History Node

0.23

History Node

0.22

History Node

0.2

History Node

0.1

History Node

0.01

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
pykakasi-0.23-py2.7.egg (2.5 MB) Copy SHA256 hash SHA256 Egg 2.7 May 25, 2014
pykakasi-0.23-py3.2.egg (4.2 MB) Copy SHA256 hash SHA256 Egg 3.2 May 25, 2014
pykakasi-0.23-py3.3.egg (4.3 MB) Copy SHA256 hash SHA256 Egg 3.3 May 25, 2014
pykakasi-0.23-py3.4.egg (4.2 MB) Copy SHA256 hash SHA256 Egg 3.4 May 25, 2014
pykakasi-0.23.tar.gz (1.0 MB) Copy SHA256 hash SHA256 Source None May 25, 2014

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