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


Download files

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

Source Distribution

alkana.py-0.0.1.tar.gz (370.9 kB view hashes)

Uploaded Source

Built Distribution

alkana.py-0.0.1-py3-none-any.whl (380.0 kB view hashes)

Uploaded Python 3

Supported by

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