10,735
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 1,684: | Line 1,684: | ||
else | else | ||
local endings = { | |||
['1s'] = "", | |||
['2s'] = "úș", | |||
['3s'] = "", | |||
['a'] = "ș", | |||
['apst'] = "vú", | |||
['depers'] = "", | |||
['epst'] = "ṣ", | |||
['imp'] = "", | |||
['inf'] = "", | |||
['passinf'] = "uot", | |||
['passprespart'] = "uvivú", | |||
['pl'] = "ú", | |||
['prespart'] = "vú", | |||
['pspart'] = "l/-k", | |||
['pst'] = "-", | |||
['r'] = "úș", | |||
['rpst'] = "uveș", | |||
['vnoun'] = "", | |||
} | |||
local review = {} | local review = {} | ||
Line 1,689: | Line 1,710: | ||
for i, j in pairs(pp) do | for i, j in pairs(pp) do | ||
if type(j) == "string" then | if type(j) == "string" then | ||
table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''") | table.insert(review, "* <code>" .. string.upper(i) .. "</code>: '''" .. j .. "'''" .. endings[i]) | ||
elseif type(j) == "table" then | elseif type(j) == "table" then | ||
for k, l in ipairs(j) do | for k, l in ipairs(j) do | ||
local temp = "* <code>" .. string.upper(i) .. "[" .. k .. "]</code>: '''" .. l.word .. "'''" | local temp = "* <code>" .. string.upper(i) .. "[" .. k .. "]</code>: '''" .. l.word .. "'''" .. endings[i] | ||
if l.note then temp = temp .. " (" .. l.note .. ")" end | if l.note then temp = temp .. " (" .. l.note .. ")" end | ||
table.insert(review, temp) | table.insert(review, temp) | ||
Line 1,700: | Line 1,721: | ||
if pp.pl == nil then | if pp.pl == nil then | ||
table.insert(review, "* <code>PL</code> = <code>2S</code>") | table.insert(review, "* <code>PL</code> = <code>2S</code>" .. endings['pl']) | ||
end | end | ||
if pp.depers == nil then | if pp.depers == nil then | ||
Line 1,731: | Line 1,752: | ||
if type(pp.pst) == "table" then | if type(pp.pst) == "table" then | ||
for i,j in ipairs(pp.pst) do | for i,j in ipairs(pp.pst) do | ||
local temp = "* <code>EPST[" .. i .. "]</code>: '''" .. j['word'] .. "e'''" | local temp = "* <code>EPST[" .. i .. "]</code>: '''" .. j['word'] .. "e'''" .. endings['e'] | ||
if j['note'] then temp = temp .. " (" .. j['note'] .. ")" end | if j['note'] then temp = temp .. " (" .. j['note'] .. ")" end | ||
table.insert(review, temp) | table.insert(review, temp) | ||
end | end | ||
elseif type(pp.pst) == "string" then | elseif type(pp.pst) == "string" then | ||
table.insert(review, "* <code>EPST</code>: '''" .. pp.pst .. "e'''") | table.insert(review, "* <code>EPST</code>: '''" .. pp.pst .. "e'''" .. endings['e']) | ||
end | end | ||
end | end |