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

come mettere i testi a Music su Honor7

ษฐ IPA e Coreano

Cloud (cantata da Rothy)