Skip to main content

A tool to get the katakana reading of an alphabetical string.

Project description

alkana.py

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.py

Clone from GitHub

$ git clone https://github.com/cod-sushi/alkana.py
$ cd alkana.py
$ python3 -m pip install -U .

Example

Python import

Quick example:

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.

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

Download files

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

Files for alkana.py, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size alkana.py-0.0.1-py3-none-any.whl (380.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size alkana.py-0.0.1.tar.gz (370.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page