blob: ef543daad4b1f0f8daab1aa9acac365caca188ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
# © 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html#License
#
# File: zh_Latn_PINYIN_ru.txt
# Generated from CLDR
#
# Cyrillization of Mandarin Chinese from Pinyin into Russian (Palladius system).
#
# References:
# http://ru.wikipedia.org/wiki/Транскрипционная_система_Палладия
# http://www.omniglot.com/writing/mandarin_pts.htm
# http://www.pinyin.info/romanization/russian/index.html
# These differ in the treatment of some syllables (e.g. <jue>) from the rules
# below.
#
# Further commentary:
# http://languagelog.ldc.upenn.edu/nll/?p=604
#
# Remove tone marks.
:: NFD (NFC);
[\u0304\u0301\u030C\u0300\u0306] → ;
:: NFC (NFD);
#
#
# Syllabify. Add apostrophes to disambiguate whether <n> and <g> belong to the
# coda or onset of a syllable.
:: Null ();
ng } [aeou] → n\'g;
ng → ng\';
n } [aeiouü] → \'n;
n → n\';
#
#
# Main pass.
:: Null ();
#
#
Ai → Ай;
A → А;
B → Б;
Ch → Ч;
Ci → Цы;
C → Ц;
D → Д;
E → Э;
F → Ф;
G → Г;
H → Х;
Ju → Цз | ü;
J → Цз;
K → К;
L → Л;
M → М;
N → Н;
O → О;
P → П;
Qu → Ц | ü;
Q → Ц;
R → Ж;
Sh → Ш;
Si → Сы;
S → С;
T → Т;
Wu → У;
W → В;
Xu → С | ü;
X → С;
Yai → Яй;
Ya → Я;
Ye → Е;
Yi → И;
You → Ю;
Yo } ng → Ю;
Yo → Ё;
Yu → Ю | v;
Zh → Чж;
Zi → Цзы;
Z → Цз;
#
#
[$] { n → н;
\'n → н;
\' → ;
#
#
ai → ай;
a → а;
b → б;
ch → ч;
ci → цы;
c → ц;
d → д;
ei → эй;
e → э;
f → ф;
g → г;
h → х;
ia → я;
ie → е;
io } ng → ю;
iu → ю;
i → и;
ju → цз | ü;
j → цз;
k → к;
l → л;
m → м;
ng → н;
n → нь;
o } ng → у;
o → о;
p → п;
qu → ц | ü;
q → ц;
r } [^aeiou] → р;
r → ж;
sh → ш;
si → сы;
s → с;
t → т;
[Хх] { ui → уэй; # special exception
ui → уй;
uo → о;
u → у;
ü → ю | v;
#
# We use the dummy symbol <v> to signal that an <ü> or equivalent character has
# just been processed.
ve → э;
#
#alternative: ve → е;
v } [an] → ;
v → й;
wu → у;
w → в;
xu → с | ü;
x → с;
yai → яй;
ya → я;
ye → е;
yi → и;
you → ю;
yo } ng → ю;
yo → ё;
yu → ю | v;
zh → чж;
zi → цзы;
z → цз;
#
#
# Final pass: Make sure that the output consists entirely of Cyrillic letters.
:: NFC ();
|