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 = "n" .. ret.eclipsis | ret.eclipsis = "n" .. gsub(ret.eclipsis, "^n'(%w)", upper) | ||
ret.lenition = "h" .. ret.lenition | ret.lenition = "h" .. gsub(ret.lenition, "^h'(%w)", upper) | ||
else | else | ||
ret.eclipsis = ret.eclipsis | ret.eclipsis = gsub(ret.eclipsis, "^(%w)", upper) | ||
ret.lenition = ret.lenition | ret.lenition = gsub(ret.lenition, "^(%w)", upper) | ||
end | end | ||
end | end | ||
return ret | return ret, apostrophe | ||
end | end | ||
| Line 74: | Line 74: | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local is_vowel | |||
local ret = {radical = args[1]} | local ret = {radical = args[1]} | ||
ret = export.mutations(ret, args) | ret, is_vowel = export.mutations(ret, args) | ||
local links = {} | local links = {} | ||
| Line 95: | Line 96: | ||
local contents = [[ | local contents = [[ | ||
|- | |- | ||
! radical !! lenition !! eclipsis | ! radical !! ]] .. (is_vowel and "h-prothesis" or "lenition") .. [[ !! eclipsis | ||
|- | |- | ||
| {radical} || {lenition} || {eclipsis} | | {radical} || {lenition} || {eclipsis} | ||