Module:snon-mut: Difference between revisions

No edit summary
No edit summary
Line 53: Line 53:
if is_proper then
if is_proper then
if apostrophe then
if apostrophe then
ret.eclipsis = ret.eclipsis:gsub("^n'(%w)", "n'" .. upper):gsub("'","")
ret.eclipsis = ret.eclipsis:gsub("^n'(%w)", "n'" .. upper("%1")):gsub("'","")
ret.lenition = ret.lenition:gsub("^h'(%w)", "h'" .. upper):gsub("'","")
ret.lenition = ret.lenition:gsub("^h'(%w)", "h'" .. upper("%1")):gsub("'","")
else
else
ret.eclipsis = ret.eclipsis:gsub("^(%w)", upper)
ret.eclipsis = ret.eclipsis:gsub("^(%w)", upper)