Skip to main content

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

Project description

hypua2jamo

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

Supported Python versions

  • Python 2.7

  • Python 3.7 or above.

Documentation & Development

Hacking

Currently, development and maintenance is taking place in the Debian stable version environment. Following debian packages are required:

sudo apt install python3.9 python3.9-dev python3.9-venv
sudp apt install python2.7 python2.7-dev
sudo apt install make build-essential cmake

To bootstrap development environment, run following commands in the project root directory:

python3.9 -m venv venv
. venv/bin/activate
pip install --upgrade setuptools pip pip-tools
make update-requirements
make test

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.

Changes

0.7 (2023-05-22)

  • Fix hypua2jamo script to work.

0.6 (2023-04-02)

  • Build Win64 wheels.

  • Add support for Python 3.9 / 3.10 / 3.11

  • Drop support for Python 3.5 / Python 3.6

0.5.1 (2020-05-08)

  • Re-release for Windows wheels.

0.5 (2020-05-08)

  • Add support for Python 3.8

0.4.5 (2019-12-15)

  • Fix wheel building for MS Windows.

  • Drop support for Python 3.4

0.4.4 (2019-03-21)

  • Reintroduce codes2unicode() for backward compatibility.

0.4.3 (2019-03-20)

  • Fix wheel building for Python 3.5, 3.6 and 3.7.

0.4.2 (2019-03-20)

  • Add support for Python 3.5, 3.6 and 3.7.

0.4.1 (2019-03-20)

  • Release binary wheels.

0.4.0 (2019-03-19)

  • Modernize development environment.

  • encoder / decoder

Supported by

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