Hangul encoder with 3-byte triples
Project description
hangultrans_bjw
This repository contains a Python package intended for distribution on PyPI. It provides a convenient utility designed to address longstanding issues related to Korean text encoding in UTF-8, helping developers handle and process Hangul characters more reliably and efficiently.
Each character is converted into:
- 1 byte: 초성 (initial consonant)
- 1 byte: 중성 (vowel)
- 1 byte: 종성 (final consonant)
Missing components are represented as 0x00.
해당 레포지토리는 PyPI에 올리기 위한 레포입니다. UTF-8의 한글 인코딩에서 발생하는 고질적인 문제점을 해결하여 보다 간편하게 사용하고자 만든 패키지입니다.
한 글자를 초성 중성 종성 - 3바이트로 나누어 표시를 해줍니다. 기존 유니코드 방식또한 3바이트를 사용하나 초성 중성 종성의 관계가 아닌 가-힣 의 순서로 배치되어 비교연산이 어려웠기에 개선하였습니다.
Installation
pip install hangultrans_bjw
or
/* 깃 클론 후 */
pip install -v -e .
Examples
import hangultrans
print(hangultrans.h("안녕하세요"))
print(hangultrans.h_hex("안녕하세요"))
result
['0C 01 04', '02 05 00', '0B 05 00', '0C 05 00', '0B 0D 00']
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 Distribution
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 hangultrans_bjw-0.1.2.tar.gz.
File metadata
- Download URL: hangultrans_bjw-0.1.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9c6f187584de01f11af0d05f08819063860f60a40c2470bc021eb0cf44a7bb3
|
|
| MD5 |
262697ba76c4f994e361e9b01e12db69
|
|
| BLAKE2b-256 |
306138e848cf7616cedaa93dfd0f9f3925b451752dc5749da9e044af4912c281
|
File details
Details for the file hangultrans_bjw-0.1.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: hangultrans_bjw-0.1.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 11.0 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
877fc1bc9c62c51d219bb1761df4d14b821541261e70948d609cee02c34caa85
|
|
| MD5 |
6e60085ebc828b7a960529df615d667d
|
|
| BLAKE2b-256 |
885524a2a84b2363fdae516abef64c6a4db8438b4deab8bfd3467218f024c7b4
|