1 # © 2016 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html#License
8 # Japanese (Rōmaji) to Korean (Hangul) transliteration table for ICU.
9 # Can be run in sequence after e.g. Katakana-Latin.
11 # Based on 문교부 고시 제85-11호 (1986. 1. 7.) 외래어 표기법
12 # For background info, see http://ko.wikisource.org/wiki/문교부_고시_제85-11호
13 # and http://ko.wikipedia.org/wiki/외래어_표기법 (外來語表記法)
16 $consonant = [ᄀᄁᄂᄃᄄᄅᄆᄇᄈᄉᄊᄋᄌᄍᄎᄏᄐᄑᄒ];
17 $lengthMarker = [\u0302\u0304];
20 # Drop hyphens and apostrophes.
24 # Turn long /e:/ into diphthong /ei/.
25 e $lengthMarker → | e i ;
28 # Ignore vowel length everywhere else.
34 [^$consonant] { ( [aiueoyw] ) → ᄋ | $1 ; # Supply a required null initial.
38 u\~a → | wa ; # クァ, グァ
39 u\~i → ᅱ ; # ウィ, クィ, etc.
68 ' ' { k → | g ; # Beginning of a word (after space).
69 ^k → | g ; # Beginning of the string.
80 tsu\~ → | ch ; # ツァ, ツィ, etc.
91 n } [\ \'bcdfghjkmnprstwz] → ᆫ ;
107 yi → ᅵ ; # Added for convenience, after shi.
129 dji\~ → | j ; # ヂァ, ヂゥ, etc.
132 dzu\~ → | j ; # ヅァ, ヅィ, etc.
139 vu\~ → | b ; # ヴァ, etc.