Skip to main content

Convert Hanyang-PUA code to unicode Hangul Jamo, i.e., Syllable-Initial-Peak-Final Encoding (첫가끝 코드).

Project description

Convert Hanyang-PUA code (U+E0BC~U+F8F7) to unicode Hangul Jamo (U+1100~U+11FF), i.e. Syllable-Initial-Peak-Final Encoding (첫가끝 코드).

Example

>>> from hypua2jamo import translate
>>> pua = u'\ub098\ub78f\u302e\ub9d0\u302f\uebd4\ubbf8\u302e'
>>> translate(pua)
u'\ub098\ub78f\u302e\ub9d0\u302f\u110a\u119e\ubbf8\u302e'
>>> print _
나랏말ᄊ미
>>> translate(pua, composed=False)
u'\ub098\ub78f\u302e\ub9d0\u302f\u1109\u1109\u119e\ubbf8\u302e'
>>> print _
나랏말ㅅㅅ미

Installation

from pypi:

pip install hypua2jamo

from github:

git clone git://github.com/mete0r/hypua2jamo.git
cd hypua2jamo
python bootstrap.py
bin/buildout
python data2py.py

Requirements

  • Python 2.7, Python 3.4

Documentation & Development

Contributors

Maintainer: mete0r

License

http://www.gnu.org/graphics/lgplv3-147x51.png

GNU Lesser General Public License Version 3 (text version)

Disclosure

This work is based on KTUG Hanyang PUA Table Project.

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

hypua2jamo-0.4.0.tar.gz (694.4 kB view details)

Uploaded Source

File details

Details for the file hypua2jamo-0.4.0.tar.gz.

File metadata

  • Download URL: hypua2jamo-0.4.0.tar.gz
  • Upload date:
  • Size: 694.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.9

File hashes

Hashes for hypua2jamo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 462f18a43de2117ade4e6a06e24898776a36c06f2651655a99fddfefa417fbda
MD5 72a5ab2282e293a1e7172627805bb265
BLAKE2b-256 fdb23e6f2362dc8381001c54c964ab1dd95fcdd95282cde86936266da85d8a42

See more details on using hashes here.

Supported by

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