Skip to main content

Python implementation of kakasi - kana kanji simple inversion library

Project description

Pykakasi library
==================

pykakasi is re-imprelemtation of kakasi library by Python.

How To Use pykakasi
------------------

```python
import pykakasi.kakasi as kakasi

kakasi = kakasi()
kakasi.setMode("H","a") # default: Hiragana -> Roman
kakasi.setMode("K","a") # default: Katakana -> Roman
kakasi.setMode("J","a") # default: Japanese -> Roman
kakasi.setMode("r","Hepburn") # default: use Hepburn Roman table
kakasi.setMode("C", true) # default: Separator
kakasi.setMode("c", false) # 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" or "Kunrei" as mode "r", Roman table switch.
Also "C" used for separator switch, "c" for capitalize switch.


Options
-------------------

These switch alphabets are derived from original Kakasi.
Now it support following options:

| option | description | possible values | note |
| ------ | :---------- | --------------- | :---------- |
| "K" | Katakana convertion | "a" or None | roman or noconversion |
| "H" | Hiragana convertion | "a" or None | roman or noconversion |
| "J" | Kanji conversion | "a", "h", "k", or None | roman or Hiragana, Katakana |

Project details


Download files

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

Source Distribution

pykakasi-0.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pykakasi-0.1-py2.7.egg (2.5 MB view details)

Uploaded Egg

File details

Details for the file pykakasi-0.1.tar.gz.

File metadata

  • Download URL: pykakasi-0.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pykakasi-0.1.tar.gz
Algorithm Hash digest
SHA256 3347bfa8398c94cb2567afd0d3e611f0b838b8f591438328a65c85a9990ac671
MD5 4af0c444b6e615629e61314ca1c1cff2
BLAKE2b-256 49cb4b750808d53fda69917e3c9d3964c2f974a634b18f7170628d3c29b92b37

See more details on using hashes here.

File details

Details for the file pykakasi-0.1-py2.7.egg.

File metadata

  • Download URL: pykakasi-0.1-py2.7.egg
  • Upload date:
  • Size: 2.5 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pykakasi-0.1-py2.7.egg
Algorithm Hash digest
SHA256 d2e039df144bbdc5493a05e1116fd66cd3680f2b869d8863e6f3495ea7686bfa
MD5 b0201b17fa953803e94c7cdd23a43cc5
BLAKE2b-256 83ecf39b21a6fc5850bfefe3e33f6d2983de57bd7e1f49e76b11ff06b94341f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page