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
Metadata
Release files for ko-pron 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ko_pron-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / ko_pron-1.3-py3-none-any.whl
| Download URL | ko_pron-1.3-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72c9ebbdb6c0c5f6981c143cee978158662d12c6302545686a1c4e0fcaad2017
|
|
BLAKE2b-256 checksum How to use checksums |
d836872adff056b7214a62f1df5649eda8d9c29704c359149706058afbaa47fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for ko-pron 1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.