1 # ***************************************************************************
3 # * Copyright (C) 2004-2016, International Business Machines
4 # * Corporation; Unicode, Inc.; and others. All Rights Reserved.
6 # ***************************************************************************
11 # Japanese (Rōmaji) to Korean (Hangul) transliteration table for ICU.
12 # Can be run in sequence after e.g. Katakana-Latin.
14 # Based on 문교부 고시 제85-11호 (1986. 1. 7.) 외래어 표기법
15 # For background info, see http://ko.wikisource.org/wiki/문교부_고시_제85-11호
16 # and http://ko.wikipedia.org/wiki/외래어_표기법 (外來語表記法)
19 $consonant = [ᄀᄁᄂᄃᄄᄅᄆᄇᄈᄉᄊᄋᄌᄍᄎᄏᄐᄑᄒ];
20 $lengthMarker = [\u0302\u0304];
23 # Drop hyphens and apostrophes.
27 # Turn long /e:/ into diphthong /ei/.
28 e $lengthMarker → | e i ;
31 # Ignore vowel length everywhere else.
37 [^$consonant] { ( [aiueoyw] ) → ᄋ | $1 ; # Supply a required null initial.
41 u\~a → | wa ; # クァ, グァ
42 u\~i → ᅱ ; # ウィ, クィ, etc.
71 ' ' { k → | g ; # Beginning of a word (after space).
72 ^k → | g ; # Beginning of the string.
83 tsu\~ → | ch ; # ツァ, ツィ, etc.
94 n } [\ \'bcdfghjkmnprstwz] → ᆫ ;
110 yi → ᅵ ; # Added for convenience, after shi.
132 dji\~ → | j ; # ヂァ, ヂゥ, etc.
135 dzu\~ → | j ; # ヅァ, ヅィ, etc.
142 vu\~ → | b ; # ヴァ, etc.