Skip to main content

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

GitHub

Original lua module

Optional parameters

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)

Table of built distributions (wheels) for ko-pron 1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.3 This release

1 release file

1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page