2016-06-30 23:41:56 +00:00
|
|
|
|
# © 2016 and later: Unicode, Inc. and others.
|
|
|
|
|
# License & terms of use: http://www.unicode.org/copyright.html#License
|
2016-09-19 05:09:40 +00:00
|
|
|
|
#
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# File: Latn_Kana.txt
|
2016-09-19 05:09:40 +00:00
|
|
|
|
# Generated from CLDR
|
2006-07-21 01:08:32 +00:00
|
|
|
|
#
|
2016-02-05 03:37:50 +00:00
|
|
|
|
|
|
|
|
|
# note: a global filter is more efficient, but MUST include all source chars
|
|
|
|
|
#:: [\u0000-\u007E 、。 \u3099-゜ ァ-ー 。-゚ [:Latin:][:Katakana:] [:nonspacing mark:]] ;
|
|
|
|
|
# MINIMAL FILTER GENERATED FOR: Latin-Katakana
|
|
|
|
|
### WARNING -- must add width filter, both here and below!!! ###
|
2009-04-10 07:47:09 +00:00
|
|
|
|
:: [[ᄀ-ᄒᄚᄡ\u1160-ᅵᆪᆬ-ᆭᆰ-ᆵ←-↓│■○\u3000-。「-」\u3099-\u309Aァ-ロワヲ-ヴヷヺ-ー!-~¢-₩][',.A-Za-z~À-ÖØ-öø-ďĒ-ĥĨ-İĴ-ķĹ-ľŃ-ňŌ-őŔ-ťŨ-žƠ-ơƯ-ưǍ-ǜǞ-ǣǦ-ǭǰǴ-ǵǸ-țȞ-ȟȦ-ȳ\u0304Ӣ-ӣӮ-ӯḀ-ẙẠ-ỹᾱᾹῑῙῡῩK-Å]] ;
|
2004-08-02 20:06:55 +00:00
|
|
|
|
:: [:Latin:] fullwidth-halfwidth ();
|
|
|
|
|
:: NFD (NFC);
|
2012-08-28 21:56:06 +00:00
|
|
|
|
:: Lower (); # whenever transliterating from cased to uncased script, include this
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# :: NFD () ; # this would catch the odd cases where a lowercase is not in NFD, but none are important for Japanese
|
|
|
|
|
# Uses modified Hepburn. Small changes to make unambiguous.
|
|
|
|
|
# | Kunrei-shiki: Hepburn/MHepburn
|
|
|
|
|
# | ------------------------------
|
|
|
|
|
# | si: shi
|
|
|
|
|
# | si ~ya: sha
|
|
|
|
|
# | si ~yu: shu
|
|
|
|
|
# | si ~yo: sho
|
|
|
|
|
# | zi: ji
|
|
|
|
|
# | zi ~ya: ja
|
|
|
|
|
# | zi ~yu: ju
|
|
|
|
|
# | zi ~yo: jo
|
|
|
|
|
# | ti: chi
|
|
|
|
|
# | ti ~ya: cha
|
|
|
|
|
# | ti ~yu: chu
|
|
|
|
|
# | ti ~yu: cho
|
|
|
|
|
# | tu: tsu
|
|
|
|
|
# | di: ji/dji
|
|
|
|
|
# | du: zu/dzu
|
|
|
|
|
# | hu: fu
|
|
|
|
|
# | For foreign words:
|
|
|
|
|
# | -----------------
|
|
|
|
|
# | se ~i si
|
|
|
|
|
# | si ~e she
|
|
|
|
|
# |
|
|
|
|
|
# | ze ~i zi
|
|
|
|
|
# | zi ~e je
|
|
|
|
|
# |
|
|
|
|
|
# | te ~i ti
|
|
|
|
|
# | ti ~e che
|
|
|
|
|
# | te ~u tu
|
|
|
|
|
# |
|
|
|
|
|
# | de ~i di
|
|
|
|
|
# | de ~u du
|
|
|
|
|
# | de ~i di
|
|
|
|
|
# |
|
|
|
|
|
# | he ~u: hu
|
|
|
|
|
# | hu ~a fa
|
|
|
|
|
# | hu ~i fi
|
|
|
|
|
# | hu ~e he
|
|
|
|
|
# | hu ~o ho
|
|
|
|
|
# Most small forms are generated, but if necessary
|
|
|
|
|
# explicit small forms are given with ~a, ~ya, etc.
|
|
|
|
|
#------------------------------------------------------
|
|
|
|
|
# Variables
|
2004-08-02 20:06:55 +00:00
|
|
|
|
$vowel = [aeiou] ;
|
|
|
|
|
$consonant = [bcdfghjklmnpqrstvwxyz] ;
|
|
|
|
|
$macron = \u0304 ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# Variables used for doubled-consonants with tsu
|
2006-07-21 01:08:32 +00:00
|
|
|
|
$kana = [ぁ-ゔ] ;
|
|
|
|
|
$voice = [\u3099゛];
|
|
|
|
|
$semivoice = [\u309A゜];
|
2004-08-02 20:06:55 +00:00
|
|
|
|
$k_start = [カキクケコかきくけこ] ;
|
|
|
|
|
$s_start = [サシスセソさしすせそ] ;
|
|
|
|
|
$j_start = [シし] $voice ;
|
|
|
|
|
$t_start = [タチツテトたちつてと] ;
|
|
|
|
|
$n_start = [ナニヌネノンなにぬねの] ;
|
|
|
|
|
$h_start = [ハヒヘホはひへほ] ;
|
|
|
|
|
$f_start = [フふ] ;
|
|
|
|
|
$m_start = [マミムメモまみむめも] ;
|
|
|
|
|
$y_start = [ヤユヨやゆよ] ;
|
|
|
|
|
$r_start = [ラリルレロらりるれろ] ;
|
|
|
|
|
$w_start = [ワヰヱヲわゐゑを] ;
|
2006-07-21 01:08:32 +00:00
|
|
|
|
$v_start = [ワヰヱヲ]\u3099 ;
|
2009-03-13 03:21:29 +00:00
|
|
|
|
$voweled_basekana = [ァ-オカキクケコサシスセソタチッツテトナ-ノハヒフヘホマ-ヲヵヶ] ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# if ン is followed by $n_quoter, then it needs an
|
|
|
|
|
# apostrophe after its romaji form to disambiguate it.
|
|
|
|
|
# e.g., ン ア ! = ナ, so represent as "n'a", not "na".
|
2012-08-28 21:56:06 +00:00
|
|
|
|
$n_quoter = [ア イ ウ エ オ ナ ニ ヌ ネ ノ ヤ ユ ヨ ン] ;
|
2004-08-02 20:06:55 +00:00
|
|
|
|
$small_y = [ャィュェョ] ;
|
2006-07-21 01:08:32 +00:00
|
|
|
|
$iteration = ゝ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
#------------------------------------------------------
|
|
|
|
|
# katakana rules
|
|
|
|
|
# Punctuation
|
2009-04-10 07:47:09 +00:00
|
|
|
|
'.' ↔ 。;
|
|
|
|
|
',' ↔ 、;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# ' ' } [a-z] → ; # delete spaces before latin
|
|
|
|
|
# ' ' ← [^' '゠-ヿ] {} ['゠-ヿ] ; #insert spaces before hiragana
|
|
|
|
|
# Iteration Mark
|
|
|
|
|
# Copy previous letter § marks
|
|
|
|
|
# TODO
|
|
|
|
|
# | $1 $1 ← ($kana [[:M:]$voice$semivoice]?) $iteration
|
|
|
|
|
# Specials for katakana -- not shared with hiragana
|
2009-04-10 07:47:09 +00:00
|
|
|
|
va ↔ ワ\u3099 ;
|
|
|
|
|
vi ↔ ヰ\u3099 ;
|
|
|
|
|
ve ↔ ヱ\u3099 ;
|
|
|
|
|
vo ↔ ヲ\u3099 ;
|
|
|
|
|
'~ka' ↔ ヵ ;
|
|
|
|
|
'~ke' ↔ ヶ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# ~~~ begin shared rules ~~~
|
|
|
|
|
#special
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ya ← '~'ャ;
|
|
|
|
|
yi ← '~'ィ ;
|
|
|
|
|
yu ← '~'ュ;
|
|
|
|
|
ye ← '~'ェ;
|
|
|
|
|
yo ← '~'ョ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
#normal
|
2009-04-10 07:47:09 +00:00
|
|
|
|
a ↔ ア ;
|
|
|
|
|
b | '~' ← ヒ \u3099} $small_y ;
|
|
|
|
|
by } $vowel → ヒ\u3099 | '~y' ;
|
|
|
|
|
ba ↔ ハ\u3099 ;
|
|
|
|
|
bi ↔ ヒ\u3099 ;
|
|
|
|
|
bu ↔ フ\u3099 ;
|
|
|
|
|
be ↔ ヘ\u3099 ;
|
|
|
|
|
bo ↔ ホ\u3099 ;
|
|
|
|
|
c } i → | s ;
|
|
|
|
|
c } e → | s ;
|
|
|
|
|
da ↔ タ\u3099 ;
|
|
|
|
|
di ↔ テ\u3099ィ ;
|
|
|
|
|
du ↔ テ\u3099ゥ ;
|
|
|
|
|
de ↔ テ\u3099 ;
|
|
|
|
|
do ↔ ト\u3099 ;
|
|
|
|
|
dzu ↔ ツ\u3099 ;
|
|
|
|
|
dja ← チ\u3099ャ ;
|
|
|
|
|
dji'~i' ← チ\u3099ィ ; # liu
|
|
|
|
|
dju ← チ\u3099ュ ;
|
|
|
|
|
dje ← チ\u3099ェ ;
|
|
|
|
|
djo ← チ\u3099ョ ;
|
|
|
|
|
dji ↔ チ\u3099 ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
dj } $vowel → チ\u3099 | '~y' ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# TODO: QUESTION: use ĵĴżŻ instead of dj, dz
|
2009-04-10 07:47:09 +00:00
|
|
|
|
cha ← チャ ;
|
|
|
|
|
chi'~i' ← チィ ; # liu
|
|
|
|
|
chu ← チュ ;
|
|
|
|
|
che ← チェ ;
|
|
|
|
|
cho ← チョ ;
|
|
|
|
|
chi ↔ チ ;
|
|
|
|
|
ch } $vowel → チ | '~y' ;
|
|
|
|
|
e ↔ エ ;
|
|
|
|
|
g | '~' ← キ\u3099} $small_y ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
gy } $vowel → キ\u3099 | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ga ↔ カ\u3099 ;
|
|
|
|
|
gi ↔ キ\u3099 ;
|
|
|
|
|
gu ↔ ク\u3099 ;
|
|
|
|
|
ge ↔ ケ\u3099 ;
|
|
|
|
|
go ↔ コ\u3099 ;
|
|
|
|
|
i ↔ イ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# j } $vowel → シ\u3099 | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ja ↔ シ\u3099ャ ;
|
|
|
|
|
ji'~i' ← シ\u3099ィ ; # liu
|
|
|
|
|
ju ↔ シ\u3099ュ ;
|
|
|
|
|
je ↔ シ\u3099ェ ;
|
|
|
|
|
jo ↔ シ\u3099ョ ;
|
|
|
|
|
ji ↔ シ\u3099 ;
|
|
|
|
|
k | '~' ← キ} $small_y ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
ky } $vowel → キ | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ka ↔ カ ;
|
|
|
|
|
ki ↔ キ ;
|
|
|
|
|
ku ↔ ク ;
|
|
|
|
|
ke ↔ ケ ;
|
|
|
|
|
ko ↔ コ ;
|
|
|
|
|
m | '~' ← ミ} $small_y ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
my } $vowel → ミ | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ma ↔ マ ;
|
|
|
|
|
mi ↔ ミ ;
|
|
|
|
|
mu ↔ ム ;
|
|
|
|
|
me ↔ メ ;
|
|
|
|
|
mo ↔ モ ;
|
|
|
|
|
m } [pbfv] → ン ;
|
|
|
|
|
n | '~' ← ニ } $small_y ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
ny } $vowel → ニ | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
na ↔ ナ ;
|
|
|
|
|
ni ↔ ニ ;
|
|
|
|
|
nu ↔ ヌ ;
|
|
|
|
|
ne ↔ ネ ;
|
|
|
|
|
no ↔ ノ ;
|
|
|
|
|
o ↔ オ ;
|
|
|
|
|
p | '~' ← ヒ\u309A } $small_y ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
py } $vowel → ヒ\u309A | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
pa ↔ ハ\u309A ;
|
|
|
|
|
pi ↔ ヒ\u309A ;
|
|
|
|
|
pu ↔ フ\u309A ;
|
|
|
|
|
pe ↔ ヘ\u309A ;
|
|
|
|
|
po ↔ ホ\u309A ;
|
|
|
|
|
h | '~' ← ヒ } $small_y ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
hy } $vowel → ヒ | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ha ↔ ハ ;
|
|
|
|
|
hi ↔ ヒ ;
|
|
|
|
|
hu ↔ ヘゥ ;
|
|
|
|
|
he ↔ ヘ ;
|
|
|
|
|
ho ↔ ホ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# f | '~' ← フ } $small_y ;
|
|
|
|
|
# f } $vowel → フ | '~' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
fa ↔ ファ ;
|
|
|
|
|
fi ↔ フィ ;
|
|
|
|
|
fe ↔ フェ ;
|
|
|
|
|
fo ↔ フォ ;
|
|
|
|
|
fu ↔ フ ;
|
|
|
|
|
r | '~' ← リ } $small_y ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
ry } $vowel → リ | '~y' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ra ↔ ラ ;
|
|
|
|
|
ri ↔ リ ;
|
|
|
|
|
ru ↔ ル ;
|
|
|
|
|
re ↔ レ ;
|
|
|
|
|
ro ↔ ロ ;
|
|
|
|
|
za ↔ サ\u3099 ;
|
|
|
|
|
zi ↔ セ\u3099ィ ;
|
|
|
|
|
zu ↔ ス\u3099 ;
|
|
|
|
|
ze ↔ セ\u3099 ;
|
|
|
|
|
zo ↔ ソ\u3099 ;
|
|
|
|
|
sa ↔ サ ;
|
|
|
|
|
si ↔ セィ ;
|
|
|
|
|
su ↔ ス ;
|
|
|
|
|
se ↔ セ ;
|
|
|
|
|
so ↔ ソ ;
|
|
|
|
|
sha ← シャ ;
|
|
|
|
|
shi'~i' ← シィ ; # liu
|
|
|
|
|
shu ← シュ ;
|
|
|
|
|
she ← シェ ;
|
|
|
|
|
sho ← ショ ;
|
|
|
|
|
shi ↔ シ ;
|
|
|
|
|
sh } $vowel → シ | '~y' ;
|
|
|
|
|
ta ↔ タ ;
|
|
|
|
|
ti ↔ ティ ;
|
|
|
|
|
tu ↔ テゥ ;
|
|
|
|
|
te ↔ テ ;
|
|
|
|
|
to ↔ ト ;
|
|
|
|
|
tsu ↔ ツ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# v } $vowel → ウ\u3099 | '~' ;
|
|
|
|
|
#'v~a' ← ウ\u3099ァ ; # liu
|
|
|
|
|
#'v~i' ← ウ\u3099ィ ; # liu
|
|
|
|
|
#'v~e' ← ウ\u3099ェ ; # liu
|
|
|
|
|
#'v~o' ← ウ\u3099ォ ; # liu
|
2009-04-10 07:47:09 +00:00
|
|
|
|
vu ↔ ウ\u3099 ;
|
|
|
|
|
u ↔ ウ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# w } $vowel → ウ | '~' ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
wa ↔ ワ ;
|
|
|
|
|
wi ↔ ヰ ;
|
|
|
|
|
wu → ウ ;
|
|
|
|
|
we ↔ ヱ ;
|
|
|
|
|
wo ↔ ヲ ;
|
|
|
|
|
ya ↔ ヤ ;
|
|
|
|
|
yi → イ ;
|
|
|
|
|
yu ↔ ユ ;
|
|
|
|
|
ye → エ ;
|
|
|
|
|
yo ↔ ヨ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# double consonants
|
|
|
|
|
#specials
|
2009-04-10 07:47:09 +00:00
|
|
|
|
s } sh → ッ ;
|
|
|
|
|
t } ch → ッ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
#voiced
|
2009-04-10 07:47:09 +00:00
|
|
|
|
j } j ↔ ッ } $j_start ;
|
|
|
|
|
b } b ↔ ッ } [$h_start$f_start] $voice;
|
|
|
|
|
d } d ↔ ッ } $t_start $voice;
|
|
|
|
|
g } g ↔ ッ } $k_start $voice;
|
|
|
|
|
p } p ↔ ッ } [$h_start$f_start] $semivoice;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# v } v ↔ ッ } [ワヰウヱヲう] $voice ;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
z } z ↔ ッ } $s_start $voice;
|
|
|
|
|
v } v ↔ ッ } $v_start;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# normal
|
2009-04-10 07:47:09 +00:00
|
|
|
|
k } k ↔ ッ } $k_start ;
|
|
|
|
|
m } m ↔ ッ } $m_start ;
|
|
|
|
|
n } n ↔ ッ } $n_start ;
|
|
|
|
|
h } h ↔ ッ } $h_start ;
|
|
|
|
|
f } f ↔ ッ } $f_start ;
|
|
|
|
|
r } r ↔ ッ } $r_start ;
|
|
|
|
|
t } t ↔ ッ } $t_start ;
|
|
|
|
|
s } s ↔ ッ } $s_start ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
w } w ↔ ッ } $w_start;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
y } y ↔ ッ } $y_start;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# completeness
|
2009-04-10 07:47:09 +00:00
|
|
|
|
x } x → ッ ;
|
|
|
|
|
c } k → ッ ;
|
|
|
|
|
c } c → ッ ;
|
|
|
|
|
c } q → ッ ;
|
|
|
|
|
l } l → ッ ;
|
|
|
|
|
q } q → ッ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# y } y → ッ ;
|
|
|
|
|
# w } w → ッ ;
|
|
|
|
|
# prolonged vowel mark. this indicates a doubling of
|
|
|
|
|
# the preceding vowel sound
|
|
|
|
|
#a ← a { ー ; # liu
|
|
|
|
|
#e ← e { ー ; # liu
|
|
|
|
|
#i ← i { ー ; # liu
|
|
|
|
|
#o ← o { ー ; # liu
|
|
|
|
|
#u ← u { ー ; # liu
|
2009-04-10 07:47:09 +00:00
|
|
|
|
$macron ↔ ー ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# small forms
|
2009-04-10 07:47:09 +00:00
|
|
|
|
'~a' ↔ ァ ;
|
|
|
|
|
'~i' ↔ ィ ;
|
|
|
|
|
'~u' ↔ ゥ ;
|
|
|
|
|
'~e' ↔ ェ ;
|
|
|
|
|
'~o' ↔ ォ ;
|
|
|
|
|
'~tsu' ↔ ッ ;
|
|
|
|
|
'~wa' ↔ ヮ ;
|
|
|
|
|
'~ya' ↔ ャ ;
|
|
|
|
|
'~yi' → ィ ;
|
|
|
|
|
'~yu' ↔ ュ ;
|
|
|
|
|
'~ye' → ェ ;
|
|
|
|
|
'~yo' ↔ ョ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# iteration marks
|
|
|
|
|
# TODO: make more accurate
|
2009-04-10 07:47:09 +00:00
|
|
|
|
j $1 ← sh (y* $vowel) {ヽ$voice ;
|
|
|
|
|
dj $1 ← ch (y* $vowel) {ヽ$voice ;
|
|
|
|
|
dz $1 ← ts (y* $vowel) {ヽ$voice ;
|
|
|
|
|
g $1 ← k (y* $vowel) {ヽ$voice ;
|
|
|
|
|
z $1 ← s (y* $vowel) {ヽ$voice ;
|
|
|
|
|
d $1 ← t (y* $vowel) {ヽ$voice ;
|
|
|
|
|
h $1 ← b (y* $vowel) {ヽ$voice ;
|
|
|
|
|
v $1 ← w (y* $vowel) {ヽ$voice ;
|
|
|
|
|
sh $1 ← sh (y* $vowel) {ヽ$voice ;
|
|
|
|
|
j $1 ← j (y* $vowel) {ヽ$voice ;
|
|
|
|
|
ch $1 ← ch (y* $vowel) {ヽ$voice ;
|
|
|
|
|
dj $1 ← dj(y* $vowel) {ヽ$voice ;
|
|
|
|
|
ts $1 ← ts (y* $vowel) {ヽ$voice ;
|
|
|
|
|
dz $1 ← dz (y* $vowel) {ヽ$voice ;
|
|
|
|
|
$1 ← ($consonant y* $vowel) {ヽ$voice? ;
|
|
|
|
|
$1 ← (.) {ヽ $voice? ; # otherwise repeat last character
|
|
|
|
|
← ヽ $voice? ; # delete if no characters found
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# h- rule: lengthens vowel if not followed by a vowel.
|
|
|
|
|
# At the point this is applied, latin [cons]?vowel sequences
|
|
|
|
|
# have been converted to katakana in NFD form.
|
2009-04-10 07:47:09 +00:00
|
|
|
|
$voweled_basekana [\u3099 \u309A]? { h → ー ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# one-way latin- → kana rules. these do not occur in
|
|
|
|
|
# well-formed romaji representing actual japanese text.
|
|
|
|
|
# their purpose is to make all romaji map to kana of
|
|
|
|
|
# some sort.
|
|
|
|
|
# the following are not really necessary, but produce
|
|
|
|
|
# slightly more natural results.
|
2009-04-10 07:47:09 +00:00
|
|
|
|
cy → セィ ;
|
|
|
|
|
dy → テ\u3099ィ ;
|
|
|
|
|
hy → ヒ ;
|
|
|
|
|
sy → セィ ;
|
|
|
|
|
ty → ティ ;
|
|
|
|
|
zy → セ\u3099ィ ;
|
|
|
|
|
h → ヘ ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# isolated consonants listed here so as not to mask
|
|
|
|
|
# longer rules above.
|
2009-04-10 07:47:09 +00:00
|
|
|
|
ch → チ;
|
|
|
|
|
sh → シ ;
|
|
|
|
|
dz → ツ\u3099 ;
|
|
|
|
|
dj → チ\u3099;
|
|
|
|
|
b → フ\u3099 ;
|
|
|
|
|
d → テ\u3099 ;
|
|
|
|
|
g → ク\u3099 ;
|
|
|
|
|
k → ク ;
|
|
|
|
|
m → ム ;
|
|
|
|
|
n'' ← ン } $n_quoter ;
|
|
|
|
|
n ↔ ン ;
|
|
|
|
|
p → フ\u309A ;
|
|
|
|
|
r → ル ;
|
|
|
|
|
s → ス ;
|
|
|
|
|
t → テ ;
|
|
|
|
|
y → イ ;
|
|
|
|
|
z → ス\u3099 ;
|
|
|
|
|
v → ウ\u3099 ;
|
|
|
|
|
f → フ;
|
2012-08-28 21:56:06 +00:00
|
|
|
|
j → シ\u3099;
|
2009-04-10 07:47:09 +00:00
|
|
|
|
w → ウ;
|
|
|
|
|
ß → | ss ;
|
|
|
|
|
æ → | e ;
|
|
|
|
|
ð → | d ;
|
|
|
|
|
ø → | u ;
|
|
|
|
|
þ → | th ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# simple substitutions using backup
|
2009-04-10 07:47:09 +00:00
|
|
|
|
c → | k ;
|
|
|
|
|
l → | r ;
|
|
|
|
|
q → | k ;
|
|
|
|
|
x → | ks ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# ~~~ END shared rules ~~~
|
|
|
|
|
#------------------------------------------------------
|
|
|
|
|
# Final cleanup
|
2009-04-10 07:47:09 +00:00
|
|
|
|
'~' → ; # delete stray tildes between letters
|
|
|
|
|
[:Katakana:] { '' } [:Latin:] → ; # delete stray quotes between letters
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# [ʾ[:Nonspacing Mark:]-[\u3099-゜]] → ; # delete any non-spacing marks that we didn't use
|
2006-07-21 01:08:32 +00:00
|
|
|
|
:: NFC (NFD) ;
|
2007-07-26 01:38:26 +00:00
|
|
|
|
:: ([[:Katakana:][\u309B\u309C\u30A0\u30FC\uFF70\uFF9E\uFF9F]] halfwidth-fullwidth);
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# note: a global filter is more efficient, but MUST include all source chars!!
|
|
|
|
|
#:: ([\u0000-\u007E 、。 \u3099-゜ ァ-ー 。-゚ [:Latin:][:Katakana:] [:nonspacing mark:]]);
|
|
|
|
|
# MINIMAL FILTER GENERATED FOR: Latin-Katakana BACKWARD
|
2007-07-26 01:38:26 +00:00
|
|
|
|
:: ( [[\ -~¢-£¥-¦¬\u0304₩。-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ│-○][~、-。がぎぐげござじずぜぞだぢづでどば-ぱび-ぴぶ-ぷべ-ぺぼ-ぽゔ\u3099-゛ゞァ-ヺー-ヾ][\u309B\u309C\u30A0\u30FC\uFF70\uFF9E\uFF9F]] ) ;
|
2016-02-05 03:37:50 +00:00
|
|
|
|
# eof
|
|
|
|
|
|