734
edits
(fix arity check at top of deranize()) |
(reformat lookup table) |
||
Line 23: | Line 23: | ||
} | } | ||
local | local deranimap = { | ||
-- consonants | -- consonants | ||
m | ["m"] = "", -- DERANI LETTER MAMEI | ||
m_ | ["m_"] = "", -- DERANI LETTER MAMEI CODA | ||
b | ["b"] = "", -- DERANI LETTER BUBUE | ||
p | ["p"] = "", -- DERANI LETTER PIPOQ | ||
f | ["f"] = "", -- DERANI LETTER FOFUAQ | ||
n | ["n"] = "", -- DERANI LETTER NANAQ | ||
d | ["d"] = "", -- DERANI LETTER DUDEO | ||
t | ["t"] = "", -- DERANI LETTER TITIEQ | ||
z | ["z"] = "", -- DERANI LETTER ZOZEO | ||
c | ["c"] = "", -- DERANI LETTER CECOA | ||
s | ["s"] = "", -- DERANI LETTER SAQSEOQ | ||
r | ["r"] = "", -- DERANI LETTER RAIRUA | ||
l | ["l"] = "", -- DERANI LETTER LAOLIQ | ||
nh | ["nh"] = "", -- DERANI LETTER NHANHOQ | ||
j | ["j"] = "", -- DERANI LETTER JUJUO | ||
ch | ["ch"] = "", -- DERANI LETTER CHICHAO | ||
sh | ["sh"] = "", -- DERANI LETTER SHOSHIA | ||
["ꝡ"] = "", -- DERANI LETTER VEVA | ["ꝡ"] = "", -- DERANI LETTER VEVA | ||
q_ | ["q_"] = "", -- DERANI LETTER AQ-AQ | ||
g | ["g"] = "", -- DERANI LETTER GUGUI | ||
k | ["k"] = "", -- DERANI LETTER KIKUE | ||
["'"] = "", -- DERANI LETTER O-AOMO | ["'"] = "", -- DERANI LETTER O-AOMO | ||
h | ["h"] = "", -- DERANI LETTER HEHAQ | ||
-- vowels | -- vowels | ||
a | ["a"] = "", -- DERANI LETTER SAQSEOQ | ||
["ı"] = "", -- DERANI LETTER CECOA | ["ı"] = "", -- DERANI LETTER CECOA | ||
u | ["u"] = "", -- DERANI LETTER BUBUE | ||
o | ["o"] = "", -- DERANI LETTER GUGUI | ||
e | ["e"] = "", -- DERANI LETTER FOFUAQ | ||
-- tone marks | -- tone marks | ||
[2] | [2] = "", -- DERANI COMBINING RISING TONE | ||
[3] | [3] = "", -- DERANI COMBINING LOW GLOTTAL TONE | ||
[4] | [4] = "", -- DERANI COMBINING RISING-FALLING TONE | ||
-- TODO: the rest of the owl | -- TODO: the rest of the owl | ||
} | } | ||
Line 98: | Line 98: | ||
end | end | ||
for _, glyph in ipairs(glyphs) do | for _, glyph in ipairs(glyphs) do | ||
local mapped = | local mapped = deranimap[glyph] | ||
if mapped then | if mapped then | ||
res[#res+1] = mapped | res[#res+1] = mapped | ||
Line 108: | Line 108: | ||
end | end | ||
return { | return {deranize = deranize} |