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
YaleKorean.PUAtoUni(line: str) -> str
2.2. test = 'μλ
νμΈμ'
print(YaleKorean.PUAtoUni(test))
# αα
‘α«αα
§αΌαα
‘αα
¦αα
YaleKorean.YaleCont(line: str) -> str
2.2. test_cont = 'λ€λμ₯ ν μ³λ°ν΄ νκ³ ν'
print(YaleKorean.YaleCont(test_cont))
# talamcwi hen cheyspakhwi thakopha
YaleKorean.YaleMid(line: str) -> str
2.3. 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
-