45,647
edits
No edit summary |
No edit summary |
||
Line 134: | Line 134: | ||
if match(mode, "^finite") then | if match(mode, "^finite") then | ||
moods = {{"ind", "indicative"}, {"sub", "subjunctive"}} | moods = {{"ind", "indicative"}, {"sub", "subjunctive"}, {"imp", "imperative"}} | ||
tenses = {{"prs", "present"}, {"aor", "aorist"}, {"fut", "future"}, {"imperf", "imperfect"}, | tenses = {{"prs", "present"}, {"aor", "aorist"}, {"fut", "future"}, {"imperf", "imperfect"}, | ||
{"prf", "perfect"}, {"plu", "pluperfect"}, {"hab", "past habitual"}} | {"prf", "perfect"}, {"plu", "pluperfect"}, {"hab", "past habitual"}} | ||
for _, mood in ipairs(moods) do | for _, mood in ipairs(moods) do | ||
if mood[1] == "imp" then tenses = {{"prs", "present"}, {"aor", "aorist"}, {"fut", "future"}} end | |||
table.insert(ret, "|-\n! rowspan='8' style='background: #7AB350; width: 7em' | " .. mood[2] .. "\n") | table.insert(ret, "|-\n! rowspan='8' style='background: #7AB350; width: 7em' | " .. mood[2] .. "\n") | ||
for _, tense in ipairs(tenses) do | for _, tense in ipairs(tenses) do | ||
Line 145: | Line 146: | ||
for i=1, 3 do | for i=1, 3 do | ||
table.insert(ret, "| " .. link(show_form(data.forms[(match(mode, "%s(.*)$") == "active" and "act" or "pas") .. "_" .. mood[1] .. "_" .. tense[1] .. "_" .. tostring(i) .. number])) .. "\n") | table.insert(ret, "| " .. link(show_form(data.forms[(match(mode, "%s(.*)$") == "active" and "act" or "pas") .. "_" .. mood[1] .. "_" .. tense[1] .. "_" .. tostring(i) .. number])) .. "\n") | ||
if (tense[1] == "hab") and (i == 3) and (number == "pl") then table.insert(ret, "|-\n! style='background:#808080; height:.2em' colspan='9' |\n") end | if (tense[1] == "hab") and (i == 3) and (number == "pl") and (mood[1] ~= "imp") then table.insert(ret, "|-\n! style='background:#808080; height:.2em' colspan='9' |\n") end | ||
end | end | ||
end | end |