A tool to get the katakana reading of an alphabetical string.
Project description
alkana
A tool to get the katakana reading of an alphabetical string.
Installing
Python 3 or higher is required.
From pip
python3 -m pip install -U alkana
Clone from GitHub
$ git clone https://github.com/cod-sushi/alkana.py
$ cd alkana.py
$ python3 -m pip install -U .
Example
Python import
import alkana
print(alkana.get_kana("Hello"))
print(alkana.get_kana("World"))
print(alkana.get_kana("abcdefg"))
Output of above example is:
ハロー
ワールド
None
If the reading is not exist, Returns None
.
Command line
$ alkana hello
ハロー
$ alkana world
ワールド
$ alkana abcdefg
If the reading is not exist, there is no output.
External file
Alkana can extend the dictionary.
sample.csv
hogehoge,ホゲホゲ
piyopiyo,ピヨピヨ
...
import alkana
alkana.add_external_data('./sample.csv')
print(alkana.get_kana('hogehoge')) # ホゲホゲ
Copyrights
Alphabetical word - katakana dictionary's data is from bep-eng.dic
.
Bilingual Emacspeak Project (c) 1999-2002 Bilingual Emacspeak Project
Lisence
GPLv2
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
alkana-0.0.3.tar.gz
(370.0 kB
view details)
Built Distribution
alkana-0.0.3-py3-none-any.whl
(371.3 kB
view details)
File details
Details for the file alkana-0.0.3.tar.gz
.
File metadata
- Download URL: alkana-0.0.3.tar.gz
- Upload date:
- Size: 370.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.9.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95f40ab8d0a9446d7767bb71a22a64ffa032f5da7aa46aa6cb3afc93299fe6be |
|
MD5 | eb9f289ba88af4de235251ce4a8459e7 |
|
BLAKE2b-256 | 79c6d46afa94e24368f1f0014a861a86da2a2d26b0875da7a00a8ec41f4ba47d |
File details
Details for the file alkana-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: alkana-0.0.3-py3-none-any.whl
- Upload date:
- Size: 371.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.9.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e9bd5502522cc93beaec44b7ae14e8bb409b055bc07d5c054fff3f93f53dd85 |
|
MD5 | e8d1c638b2d145cc50c00bc05402d904 |
|
BLAKE2b-256 | cd4d7be66b63787ff4a9008141ebd181f16e993bee91f2c42f0dd32d2aa8b0ea |