Module:rad-stem: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 26: Line 26:
     ["j"] = "C",
     ["j"] = "C",
     ["k"] = "C",
     ["k"] = "C",
    ["ķ"] = "C",
     ["l"] = "C",
     ["l"] = "C",
     ["m"] = "C",
     ["m"] = "C",
Line 83: Line 84:
     ["i"] = "V",
     ["i"] = "V",
     ["ie"] = "V",
     ["ie"] = "V",
    ["iè"] = "V",
     ["nj^e"] = "V",
     ["nj^e"] = "V",
     ["o"] = "V",
     ["o"] = "V",
Line 88: Line 90:
     ["ø"] = "V",
     ["ø"] = "V",
     ["t^o"] = "V",
     ["t^o"] = "V",
    ["ķ^o"] = "V",
     ["u"] = "V",
     ["u"] = "V",
    ["ù"] = "V",
     ["y"] = "V",
     ["y"] = "V",
     -- light spirant --
     -- light spirant --
Line 104: Line 108:
     ["ai"] = {"ai", "ai"},
     ["ai"] = {"ai", "ai"},
     ["áj"] = {"áj", "áj"},
     ["áj"] = {"áj", "áj"},
     ["au"] = {"au", "au"},
     ["au"] = {"", "au"},
     ["e"] = {"Ra", "e", "=i"},
     ["e"] = {"Ra", "e", "=i"},
     ["i"] = {"Re", "=i"},
     ["i"] = {"Re", "=i"},
     ["ie"] = {"íRa", "ie"},
     ["ie"] = {"íRa", "ie"},
    ["iè"] = {"ia", "iè"},
     ["o"] = {"Ra", "o", "u", "un", "ust"},
     ["o"] = {"Ra", "o", "u", "un", "ust"},
     ["o*"] = {"o*", "o", "o*", "on*", "ost*"},
     ["o*"] = {"o*", "o", "o*", "on*", "ost*"},
     ["ø"] = {"Ra", "ø", "y"},
     ["ø"] = {"Ra", "ø", "y"},
     ["u"] = {"Re", "u"},
     ["u"] = {"Re", "u"},
    ["ù"] = {"ù", "ù"},
     ["y"] = {"Re", "y"},
     ["y"] = {"Re", "y"},
     ["a^eG"] = {"ár", "í", "á", "ád", "aúr", "ai", "áse"},
     ["a^eG"] = {"ár", "í", "á", "ád", "aúr", "ai", "áse"},
Line 145: Line 151:
     resolve("(ie[HḤ][HḤ]?%=e)$", "íe")
     resolve("(ie[HḤ][HḤ]?%=e)$", "íe")
     resolve("(ye[HḤ][HḤ]?%=e)$", "ýe")
     resolve("(ye[HḤ][HḤ]?%=e)$", "ýe")
    resolve("([eoø]a)[HḤ][HḤ]?%=e$", "%1je")
     resolve("(a[HḤ][HḤ]?%=e)$", "ai")
     resolve("(a[HḤ][HḤ]?%=e)$", "ai")
     resolve("(e[HḤ][HḤ]?%=e)$", "ei")
     resolve("(e[HḤ][HḤ]?%=e)$", "ei")
Line 162: Line 169:
     resolve("([ouû]H%=[ei])", "ui")
     resolve("([ouû]H%=[ei])", "ui")
     resolve("([ouû]H%=se)", "ûse")
     resolve("([ouû]H%=se)", "ûse")
    resolve("([eoø]a)H%=[ei]", "%1j=e")
     resolve("(aH%=[ei])", "ai")
     resolve("(aH%=[ei])", "ai")
     resolve("([" .. V .. "])H%=[ei]", "%1j=e")
     resolve("([" .. V .. "])H%=[ei]", "%1j=e")
Line 272: Line 280:
     resolve("([òù]v%=)", "ú=")
     resolve("([òù]v%=)", "ú=")


     resolve("([^iy])ev%=([^" .. V .. "])", "%1ø=%2")
     resolve("([^iy])ev%=([^R" .. V .. "])", "%1ø=%2")
     resolve("^ev%=([^" .. V .. "])", "ø=%1")
     resolve("^ev%=([^R" .. V .. "])", "ø=%1")
     resolve("(èv%=)", "ø=")
     resolve("(èv%=)", "ø=")


     resolve("([^aeuøuâ])iv%=([^" .. V .. "])", "%1y=%2")
     resolve("([^aeuøuâ])iv%=([^R" .. V .. "])", "%1y=%2")
     resolve("^iv%=([^" .. V .. "])", "y=%1")
     resolve("^iv%=([^R" .. V .. "])", "y=%1")
     resolve("(ìv%=)", "y=")
     resolve("(ìv%=)", "y=")


Line 474: Line 482:
         principle_parts["ins"] = stem .. "nivúr"
         principle_parts["ins"] = stem .. "nivúr"
         principle_parts["nompl"] = stem_broken .. "nxe"
         principle_parts["nompl"] = stem_broken .. "nxe"
         principle_parts["genpl"] = stem_broken .. "nje"
         principle_parts["genpl"] = stem_broken_e .. "nje"
         principle_parts["genpl_short"] = stem_broken_e .. "nje=s"
         principle_parts["genpl_short"] = stem_broken_e .. "nje=s"
     elseif ending == "t^o" then
     elseif mw.ustring.match(ending, "^[tķ]%^o$") then
         principle_parts["nom"] = stem_broken .. "ts"
    local temp_stem = mw.ustring.match(ending, "^([tķ])%^o$")
         principle_parts["voc"] = stem_broken .. "tse"
         principle_parts["nom"] = stem_broken .. temp_stem .. "s"
         principle_parts["gen"] = stem .. "tusk"
         principle_parts["voc"] = stem_broken .. temp_stem .. "se"
         principle_parts["dat"] = stem .. "ta"
         principle_parts["gen"] = stem .. temp_stem .. "usk"
         principle_parts["acc"] = stem_broken .. "tst"
         principle_parts["dat"] = stem .. temp_stem .. "a"
         principle_parts["ins"] = stem_broken .. "tvúr"
         principle_parts["acc"] = stem_broken .. temp_stem .. "st"
         principle_parts["nompl"] = stem_broken .. "tse"
         principle_parts["ins"] = stem_broken .. temp_stem .. "vúr"
         principle_parts["genpl"] = stem_broken .. "tsi"
         principle_parts["nompl"] = stem_broken .. temp_stem .. "se"
         principle_parts["genpl_short"] = stem .. "tu=s"
         principle_parts["genpl"] = stem_broken .. temp_stem .. "s"
         principle_parts["genpl_short"] = stem .. temp_stem .. "u=s"
     elseif stem_data[ending] == "V" then
     elseif stem_data[ending] == "V" then
         -- SEMI-LIGHT
         -- SEMI-LIGHT
Line 563: Line 572:
         principle_parts["pspart"] = mw.ustring.gsub(principle_parts["pspart"], "ru$", "rủ")
         principle_parts["pspart"] = mw.ustring.gsub(principle_parts["pspart"], "ru$", "rủ")
     else
     else
         principle_parts["pspart"] = mw.ustring.gsub(principle_parts["pspart"] .. "ú", "âaș$", "oàș")
         principle_parts["pspart"] = mw.ustring.gsub(principle_parts["pspart"] .. "ú", "[uú]ú$", "")
     end
     end