-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
238 lines (228 loc) · 7.63 KB
/
index.html
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="public/style.css" />
<title>Teochew Romanization Converter</title>
<script src="./public/webscript.js" type="module"></script>
</head>
<body>
<div class="padbox">
<h1>Teochew Romanization Converter • 潮州話拼音系統轉換器</h1>
<p>
Converts between different romanization systems for the
<a href="https://en.wikipedia.org/wiki/Teochew_Min">Teochew</a>
language.
</p>
<p>
轉換<a href="https://zh.wikipedia.org/wiki/%E6%BD%AE%E5%B7%9E%E8%AF%9D"
>潮州話</a
>不同的羅馬拼音系統。
</p>
<p>
Looking for our
<a href="https://learnteochew.com/charpeng-js/"
>Teochew Pronunciation Annotator</a
>
instead?
</p>
<p>
Made by <a href="https://learnteochew.com/">LearnTeochew.com</a>; visit
our main site to learn more about the Teochew language.
</p>
</div>
<div class="lightblue">
<h2>Input • 輸入</h2>
<textarea id="input" name="input" rows="4">
Le2 gai5 ka1-chng1 zing1 dua7!</textarea
>
</div>
<div class="lightblue" id="fieldsetdiv">
<fieldset>
<legend>Convert from • 輸入系統</legend>
<div class="radio">
<input type="radio" id="in_puj" name="inputsystem" value="puj" />
<label for="in_puj">Pe̍h-ūe-jī 潮州白話字</label>
</div>
<div class="radio">
<input type="radio" id="in_pujn" name="inputsystem" value="pujn" />
<label for="in_pujn">Pe̍h-ūe-jī + tone numbers 潮州白話字</label>
</div>
<div class="radio">
<input
type="radio"
id="in_gdpi"
name="inputsystem"
value="gdpi"
checked
/>
<label for="in_gdpi">Guangdong Pêng'im 潮拼</label>
</div>
<div class="radio">
<input type="radio" id="in_ggn" name="inputsystem" value="ggn" />
<label for="in_ggn">Gaginang Peng'im 家己人拼音</label>
</div>
<div class="radio">
<input
type="radio"
id="in_dieghv"
name="inputsystem"
value="dieghv"
/>
<label for="in_dieghv">Dieghv 潮語拼音</label>
</div>
<div class="radio">
<input
type="radio"
id="in_fielde"
name="inputsystem"
value="fielde"
/>
<label for="in_fielde">Fielde Dictionary 斐氏詞典</label>
</div>
</fieldset>
<fieldset>
<legend>Convert to • 輸出系統</legend>
<div class="radio">
<input
type="radio"
id="out_puj"
name="outputsystem"
value="puj"
checked
/>
<label for="out_puj">Pe̍h-ūe-jī 潮州白話字</label>
</div>
<div class="radio">
<input type="radio" id="out_pujn" name="outputsystem" value="pujn" />
<label for="out_pujn">Pe̍h-ūe-jī + tone numbers 潮州白話字</label>
</div>
<div class="radio">
<input type="radio" id="out_gdpi" name="outputsystem" value="gdpi" />
<label for="out_gdpi">Guangdong Pêng'im 潮拼</label>
</div>
<div class="radio">
<input type="radio" id="out_ggn" name="outputsystem" value="ggn" />
<label for="out_ggn">Gaginang Peng'im 家己人拼音</label>
</div>
<div class="radio">
<input
type="radio"
id="out_dieghv"
name="outputsystem"
value="dieghv"
/>
<label for="out_dieghv">Dieghv 潮語拼音</label>
</div>
<div class="radio">
<input
type="radio"
id="out_fielde"
name="outputsystem"
value="fielde"
/>
<label for="out_fielde">Fielde Dictionary 斐氏詞典</label>
</div>
</fieldset>
</div>
<div class="lightblue">
<button id="convertbutton">Convert • 轉換</button>
<input type="checkbox" id="superscript" name="superscript" />
<label for="superscript">Superscript tone numbers in output</label>
</div>
<div class="lightpink">
<h2>Output • 輸出</h2>
<div id="outputdiv">
<span style="color: grey">[output will appear here]</span>
</div>
<div id="ipadiv">
<span style="color: grey">[IPA will appear here]</span>
</div>
<p>Invalid input syllables will be marked in red and not be converted.</p>
<p>無效的輸入音節將會以紅色標記並且不會被轉換。</p>
</div>
<div>
<h2>Details</h2>
<ul>
<li>
This tool converts romanized text only. If you wish to annotate
Chinese characters with their pronunciation, use our
<a href="https://learnteochew.com/charpeng-js/"
>Teochew Pronunciation Annotator</a
>
tool instead.
</li>
<li>
Tones must be marked either by numbers (GDPI, GGN, Dieghv) or
diacritics (PUJ, Fielde) on each syllable.
</li>
<li>
Punctuation, spacing, and numerals in the input will be preserved.
</li>
<li>
Tone sandhi will not be computed because it depends on word
segmentation.
</li>
<li>
Invalid input syllabes will not be converted, and will be highlighted
in red.
</li>
</ul>
<p>Currently supported romanization systems:</p>
<ul>
<li>
<a href="https://en.wikipedia.org/wiki/Teochew_Romanization"
>Pe̍h-ūe-jī (PUJ)</a
>
•
<a
href="https://zh.wikipedia.org/wiki/%E6%BD%AE%E5%B7%9E%E7%99%BD%E8%A9%B1%E5%AD%97"
>潮州白話字</a
>(也名汕頭教會羅馬字)
</li>
<li>
<a href="https://en.wikipedia.org/wiki/Peng%27im"
>Guangdong Pêng'im (GDPI)</a
>
• 廣東省教育部門<a
href="https://zh.wikipedia.org/wiki/%E6%BD%AE%E5%B7%9E%E8%A9%B1%E6%8B%BC%E9%9F%B3%E6%96%B9%E6%A1%88"
>潮州話拼音方案</a
>(潮拼)
</li>
<li>
<a
href="https://docs.google.com/document/d/187VokH_NLN4H_fZntbEfFFMdiqZKhZBQUEhI9y7-8vo/mobilebasic"
>Gaginang Peng'im (GGN)</a
>
(used in the <a href="https://tcknow.com/">WhatTCSay3</a> dictionary
app) • 家己人拼音
</li>
<li>
<a href="https://github.com/kahaani/dieghv">Dieghv</a> (used in the
<a href="https://github.com/kahaani/dieghv"
>dieghv input module for RIME</a
>) • 潮語拼音(與<a href="https://github.com/kahaani/dieghv"
>潮州拼音輸入法</a
>使用)
</li>
<li>
<a
href="https://en.wikisource.org/wiki/Dictionary_of_the_Swatow_dialect"
>Fielde Dictionary</a
>
• 斐氏《汕頭方言詞典》
</li>
</ul>
<p>
<strong>NB: Still in beta testing!</strong>
<a href="https://github.com/learn-teochew/pengim-js"
>GitHub repository</a
>
for this Javascript project. For another implementation in Python, try
our
<a href="https://github.com/learn-teochew/parsetc">parsetc</a> library.
</p>
</div>
</body>
</html>