korean to IPA through python

 


https://pypi.org/project/ko-pron/

License: MIT

Author: Andriy Koretskyy

Hangul pronunciation and romanisation module.

This is actually rewritten to python Wiktionary lua module ko-pron Current revision: https://en.wiktionary.org/w/index.php?title=Module_talk:ko-pron&oldid=49615051

Supported transformations:

  • Revised Romanisation (rr)
  • phonetic hangul (ph)
  • Yale romanisation (yr)
  • McCune-Reischauer (mr)
  • WT-revised Revised Romanisation (rrr)
  • IPA (ipa)

McCune-Reischauer, IPA, Revised Romanisation, phonetic hangul take into aacount changes in pronunciation like: "있다" is pronounced as "itta" etc.

Method "romanise" also accepts optional parameters. They are described in documentation of original lua module

Usage

from ko_pron import romanise

print(romanise("있다", "mr"))

Result: itta



interessante la possibilità "ph" del phonetic hangul:

집에 데려다줬던 그 기억들이 다 너무 소중해 (originale)
nʌ̹ɭ t͡ɕibe̞ te̞ɾjʌ̹da̠d͡ʑwʌ̹t̚t͈ʌ̹n kɯ kiʌ̹k̚t͈ɯɾi ta̠ nʌ̹mu sʰo̞d͡ʑuŋɦe̞ (IPA)
지베 데려다줟떤 그 기억뜨리 다 너무 소중해 (phonetic hangul)
nŏl chibe teryŏdajwŏttŏn kŭ kiŏktŭri ta nŏmu sojunghae (McCune-Reischauer)




Commenti

Post popolari in questo blog

put your records on (Corinne Bailey Rae e IU)

Regole di lettura coreano

YOZOH(요조) _ Day Dream(뒹굴뒹굴)