more hiragana

This commit is contained in:
Daniel Olsen 2020-07-18 13:46:47 +02:00
parent 711f4725d0
commit 2ec17be818
2 changed files with 141 additions and 14 deletions

View File

@ -1,4 +1,10 @@
--- ---
# n has supesharu sutâtsusu
- raw:
- "n'"
- "ん"
# gojuuonzu 4-letter
# gojuuonzu 3-letter # gojuuonzu 3-letter
- raw: - raw:
- "shi" - "shi"
@ -20,22 +26,22 @@
- "kyo" - "kyo"
- "きょ" - "きょ"
- raw: - raw:
- "sha" - "sha|sya"
- "しゃ" - "しゃ"
- raw: - raw:
- "shu" - "shu|syu"
- "しゅ" - "しゅ"
- raw: - raw:
- "sho" - "sho|syo"
- "しょ" - "しょ"
- raw: - raw:
- "cha" - "cha|tya"
- "ちゃ" - "ちゃ"
- raw: - raw:
- "chu" - "chu|tyu"
- "ちゅ" - "ちゅ"
- raw: - raw:
- "cho" - "cho|tyo"
- "ちょ" - "ちょ"
- raw: - raw:
- "nya" - "nya"
@ -101,6 +107,24 @@
- raw: - raw:
- "pyo" - "pyo"
- "ぴょ" - "ぴょ"
- raw:
- "zya"
- "じゃ"
- raw:
- "zyu"
- "じゅ"
- raw:
- "zyo"
- "じょ"
- raw:
- "dya"
- "ぢゃ"
- raw:
- "dyu"
- "ぢゅ"
- raw:
- "dyo"
- "ぢょ"
#sokuon #sokuon
- raw: - raw:
- "kka" - "kka"
@ -159,6 +183,76 @@
- raw: - raw:
- "wwo" - "wwo"
- "っを" - "っを"
#dakuon and handakuon 3-letters
- raw:
- "gga"
- "っが"
- raw:
- "ggi"
- "っぎ"
- raw:
- "ggu"
- "っぐ"
- raw:
- "gge"
- "っげ"
- raw:
- "ggo"
- "っご"
- raw:
- "zza"
- "っざ"
- raw:
- "jji"
- "っじ"
- raw:
- "zzu"
- "っず"
- raw:
- "zze"
- "っぜ"
- raw:
- "zzo"
- "っぞ"
- raw:
- "dda"
- "っだ"
- raw:
- "dde"
- "っで"
- raw:
- "ddo"
- "っど"
- raw:
- "bba"
- "っば"
- raw:
- "bbi"
- "っび"
- raw:
- "bbu"
- "っぶ"
- raw:
- "bbe"
- "っべ"
- raw:
- "bbo"
- "っぼ"
- raw:
- "ppa"
- "っぱ"
- raw:
- "ppi"
- "っぴ"
- raw:
- "ppu"
- "っぷ"
- raw:
- "ppe"
- "っぺ"
- raw:
- "ppo"
- "っぽ"
# gojuuonzu 2-letter # gojuuonzu 2-letter
- raw: - raw:
@ -178,7 +272,10 @@
- "こ" - "こ"
- raw: - raw:
- "sa" - "sa"
- "ka" - "さ"
- raw:
- "si"
- "し"
- raw: - raw:
- "su" - "su"
- "す" - "す"
@ -191,6 +288,12 @@
- raw: - raw:
- "ta" - "ta"
- "た" - "た"
- raw:
- "ti"
- "ち"
- raw:
- "tu"
- "つ"
- raw: - raw:
- "te" - "te"
- "て" - "て"
@ -219,7 +322,7 @@
- "hi" - "hi"
- "ひ" - "ひ"
- raw: - raw:
- "fu" - "fu|hu"
- "ふ" - "ふ"
- raw: - raw:
- "he" - "he"
@ -292,7 +395,7 @@
- "za" - "za"
- "ざ" - "ざ"
- raw: - raw:
- "ji" - "ji|zi"
- "じ" - "じ"
- raw: - raw:
- "zu" - "zu"
@ -307,10 +410,10 @@
- "da" - "da"
- "だ" - "だ"
- raw: - raw:
- "ji" - "di"
- "ぢ" - "ぢ"
- raw: - raw:
- "zu" - "zu|du"
- "づ" - "づ"
- raw: - raw:
- "de" - "de"
@ -347,8 +450,31 @@
- "ぺ" - "ぺ"
- raw: - raw:
- "po" - "po"
- "ぽ - "ぽ"
" - raw:
- ""
- ""
#youon 2-letter
- raw:
- "ja"
- "じゃ"
- raw:
- "ju"
- "じゅ"
- raw:
- "jo"
- "じょ"
# ????? 2 - letter
- raw:
- "wi"
- "ゐ"
- raw:
- "we"
- "ゑ"
- raw:
- "wo"
- "を"
# gojuuonzu 1-letter # gojuuonzu 1-letter
- raw: - raw:
- "a" - "a"

View File

@ -157,7 +157,8 @@ export default function x2i(content: string) {
OuterXRegExp.forEach(content, regex, match => { OuterXRegExp.forEach(content, regex, match => {
const parts = match.slice(2, 6); const parts = match.slice(2, 6);
if (parts.length === 4) { if (parts.length === 4) {
const [k, l, m, r] = parts; var [k, l, m, r] = parts;
if (k === "hi") { m = m.toLowerCase() }
const converted = force(k, l, m, r); // eg x, [, text, ] const converted = force(k, l, m, r); // eg x, [, text, ]
if (converted) { if (converted) {