Module:tln-conj: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
local endings = { | local endings = { | ||
are = { | are = { | ||
pres_1s = " | pres_1s = "ᠣ", | ||
pres_2s = " | pres_2s = "ᠠᠰ", | ||
pres_3s = " | pres_3s = "ᠠᠲ", | ||
pres_1p = " | pres_1p = "ᠠᠨᠤᠰ", | ||
pres_2p = " | pres_2p = "ᠠᠵᠢᠰ", | ||
pres_3p = " | pres_3p = "ᠠᠨ", | ||
imperf_1s = "ᠠᠸᠠᠨ", | |||
imperf_2s = "ᠠᠸᠠᠰ", | |||
imperf_3s = "ᠠᠸᠠᠲ", | |||
imperf_1p = "ᠠᠸᠠᠨᠤᠰ", | |||
imperf_2p = "ᠠᠸᠠᠵᠢᠰ", | |||
imperf_3p = "ᠠᠸᠠᠨ", | |||
past_1s = " | past_1s = "ᠠᠢ", | ||
past_2s = " | past_2s = "ᠠᠢᠰᠲᠢ", | ||
past_3s = " | past_3s = "ᠠᠢᠲ", | ||
past_1p = " | past_1p = "ᠠᠢᠨᠤᠰ", | ||
past_2p = " | past_2p = "ᠠᠢᠰᠲᠢᠰ", | ||
past_3p = " | past_3p = "ᠡᠷᠤᠨ", | ||
fut_1s = "ᠠᠷᠢᠣ", | |||
fut_2s = "ᠠᠷᠡᠰ", | |||
fut_3s = "ᠠᠷᠡᠲ", | |||
fut_1p = "ᠠᠷᠡᠨᠤᠰ", | |||
fut_2p = "ᠠᠷᠡᠵᠢᠰ", | |||
fut_3p = "ᠠᠷᠡᠨ" | |||
}, | }, | ||
| Line 35: | Line 42: | ||
pres_3s = "ᠡᠲ", | pres_3s = "ᠡᠲ", | ||
pres_1p = "ᠡᠨᠤᠰ", | pres_1p = "ᠡᠨᠤᠰ", | ||
pres_2p = " | pres_2p = "ᠡᠵᠢᠰ", | ||
pres_3p = "ᠡᠨ", | pres_3p = "ᠡᠨ", | ||
imperf_1s = "ᠡᠸᠠᠨ", | |||
imperf_2s = "ᠡᠸᠠᠰ", | |||
imperf_3s = "ᠡᠸᠠᠲ", | |||
imperf_1p = "ᠡᠸᠠᠨᠤᠰ", | |||
imperf_2p = "ᠡᠸᠠᠵᠢᠰ", | |||
imperf_3p = "ᠡᠸᠠᠨ", | |||
past_1s = "ᠢ", | past_1s = "ᠢ", | ||
| Line 50: | Line 57: | ||
past_1p = "ᠢᠨᠤᠰ", | past_1p = "ᠢᠨᠤᠰ", | ||
past_2p = "ᠢᠰᠲᠢᠰ", | past_2p = "ᠢᠰᠲᠢᠰ", | ||
past_3p = "ᠡᠷᠤᠨ" | past_3p = "ᠡᠷᠤᠨ", | ||
fut_1s = "ᠡᠷᠢᠣ", | |||
fut_2s = "ᠡᠷᠡᠰ", | |||
fut_3s = "ᠡᠷᠡᠲ", | |||
fut_1p = "ᠡᠷᠡᠨᠤᠰ", | |||
fut_2p = "ᠡᠷᠡᠴᠢᠰ", | |||
fut_3p = "ᠡᠷᠡᠨ" | |||
}, | }, | ||
| Line 61: | Line 75: | ||
pres_3p = "§3P_IRE§", | pres_3p = "§3P_IRE§", | ||
imperf_1s = "§I1S_IRE§", | |||
imperf_2s = "§I2S_IRE§", | |||
imperf_3s = "§I3S_IRE§", | |||
imperf_1p = "§I1P_IRE§", | |||
imperf_2p = "§I2P_IRE§", | |||
imperf_3p = "§I3P_IRE§", | |||
past_1s = "§P1S_IRE§", | past_1s = "§P1S_IRE§", | ||
| Line 73: | Line 87: | ||
past_1p = "§P1P_IRE§", | past_1p = "§P1P_IRE§", | ||
past_2p = "§P2P_IRE§", | past_2p = "§P2P_IRE§", | ||
past_3p = "§P3P_IRE§" | past_3p = "§P3P_IRE§", | ||
fut_1s = "§F1S_IRE§", | |||
fut_2s = "§F2S_IRE§", | |||
fut_3s = "§F3S_IRE§", | |||
fut_1p = "§F1P_IRE§", | |||
fut_2p = "§F2P_IRE§", | |||
fut_3p = "§F3P_IRE§" | |||
} | } | ||
} | } | ||
| Line 119: | Line 140: | ||
["ᠲ"] = "t", | ["ᠲ"] = "t", | ||
["ᠨ"] = "n", | ["ᠨ"] = "n", | ||
["ᠴ"] = "č" | ["ᠴ"] = "č", | ||
["ᠶ"] = "y", | |||
["ᠳ"] = "d" | |||
} | } | ||
| Line 136: | Line 159: | ||
local function make_cell(form) | local function make_cell(form) | ||
return "<div style='text-align:center;'>" | return "<div style='text-align:center;'>" | ||
.. "[[" .. form .. "]]" | .. "[[Contionary:" .. form .. "|" .. form .. "]]" | ||
.. "<br /><span style='color:#777777; font-size:90%;'>" | .. "<br /><span style='color:#777777; font-size:90%;'>" | ||
.. romanize(form) | .. romanize(form) | ||
.. "</span></div>" | .. "</span></div>" | ||
end | |||
local function combine(stem, ending) | |||
if mw.ustring.match(stem, "ᠶ$") and | |||
mw.ustring.match(ending, "^ᠢ") then | |||
ending = mw.ustring.gsub(ending, "^ᠢ", "ᠡ") | |||
end | |||
return stem .. ending | |||
end | end | ||
| Line 164: | Line 198: | ||
forms[slot] = args[slot] | forms[slot] = args[slot] | ||
else | else | ||
forms[slot] = stem | forms[slot] = combine(stem, ending) | ||
end | end | ||
end | end | ||
| Line 170: | Line 204: | ||
local text = | local text = | ||
'{| class="wikitable mw-collapsible mw-collapsed"\n' | '{| class="wikitable mw-collapsible mw-collapsed"\n' | ||
.. '|+ Conjugation of [[' .. title .. ']] (<span style="color:#777777;">' .. romanize(title) .. '</span>)\n' | .. '|+ Conjugation of [[Contionary:' .. title .. '|' .. title .. ']] (<span style="color:#777777;">' .. romanize(title) .. '</span>)\n' | ||
---------------------------------------------------------------- | ---------------------------------------------------------------- | ||
| Line 187: | Line 221: | ||
.. '|-\n' | .. '|-\n' | ||
.. '! rowspan=" | .. '! rowspan="4" | Indicative\n' | ||
.. '! Present\n' | .. '! Present\n' | ||
.. '| ' .. make_cell(forms.pres_1s) | .. '| ' .. make_cell(forms.pres_1s) | ||
| Line 203: | Line 237: | ||
.. '|-\n' | .. '|-\n' | ||
.. '! Imperfect\n' | .. '! Imperfect\n' | ||
.. '| ' .. make_cell(forms. | .. '| ' .. make_cell(forms.imperf_1s) | ||
.. ' || ' .. make_cell(forms. | .. ' || ' .. make_cell(forms.imperf_2s) | ||
.. ' || ' .. make_cell(forms. | .. ' || ' .. make_cell(forms.imperf_3s) | ||
.. ' || ' .. make_cell(forms. | .. ' || ' .. make_cell(forms.imperf_1p) | ||
.. ' || ' .. make_cell(forms. | .. ' || ' .. make_cell(forms.imperf_2p) | ||
.. ' || ' .. make_cell(forms. | .. ' || ' .. make_cell(forms.imperf_3p) | ||
.. '\n' | .. '\n' | ||
| Line 223: | Line 257: | ||
.. ' || ' .. make_cell(forms.past_2p) | .. ' || ' .. make_cell(forms.past_2p) | ||
.. ' || ' .. make_cell(forms.past_3p) | .. ' || ' .. make_cell(forms.past_3p) | ||
.. '\n' | |||
---------------------------------------------------------------- | |||
-- FUTURE | |||
---------------------------------------------------------------- | |||
.. '|-\n' | |||
.. '! Future\n' | |||
.. '| ' .. make_cell(forms.fut_1s) | |||
.. ' || ' .. make_cell(forms.fut_2s) | |||
.. ' || ' .. make_cell(forms.fut_3s) | |||
.. ' || ' .. make_cell(forms.fut_1p) | |||
.. ' || ' .. make_cell(forms.fut_2p) | |||
.. ' || ' .. make_cell(forms.fut_3p) | |||
.. '\n' | .. '\n' | ||