Korean Yale Romanizer (한국어 예일식 로마자 전사 변환기)
Romanizer for Korean following Yale Romanization. See Chapter 3 for details.
0. History
| date | ver | history |
|---|---|---|
| 20230814 | 1.0.1 | version 1.0.1 |
| 20230814 | 0.0.1 | test version |
| 20230812 | - | Initial commit |
1. Installation
pip install YaleKorean
2. Main Functions & Usage
From YaleKorean, you can use these three functions.
import YaleKorean
2.2. YaleKorean.PUAtoUni(line: str) -> str
test = '안녕하세요'
print(YaleKorean.PUAtoUni(test))
# 안녕하세요
2.2. YaleKorean.YaleCont(line: str) -> str
test_cont = '다람쥐 헌 쳇바퀴 타고파'
print(YaleKorean.YaleCont(test_cont))
# talamcwi hen cheyspakhwi thakopha
2.3. YaleKorean.YaleMid(line: str) -> str
test_mid = '나랏말ᄊᆞ미 듀ᇰ귁에 달아 문ᄍᆞ와로 서로 ᄉᆞᄆᆞᆺ디 아니ᄒᆞᆯᄊᆡ'
print(YaleKorean.YaleMid(test_mid))
# nalasmalssomi tywungkwikey tala mwunccowalwo selwo somosti aniholssoy
3. About Korean Yale Romanization
3.1. Basic Rule
1) Consonants
| Hangul | Romanized |
|---|---|
| ㄱ | k |
| ㄲ | kk |
| ㄴ | n |
| ㄷ | t |
| ㄸ | tt |
| ㄹ | l |
| ㅁ | m |
| ㅂ | p |
| ㅃ | pp |
| ㅅ | s |
| ㅆ | ss |
| ㅇ | ng* |
| ㅈ | c |
| ㅉ | cc |
| ㅊ | ch |
| ㅋ | kh |
| ㅌ | th |
| ㅍ | ph |
| ㅎ | h |
*only for 'ㅇ' in coda position. 'ㅇ' in onset position does not have any sound.
2) Vowels
| Hangul | Romanized |
|---|---|
| ㅏ | a |
| ㅓ | e |
| ㅗ | o |
| ㅜ | wu* |
| ㅡ | u |
| ㅣ | i |
| ㅐ | ay |
| ㅔ | ey |
| ㅚ | oy |
| ㅟ | wi |
| ㅑ | ya |
| ㅕ | ye |
| ㅛ | yo |
| ㅠ | yu |
| ㅒ | yay |
| ㅖ | yey |
| ㅘ | wa |
| ㅙ | way |
| ㅝ | we |
| ㅞ | wey |
| ㅢ | uy |
*If 'ㅜ' is posited after bilabial sounds /ㅂ, ㅃ, ㅍ/, 'ㅜ' is romanized as 'u.', It is because that 'ㅜ' and 'ㅡ' is neutralized after bilabial sounds.
3.2. Notation for Middle Korean
1) Consonants
| Hangul | Romanized |
|---|---|
| ㅸ | W |
| ㅹ | WW* |
| ᄛ | L* |
| ㅱ | M* |
| ㆄ | F* |
| ㅿ | z |
| ㅇ | G** |
| ㆁ | ng |
| ㆆ | q |
| ᄼ | S* |
| ᄽ | SS* |
| ᄾ | Sr* |
| ᄿ | SSr* |
| ᅎ | C* |
| ᅏ | CC* |
| ᅐ | Cr* |
| ᅑ | CCr* |
| ᅔ | Ch* |
| ᅕ | Chr* |
*These notations are not in the standard Yale Romanization.
**This notation of 'ㅇ' is only for 'ㅇ'[ɦ].
2) Vowels
- ㆍ(아래아 alay.a) is notated as 'o'.
YaleCont(str): 'O' (capital 'o')YaleMid(str): 'o'
- 'ㅜ' does not undergo after bilabial sounds.
YaleCont(str): 'wu', 'u'(after bilabials)YaleMid(str): 'wu' for all contexts
Metadata
Release files for YaleKorean 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| YaleKorean-1.0.1.tar.gz | 37.6 kB | Without provenance | Details for YaleKorean-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| YaleKorean-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for YaleKorean-1.0.1-py3-none-any.whl |
Total release size: 72.5 kB
Release files / YaleKorean-1.0.1.tar.gz
| Download URL | YaleKorean-1.0.1.tar.gz |
|---|---|
| Size | 37.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
add0d6a7c1c26763aa08a1052a007b681f5d2b463d023012b81972f5ae23f36b
|
|
BLAKE2b-256 checksum How to use checksums |
9fd398b369b1957bfc65ab6de4a386442e9cf2ea7260c9318151fc1f73f4004b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / YaleKorean-1.0.1-py3-none-any.whl
| Download URL | YaleKorean-1.0.1-py3-none-any.whl |
|---|---|
| Size | 34.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a07e8248ce480c87c308e1fbef436e1d86ac23f5c036c7a1c4af05570e53653
|
|
BLAKE2b-256 checksum How to use checksums |
217a795bec541887af56ad6ad02fa185866514d4df1bb64dc18b5f082c22c905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for YaleKorean 1.0.1
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.