3,764
edits
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
local cons = "[pbmʋstdnlkgŋʁɬjhχ]" | local cons = "[pbmʋstdnlkgŋʁɬjhχ]" | ||
local vow = "[aiuɛeɔoʉə]" | local vow = "[aiuɛeɔoʉə]" | ||
local function same(foo, bar) | |||
foo, bar = mw.ustring.toNFD(foo), mw.ustring.toNFD(bar) -- decompose diacritics | |||
foo, bar = match(foo, "^."), match(bar, "^.") -- sort out the letter | |||
return foo == bar and true or false | |||
end | |||
local translit = { | local translit = { | ||
edits