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 -> 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("s", True) # default: Separator
kakasi.setMode("C", True) # default: 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 "s" used for separator switch, "C" for capitalize switch.
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 -> 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("s", True) # default: Separator
kakasi.setMode("C", True) # default: 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 "s" used for separator switch, "C" for capitalize switch.
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
pykakasi-0.22.tar.gz
(3.6 MB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pykakasi-0.22-py3.4.egg
(2.6 MB
view details)
pykakasi-0.22-py3.3.egg
(2.6 MB
view details)
pykakasi-0.22-py2.7.egg
(2.6 MB
view details)
File details
Details for the file pykakasi-0.22.tar.gz.
File metadata
- Download URL: pykakasi-0.22.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b022e3e22b49283c2f6e408b3140f97b2590a1a1491eaf079532ea7beb43fe1d
|
|
| MD5 |
7818417ae3a651edf754605ce414d5d7
|
|
| BLAKE2b-256 |
37d39b7d731696bcbe16cd0cfc84d4df8974edf69cc1df50189b64b3cad0a620
|
File details
Details for the file pykakasi-0.22-py3.4.egg.
File metadata
- Download URL: pykakasi-0.22-py3.4.egg
- Upload date:
- Size: 2.6 MB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a83ab410e0c107d3dccd6525702c31a4fec9dfee71983f853959f7b55688b73f
|
|
| MD5 |
92b8797cc53b03f62694bf2213d5e6a2
|
|
| BLAKE2b-256 |
15f7b9155bfd66db3946a660ff2c626baba40fb64fdf8c29fe8d7cb1b0108229
|
File details
Details for the file pykakasi-0.22-py3.3.egg.
File metadata
- Download URL: pykakasi-0.22-py3.3.egg
- Upload date:
- Size: 2.6 MB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60e61611ba14ef5c0505282e0be63d92b0469dd7bcfb6c1e3352010353438334
|
|
| MD5 |
c4f77cc752d9e98a67f31591d1e7d6ac
|
|
| BLAKE2b-256 |
f2129e93826459da26e834f492fa3867b6dd1fd85637a4d1dbda3e45d984d9d5
|
File details
Details for the file pykakasi-0.22-py2.7.egg.
File metadata
- Download URL: pykakasi-0.22-py2.7.egg
- Upload date:
- Size: 2.6 MB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c5a01f3b453c850c1c633843825e333a12deddb8c49c5df9a84c2c0c178275d
|
|
| MD5 |
661ad625c7f35d8bd35c43badc3cf2ea
|
|
| BLAKE2b-256 |
28ec1dabd38427b1838e01550434bb5114ba1e9cdfb998141cbf9603947f75b2
|