Module:snon-mut: Difference between revisions
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
local GRAVE = "\204\128" | local GRAVE = "\204\128" | ||
local lang = require("Module:languages").getByCode(" | local lang = require("Module:languages").getByCode("snon") | ||
local PAGENAME = mw.loadData("Module:headword/data").pagename | local PAGENAME = mw.loadData("Module:headword/data").pagename | ||
local MARKER = "<sup>△</sup>" | local MARKER = "<sup>△</sup>" | ||
| Line 19: | Line 19: | ||
["bh"] = {"b", "m", "gh"}, | ["bh"] = {"b", "m", "gh"}, | ||
["c"] = {"g", "ngh", "ch"}, | ["c"] = {"g", "ngh", "ch"}, | ||
["ch"] = {"gh", "ngh"}, | ["ch"] = {"gh", "ngh", "h"}, | ||
["d"] = {"dd", "n", "dh"}, | ["d"] = {"dd", "n", "dh"}, | ||
["dh"] = {"d", "n", "gh"}, | ["dh"] = {"d", "n", "gh"}, | ||
["g"] = {"gg", "ng", "gh"}, | ["g"] = {"gg", "ng", "gh"}, | ||
["h"] = {"gh", "nh", "ch"}, | ["h"] = {"gh", "nh", "ch"}, | ||
["l"] = {"lh"}, | ["l"] = {"ll", "l", "lh"}, | ||
["m"] = {"mh"}, | ["m"] = {"m", "mm", "mh"}, | ||
["n"] = {"nh"}, | ["n"] = {"n", "nn", "nh"}, | ||
["p"] = {"b", "mh", "ph"}, | ["p"] = {"b", "mh", "ph"}, | ||
["ph"] = {"bh", "mh", "h"}, | ["ph"] = {"bh", "mh", "h"}, | ||
["r"] = {"rr", "rh"}, | ["r"] = {"rr", "r", "rh"}, | ||
["s"] = {"z", "sh"}, | ["s"] = {"z", "s","sh"}, | ||
["t"] = {"d", "nh", "th"}, | ["t"] = {"d", "nh", "th"}, | ||
["th"] = {"dh", "nh", " | ["th"] = {"dh", "nh", "ch"}, | ||
} | } | ||
| Line 45: | Line 45: | ||
if data.vowel then | if data.vowel then | ||
data.final = term_lower | data.final = term_lower | ||
data.mut1 = " | data.mut1 = "gh-" | ||
data.mut2 = "n-" | |||
data.mut3 = "ch-" | |||
return data | return data | ||
end | end | ||
| Line 127: | Line 129: | ||
result = result .. '\n! [[radical]]' | result = result .. '\n! [[radical]]' | ||
result = result .. '\n! ' .. (data.vowel and 'gh-prothesis' or '[[soft mutation|voiced]]') | result = result .. '\n! ' .. (data.vowel and 'gh-prothesis' or '[[soft mutation|voiced]]') | ||
result = result .. '\n! ' .. (data.vowel and ' | result = result .. '\n! ' .. (data.vowel and 'n-prothesis' or '[[nasal mutation|nasal]]') | ||
result = result .. '\n! ' .. (data.vowel and ' | result = result .. '\n! ' .. (data.vowel and 'ch-prothesis' or '[[aspirate mutation|aspirate]]') | ||
result = result .. '\n|-' | result = result .. '\n|-' | ||
result = result .. '\n| ' .. require("Module:links").full_link({lang = lang, term = data.radical}) | result = result .. '\n| ' .. require("Module:links").full_link({lang = lang, term = data.radical}) | ||