Module:snon-mut: Difference between revisions

Melinoë (talk | contribs)
Undo revision 493106 by Melinoë (talk)
Tag: Undo
Melinoë (talk | contribs)
No edit summary
Line 10: Line 10:


local GRAVE = "\204\128"
local GRAVE = "\204\128"
local ACUTE = "\204\129"
local CIRC = "\204\130"
local DIAER = "\204\136"


local lang = require("Module:languages").getByCode("cy")
local lang = require("Module:languages").getByCode("cy")
Line 44: Line 41:
data.is_uppercase = term_lower ~= term
data.is_uppercase = term_lower ~= term
local normalized = toNFD(term_lower)
local normalized = toNFD(term_lower)
data.vowel = normalized:match("^[aeiouwy]") and true or false
data.vowel = normalized:match("^[aeiouøy]") and true or false
if data.vowel then
if data.vowel then
data.final = term_lower
data.final = term_lower
data.mut3 = "h"
data.mut = "h"
return data
return data
end
end