pykakasi 0.1
pip install pykakasi==0.1
Newer version available (2.3.0)
Released:
Python implementation of kakasi - kana kanji simple inversion library
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GPLv3
- Author: Hioshi Miura
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 |
==================
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GPLv3
- Author: Hioshi Miura
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 Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3347bfa8398c94cb2567afd0d3e611f0b838b8f591438328a65c85a9990ac671
|
|
MD5 |
4af0c444b6e615629e61314ca1c1cff2
|
|
BLAKE2b-256 |
49cb4b750808d53fda69917e3c9d3964c2f974a634b18f7170628d3c29b92b37
|
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d2e039df144bbdc5493a05e1116fd66cd3680f2b869d8863e6f3495ea7686bfa
|
|
MD5 |
b0201b17fa953803e94c7cdd23a43cc5
|
|
BLAKE2b-256 |
83ecf39b21a6fc5850bfefe3e33f6d2983de57bd7e1f49e76b11ff06b94341f4
|