Korean pronunciation and romanisation based on Wiktionary ko-pron lua module
Project description
Information
Hangul pronunciation and romanisation module.
This is actally rewritten to python Wiktionary lua module ko-pron Current revision: https://en.wiktionary.org/w/index.php?title=Module_talk:ko-pron&oldid=49615051
Supported transformations:
- Revised Romanisation (rr)
- phonetic hangul (ph)
- Yale romanisation (yr)
- McCune-Reischauer (mr)
- WT-revised Revised Romanisation (rrr)
- IPA (ipa)
McCune-Reischauer, IPA, Revised Romanisation, phonetic hangul take into aacount changes in pronunciation like: "있다" is pronounced as "itta" etc.
Method "romanise" also accepts optional parameters. They are described in documentation of original lua module
Usage
from ko_pron import romanise
print(romanise("있다", "mr"))
Result: itta
Install locally
pip install -e .
Test coverage
Run tests with coverage
cd test
./coverage.sh
Run html tests after running tests
coverage html
Results
| Name | Stmts | Miss | Cover |
|---|---|---|---|
| /Users/andrey/Projects/ko_pron/ko_pron/__init__.py | 2 | 0 | 100% |
| /Users/andrey/Projects/ko_pron/ko_pron/data.py | 2 | 0 | 100% |
| /Users/andrey/Projects/ko_pron/ko_pron/ko_pron.py | 186 | 23 | 88% |
| test_params.py | 77 | 0 | 100% |
| test_pronunciation.py | 11 | 0 | 100% |
| ----------------------------------------------------- | ----- | ----- | ----- |
| TOTAL | 278 | 23 | 92% |
Links
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 Distributions
Built Distribution
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
File details
Details for the file ko_pron-1.3-py3-none-any.whl.
File metadata
- Download URL: ko_pron-1.3-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c9ebbdb6c0c5f6981c143cee978158662d12c6302545686a1c4e0fcaad2017
|
|
| MD5 |
8744c7593d44126dd71ac3d560a40360
|
|
| BLAKE2b-256 |
d836872adff056b7214a62f1df5649eda8d9c29704c359149706058afbaa47fe
|