Module:snon-mut: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 48: Line 48:
ret.eclipsis = gsub(lower_radical, "^ghi" .. vowels, "ni%1")
ret.eclipsis = gsub(lower_radical, "^ghi" .. vowels, "ni%1")
else
else
ret.eclipsis = nil
ret.eclipsis = "-"
end
end
Line 82: Line 82:
if args.temp_len then
if args.temp_len then
return ret.lenition or ret.radical
return ret.lenition == "-" and ret.radical or ret.lenition
end
end
if args.temp_ecl then
if args.temp_ecl then
return ret.eclipsis or ret.radical
return ret.eclipsis == "-" and ret.radical or ret.eclipsis
end
end
local links = {}
local links = {}
for k, v in pairs(ret) do
for k, v in pairs(ret) do
if not v then
if v == "-" then
links[k] = "''not applicable''"
links[k] = "''not applicable''"
else
else