Module:User:Sarri.greek/grc-articles
Jump to navigation
Jump to search
- The following documentation is located at Module:User:Sarri.greek/grc-articles/documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • user page • user talk page • userspace
User:Sarri.greek (CAT) » Module grc-articles doc test User:Sarri.greek/template4
Polytonic grc (Ancient Greek) articles for all varieties using them
- for nomina: nouns Module:User:Sarri.greek/grk-nouns-decl and 3-gender names like adjectives
- monotonic (Modern) articles at Module el-articles
Call if from a declension module by placing EXACTLY where it is needed:
require ('Module:User:Sarri.greek/grc-articles').articles (args)
-- 2024.03.06. [[wikt:en:User:Sarri.greek]]
-- polytonic articles in inflection tables
-- they are shown with baria (βαρεία), because a noun follows
-- transliteration exact (symbol-to-symbol), no prosody
-- TODO more...
-- TODO fm, fn if needed
-- font colours
local c_stem = '#000000'
local function stem_color (thema)
thema = thema or '' -- otherwise, it does not work
return '<span style="color:' .. c_stem ..'; font-weight:normal;">' .. thema .. '</span>'
end
--[[--------------------------< I S _ S E T >------------may by used optionally
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
]]
--[=[ explanation:
The is_set() function may be added so that tests like this:
if args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε'] else args['ακε'] = '' end
can be reduced to:
if not is_set (args['ακε']) then args['ακε'] = '' end
]=]--
local function is_set (var)
return not (var == nil or var == '');
end
--------------------------------------------------------------------------
-- START PARAMS --
--------------------------------------------------------------------------
local function articles (args)
--[=[
-- ================================ Links
function create_link (page, text)
if args['grc'] == '1' then lang_iso = 'grc'
elseif args['el'] == '1' then lang_iso = 'el'
end
if text then
return '[[' .. page .. '|' .. text .. ']]'
.. '<div style="font-size:83%; letter-spacing:2px; line-height:100%; color:#777777">{{xlit|'
.. lang_iso .. '|' .. text .. '}}</div>'
else
return '[[' .. page .. '|' .. page .. ']]'
.. '<div style="font-size:83%; letter-spacing:2px; line-height:100%; color:#777777">{{xlit|'
.. lang_iso .. '|' .. page .. '}}</div>'
end
end
--]=]
function create_link (page, text)
if text then
return '[[' .. page .. '#Ancient Greek|' .. text .. ']]'
else
return '[[' .. page .. '#Ancient Greek|' .. page .. ']]'
end
end
--[=[ this needs theses 'args' things
function create_link (page, text)
-- same articles for:
if args['grc'] == '1' or args['grc-koi'] == '1' or args['grc-koi'] == '2'
or args['gkm'] == '1' or args['gkm'] == '2' or args['grk-gkm'] == '1' or args['grk-gkm'] == '2'
or args['el-kth'] == '1' or args['kath'] == '1'
then
if text then
return '[[' .. page .. '#' .. Ancient_Greek .. '|' .. text .. ']]'
else
return '[[' .. page .. '#' .. Ancient_Greek .. '|' .. page .. ']]'
end
elseif args['el'] == '1'
then
if text then
return '[[' .. page .. '#' .. Greek .. '|' .. text .. ']]'
else
return '[[' .. page .. '#' .. Greek .. '|' .. page .. ']]'
end
end
end
]=]--
--[=[ ? how xxx = frame:preprocess(xxx) ? .. frame:expandTemplate{ title = 'l', args = {'?' } }
function create_link (page, text)
if text then
return '{{l|grc|' .. page .. '|' .. text .. '}}'
else
return '{{l|grc|' .. page .. '|' .. page .. '}}'
end
end
]=]--
if args['dat'] == '-' then args['aDS'] = '' args['aDP'] = ''end
-- vocatives are empty. (The interjection ὦ! or the ε! could be placed outside, as it is not an article)
if args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end
if args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVP'] = '' end
-- suppose there was a dual vocative
if args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end
-- of a second row
args['aVS2'] = '' args['aVP2'] = '' args['aVD2'] = ''
-- of a second column
args['a2VS'] = '' args['a2VP'] = '' args['a2VD'] = ''
-- ABBREVIATIONS
if args['gkm'] == '1' or args['gkm'] == '2'or args['grk-gkm'] == '1' or args['grk-gkm'] == '2'
or args['kth'] == '1' or args['kath'] == '1' or args['el-kth'] == '1'
then
-- masc.
o = create_link('ὁ', stem_color('ὁ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '<span style="color:#bbbbbb;">h</span>o /o/' .. '</div>'
tou = create_link('τοῦ', stem_color('τοῦ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû /tu/' .. '</div>'
tooi = create_link('τῷ', stem_color('τῷ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tô<span style="color:#bbbbbb;">i</span> /to/' .. '</div>'
ton = create_link('τόν', stem_color('τὸν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tòn' .. '</div>'
oi = create_link('οἱ', stem_color('οἱ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '<span style="color:#bbbbbb;">h</span>oi /i/' .. '</div>'
toon = create_link('τῶν', stem_color('τῶν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tôn' .. '</div>'
tois = create_link('τοῖς', stem_color('τοῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîs /tis/' .. '</div>'
tous = create_link('τούς', stem_color('τοὺς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toùs /tus/' .. '</div>'
-- no dual
too = ''
toin = ''
-- fem.
e = create_link('ἡ', stem_color('ἡ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '<span style="color:#bbbbbb;">h</span>ē /i/' .. '</div>'
tes = create_link('τῆς', stem_color('τῆς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tēs /tis/' .. '</div>'
tei = create_link('τῇ', stem_color('τῇ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tê<span style="color:#bbbbbb;">i</span> /ti/' .. '</div>'
ten = create_link('τήν', stem_color('τὴν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tḕn /tin/' .. '</div>'
ai = create_link('αἱ', stem_color('αἱ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '<span style="color:#bbbbbb;">h</span>ai /e/' .. '</div>'
tais = create_link('ταῖς', stem_color('ταῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîs /tes/' .. '</div>'
tas = create_link('τάς', stem_color('τὰς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tàs' .. '</div>'
-- neu.
to = create_link('τό', stem_color('τὸ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tò' .. '</div>'
ta = create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tà' .. '</div>'
-- masc.fem.
o_e = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '<span style="color:#bbbbbb;">h</span>o /o/ - <span style="color:#bbbbbb;">h</span>ē /i/' .. '</div>'
o_br_e = create_link('ὁ', stem_color('ὁ')) .. '<br>' .. create_link('ἡ', stem_color('ἡ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '<span style="color:#bbbbbb;">h</span>o /o/ - <span style="color:#bbbbbb;">h</span>ē /i/' .. '</div>'
tou_tes = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû /tu/ - tēs /tis/' .. '</div>'
tou_br_tes = create_link('τοῦ', stem_color('τοῦ')) .. '<br>' .. create_link('τῆς', stem_color('τῆς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû /tu/ - tēs /tis/' .. '</div>'
tooi_tei = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tô<span style="color:#bbbbbb;">i</span> /to/ - tê<span style="color:#bbbbbb;">i</span> /ti/' .. '</div>'
--br?
ton_ten = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tòn - tḕn /tin/' .. '</div>'
--br?
oi_ai = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '<span style="color:#bbbbbb;">h</span>oi /i/ - <span style="color:#bbbbbb;">h</span>ai /e/' .. '</div>'
--br?
tois_tais = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîs /tes/' .. '</div>'
--br?
tous_tas = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toùs /tus/ - tàs' .. '</div>'
--br?
else
-- masc.
o = create_link('ὁ', stem_color('ὁ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ho' .. '</div>'
tou = create_link('τοῦ', stem_color('τοῦ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû' .. '</div>'
tooi = create_link('τῷ', stem_color('τῷ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tôi' .. '</div>'
ton = create_link('τόν', stem_color('τὸν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tòn' .. '</div>'
oi = create_link('οἱ', stem_color('οἱ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hoi' .. '</div>'
toon = create_link('τῶν', stem_color('τῶν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tôn' .. '</div>'
tois = create_link('τοῖς', stem_color('τοῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîs' .. '</div>'
tous = create_link('τούς', stem_color('τοὺς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toùs' .. '</div>'
-- duals inline, horizontal translit
too = create_link('τώ', stem_color('τὼ'))
.. ' <span style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '(tṑ)' .. '</span>'
toin = create_link('τοῖν', stem_color('τοῖν'))
.. ' <span style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '(toîn)' .. '</span>'
-- fem.
e = create_link('ἡ', stem_color('ἡ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hē' .. '</div>'
tes = create_link('τῆς', stem_color('τῆς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tês' .. '</div>'
tei = create_link('τῇ', stem_color('τῇ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'têi' .. '</div>'
ten = create_link('τήν', stem_color('τὴν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tḕn' .. '</div>'
ai = create_link('αἱ', stem_color('αἱ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hai' .. '</div>'
tais = create_link('ταῖς', stem_color('ταῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîs' .. '</div>'
tas = create_link('τάς', stem_color('τὰς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tàs' .. '</div>'
-- neu.
to = create_link('τό', stem_color('τὸ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tò' .. '</div>'
ta = create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tà' .. '</div>'
-- masc.fem.
o_e = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ho / hē' .. '</div>'
o_br_e = create_link('ὁ', stem_color('ὁ')) .. '<br>' .. create_link('ἡ', stem_color('ἡ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ho / hē' .. '</div>'
tou_tes = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû / tês' .. '</div>'
tou_br_tes = create_link('τοῦ', stem_color('τοῦ')) .. '<br>' .. create_link('τῆς', stem_color('τῆς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû / tês' .. '</div>'
tooi_tei = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tôi / têi' .. '</div>'
--br?
ton_ten = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tòn / tḕn' .. '</div>'
--br?
oi_ai = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hoi / hai' .. '</div>'
--br?
tois_tais = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîs / taîs' .. '</div>'
--br?
tous_tas = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toùs / tàs' .. '</div>'
--br?
end -- close if gkm
-- =========== for INDIVIDUAL cells one by one for nouns or adjectives with -m -f -n / c= common gender of living beings/ mf fm, fn are for double genders of things
-- NOMINATIVE SINGULAR
if args['aNS'] == "m" then args['aNS'] = o elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end
if args['aNS'] == "f" then args['aNS'] = e elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end
if args['aNS'] == "n" then args['aNS'] = to elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end
if args['aNS'] == "c" then args['aNS'] = o_e elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end
if args['aNS'] == "mf" then args['aNS'] = o_br_e elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end
-- TODO fm, fn if needed
-- at a second row, break line
if args['aNS2'] == "m" then args['aNS2'] = o elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end
if args['aNS2'] == "f" then args['aN2S'] = e elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end
if args['aNS2'] == "n" then args['aNS2'] = to elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end
if args['aNS2'] == "c" then args['aNS2'] = o_e elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end
-- mf already broken link
-- at a second COLUMN
if args['a2NS'] == "m" then args['a2NS'] = o elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end
if args['a2NS'] == "f" then args['a2NS'] = e elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end
if args['a2NS'] == "n" then args['a2NS'] = to elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end
if args['a2NS'] == "c" then args['a2NS'] = o_e elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end
if args['a2NS'] == "mf" then args['a2NS'] = o_br_e elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end
-- adjectives or other trigenous
if args['aNS-m'] ~= "-" and args['aNS-m'] ~= "c" then
args['aNS-m'] = o
elseif args['aNS-m'] == "c" then args['aNS-m'] = o_e
elseif args['aNS-m'] == '-' then args['aNS-m'] = '' else args['aNS-m'] = args['aNS-m'] end
if args['aNS-f'] ~= "-" then args['aNS-f'] = e elseif args['aNS-f'] == '-' then args['aNS-f'] = '' else args['aNS-f'] = args['aNS-f'] end
if args['aNS-n'] ~= "-" then args['aNS-n'] = to elseif args['aNS-n'] == '-' then args['aNS-n'] = '' else args['aNS-n'] = args['aNS-n'] end
-- GENITIVE SINGULAR
if args['aGS'] == "m" then args['aGS'] = tou elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end
if args['aGS'] == "f" then args['aGS'] = tes elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end
if args['aGS'] == "n" then args['aGS'] = tou elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end
if args['aGS'] == "c" then args['aGS'] = tou_tes elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end
if args['aGS'] == "mf" then args['aGS'] = tou_br_tes elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end
-- at a second row, break line
if args['aGS2'] == "m" then args['aGS2'] = tou elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end
if args['aGS2'] == "f" then args['aGS2'] = tes elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end
if args['aGS2'] == "n" then args['aGS2'] = tu elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end
if args['aGS2'] == "c" then args['aGS2'] = tou_tes elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end
-- at a second COLUMN
if args['a2GS'] == "m" then args['a2GS'] = tou elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end
if args['a2GS'] == "f" then args['a2GS'] = tes elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end
if args['a2GS'] == "n" then args['a2GS'] = tou elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end
if args['a2GS'] == "c" then args['a2GS'] = tou_tes elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end
if args['a2GS'] == "mf" then args['a2GS'] = tou_br_tes elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end
-- adjectives
if args['aGS-m'] ~= "-" and args['aGS-m'] ~= "c" then
args['aGS-m'] = tou
elseif args['aGS-m'] == "c" then args['aGS-m'] = tou_tes
elseif args['aGS-m'] == '-' then args['aGS-m'] = '' else args['aGS-m'] = args['aGS-m'] end
if args['aGS-f'] ~= "-" then args['aGS-f'] = tes elseif args['aGS-f'] == '-' then args['aGS-f'] = '' else args['aGS-f'] = args['aGS-f'] end
if args['aGS-n'] ~= "-" then args['aGS-n'] = tou elseif args['aGS-n'] == '-' then args['aGS-n'] = '' else args['aGS-n'] = args['aGS-n'] end
-- DATIVE SINGULAR
if args['aDS'] == "m" then args['aDS'] = tooi elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end
if args['aDS'] == "f" then args['aDS'] = tei elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end
if args['aDS'] == "n" then args['aDS'] = tooi elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end
if args['aDS'] == "c" then args['aDS'] = tooi_tei elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end
-- TODO fm, fn if needed
-- at a second row, break line
if args['aDS2'] == "m" then args['aDS2'] = tooi elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end
if args['aDS2'] == "f" then args['aDS2'] = tei elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end
if args['aDS2'] == "n" then args['aDS2'] = tooi elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end
if args['aDS2'] == "c" then args['aDS2'] = tooi_tei elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end
-- mf already broken link
-- at a second COLUMN
if args['a2DS'] == "m" then args['a2DS'] = tooi elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end
if args['a2DS'] == "f" then args['a2DS'] = tei elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end
if args['a2DS'] == "n" then args['a2DS'] = tooi elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end
if args['a2DS'] == "c" then args['a2DS'] = tooi_tei elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end
-- adjectives todo
-- ACCUSATIVE SINGULAR
if args['aAS'] == "m" then args['aAS'] = ton elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end
if args['aAS'] == "f" then args['aAS'] = ten elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end
if args['aAS'] == "n" then args['aAS'] = to elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end
if args['aAS'] == "c" then args['aAS'] = ton_ten elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- NOMINATIVE PLURAL
if args['aNP'] == "m" then args['aNP'] = oi elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end
if args['aNP'] == "f" then args['aNP'] = ai elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end
if args['aNP'] == "n" then args['aNP'] = ta elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end
if args['aNP'] == "c" then args['aNP'] = oi_ai elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- GENITIVE PLURAL
if args['aGP'] == "m" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end
if args['aGP'] == "f" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end
if args['aGP'] == "n" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end
if args['aGP'] == "c" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- DATIVE PLURAL
if args['aDP'] == "m" then args['aDP'] = tois elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end
if args['aDP'] == "f" then args['aDP'] = tais elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end
if args['aDP'] == "n" then args['aDP'] = tois elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end
if args['aDP'] == "c" then args['aDP'] = tois_tais elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- ACCUSATIVE PLURAL
if args['aAP'] == "m" then args['aAP'] = tous elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end
if args['aAP'] == "f" then args['aAP'] = tas elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end
if args['aAP'] == "m" then args['aAP'] = ta elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end
if args['aAP'] == "c" then args['aAP'] = tous_tas elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- NOM-ACC-VOC DUAL
if args['aND'] == "m" or args['aND'] == "f" or args['aND'] == "n" or args['aND'] == "c"
then args['aND'] = too elseif args['aND'] == '-' then args['aND'] = '' else args['aND'] = args['aND'] end
-- do not break line
-- NO second COLUMN
-- adjectives
-- GEN-DAT DUAL
if args['aGD'] == "m" or args['aGD'] == "f" or args['aGD'] == "n" or args['aGD'] == "c"
then args['aGD'] = toin elseif args['aGD'] == '-' then args['aGD'] = '' else args['aGD'] = args['aGD'] end
-- no articles ================== FOR THE WHOLE TABLE ??TODO by column for diff genders.
if args['articles'] == '0' or args['articles'] == '-'
then
args['aNS'] = ' ' args['aGS'] = '' args['aDS'] = '' args['aAS'] = ''
args['aNP'] = ' ' args['aGP'] = '' args['aDP'] = '' args['aAP'] = ''
args['aND'] = ' ' args['aND'] = ''
else
-- MASCULINE ARTICLES
if args['m'] == '1' then
if args['aNS'] == '-' then args['aNS'] = ''
elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS']
else args['aNS'] = o
end
-- masc. gen. sg. +dor/lac +epic
if args['aGS'] == '-' then args['aGS'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGS'] ~= '-'
then args['aGS'] = create_link('τῶ', stem_color('τῶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tô' .. '</div>'
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGS'] ~= '-'
then args['aGS'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τοῖο', stem_color('τοῖο'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû / toîo' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil
then args['aGS'] = args['aGS']
else args['aGS'] = tou
end
if args['aDS'] == '-' then args['aDS'] = ''
elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS']
else args['aDS'] = tooi
end
if args['aAS'] == '-' then args['aAS'] = ''
elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS']
else args['aAS'] = ton
end
if -- vocative is empty
args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS']
else args['aVS'] = ''
end
-- plural masculine
-- masc. nom. pl. +lac/dor +epic
if args['aNP'] == '-' then args['aNP'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aNP'] ~= '-'
then args['aNP'] = create_link('τοί', stem_color('τοὶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toì' .. '</div>'
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aNP'] ~= '-'
then args['aNP'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('τοί', stem_color('τοὶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hoi / toì' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil
then args['aNP'] = args['aNP']
else args['aNP'] = oi
end
if args['aGP'] == '-' then args['aGP'] = ''
elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP']
else args['aGP'] = toon
end
-- masc.dat.pl +epic
if args['aDP'] == '-' then args['aDP'] = ''
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aDP'] ~= '-'
then args['aDP'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('τοῖσι', stem_color('τοῖσι')) .. '(' .. create_link('τοῖσιν', stem_color('ν')) .. ')'
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîs / toîsi(n)' .. '</div>'
elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil
then args['aDP'] = args['aDP']
else args['aDP'] = tois
end
-- masc.acc.pl +doc/lac
if args['aAP'] == '-' then args['aAP'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['αοπ'] ~= '-'
then args['aAP'] = create_link('τώς', stem_color('τὼς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tṑs' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil
then args['aAP'] = args['aAP']
else args['aAP'] = tous
end
if -- vocative is empty
args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP']
else args['aVP'] = ''
end
-- dual masculine
if args['aND'] == '-' then args['aND'] = ''
elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND']
else args['aND'] = too
end
-- masc.gen.du +epic
if args['aGD'] == '-' then args['aGD'] = ''
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-'
then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil
then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
-- (masc.dat.du +epic) -- DO NOT NEED THESE
if args['aDD'] == '-' then args['aGD'] = ''
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-'
then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil
then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
if args['aAD'] == '-' then args['aAD'] = ''
elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD']
else args['aAD'] = too
end
if -- vocative is empty
args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD']
else args['aVD'] = ''
end
-- FEMININE ARTICLES
elseif args['f'] == '1' then
-- fem.nom.sg +dor/lac
if args['aNS'] == '-' then args['aNS'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aNS'] ~= '-'
then args['aNS'] = create_link('ἁ', stem_color('ἁ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ha' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil
then args['aNS'] = args['aNS']
else args['aNS'] = e
end
-- fem.gen.sg +dor/lac
if args['aGS'] == '-' then args['aGS'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGS'] ~= '-'
then args['aGS'] = create_link('τᾶς', stem_color('τᾶς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tâs' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil
then args['aGS'] = args['aGS']
else args['aGS'] = tes
end
-- fem.dat.sg +dor/lac
if args['aDS'] == '-' then args['aDS'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aDS'] ~= '-'
then args['aDS'] = create_link('τᾷ', stem_color('τᾷ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tâi' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil
then args['aDS'] = args['aDS']
else args['aDS'] = tei
end
-- fem.acc.sg +dor/lac
if args['aAS'] == '-' then args['aAS'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aAS'] ~= '-'
then args['aAS'] = create_link('τάν', stem_color('τὰν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tàn' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil
then args['aAS'] = args['aAS']
else args['aAS'] = ten
end
if -- vocative is empty
args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS']
else args['aVS'] = ''
end
-- plural feminine
-- fem.nom.pl +dor/lac
if args['aNP'] == '-' then args['aNP'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aNP'] ~= '-'
then args['aNP'] = create_link('ταί', stem_color('ταὶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taì' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil
then args['aNP'] = args['aNP']
else args['aNP'] = ai
end
-- fem.gen.pl +dor/lac +epic
if args['aGP'] == '-' then args['aGP'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGP'] ~= '-'
then args['aGP'] = create_link('τᾶν', stem_color('τᾶν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tân' .. '</div>'
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGP'] ~= '-'
then args['aGP'] = create_link('τῶν', stem_color('τῶν')) .. '/' .. create_link('τάων', stem_color('τάων'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tôn / táōn' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil
then args['aGP'] = args['aGP']
else args['aGP'] = toon
end
if args['aDP'] == '-' then args['aDP'] = ''
elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP']
else args['aDP'] = tais
end
if args['aAP'] == '-' then args['aAP'] = ''
elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP']
else args['aAP'] = tas
end
if -- vocative is empty
args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP']
else args['aVS'] = ''
end
-- dual feminine
-- fem.nom.du +dor/lac
if args['aND'] == '-' then args['aND'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aND'] ~= '-'
then args['aND'] = create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tà' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil
then args['aND'] = args['aND']
else args['aND'] = too
end
-- fem.gen.du +dor/lac +epic
if args['aGD'] == '-' then args['aGD'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGD'] ~= '-'
then args['aGD'] = create_link('ταῖν', stem_color('ταῖν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîn' .. '</div>'
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-'
then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil
then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
-- (fem.dat.du +dor/lac +epic)
if args['aDD'] == '-' then args['aDD'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aDD'] ~= '-'
then args['aDD'] = create_link('ταῖν', stem_color('ταῖν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîn' .. '</div>'
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aDD'] ~= '-'
then args['aDD'] = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil
then args['aDD'] = args['aDD']
else args['aDDδ'] = toin
end
-- (fem.acc.du +dor/lac) = like nom.
if args['aAD'] == '-' then args['aAD'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aAD'] ~= '-'
then args['aAD'] = create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tà' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil
then args['aAD'] = args['aAD']
else args['aAD'] = too
end
if -- vocative is empty
args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD']
else args['aVD'] = ''
end
-- NEUTER ARTICLES
elseif args['ουδ'] == '1' then
if args['aNS'] == '-' then args['aNS'] = ''
elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS']
else args['aNS'] = to
end
if args['aGS'] == '-' then args['aGS'] = ''
elseif (args['dor'] == '1' or args['grc-dor'] == '1'
or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGS'] ~= '-'
then args['aGS'] = create_link('τῶ', stem_color('τῶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tô' .. '</div>'
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGS'] ~= '-'
then args['aGS'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τοῖο', stem_color('τοῖο'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toû / toîo' .. '</div>'
elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1'
and args['lak'] ~= '1' and args['grc-lak'] ~= '1'
and args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil
then args['aGS'] = args['aGS']
else args['aGS'] = tou
end
if args['aDS'] == '-' then args['aDS'] = ''
elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS']
else args['aDS'] = tooi
end
if args['aAS'] == '-' then args['aAS'] = ''
elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS']
else args['aAS'] = to
end
if -- vocative is empty
args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS']
else args['aVS'] = ''
end
-- plural neuter
if args['aNP'] == '-' then args['aNP'] = ''
elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP']
else args['aNP'] = ta
end
if args['aGP'] == '-' then args['aGP'] = ''
elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP']
else args['aGP'] = toon
end
if args['aDP'] == '-' then args['aDP'] = ''
elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP']
else args['aDP'] = tois
end
if args['aAP'] == '-' then args['aAP'] = ''
elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP']
else args['aAP'] = ta
end
if -- vocative is empty
args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP']
else args['aVP'] = ''
end
-- dual neuter
if args['aND'] == '-' then args['aND'] = ''
elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND']
else args['aND'] = too
end
if args['aGD'] == '-' then args['aGD'] = ''
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-'
then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil
then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
if args['aDD'] == '-' then args['aDD'] = ''
elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aDD'] ~= '-'
then args['aDD'] = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1'
and args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil
then args['aDD'] = args['aDD']
else args['aDDδ'] = toin
end
if args['aAD'] == '-' then args['aAD'] = ''
elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD']
else args['aAD'] = too
end
if -- vocative is empty
args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD']
else args['aVD'] = ''
end
-- COMMON gender of living beings MASCULINE+FEMININE ARTICLES
elseif args['c'] == '1' then
if args['aNS'] == '-' then args['aNS'] = ''
elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS']
else args['aNS'] = o_e
end
if args['aGS'] == '-' then args['aGS'] = ''
elseif args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS']
else args['aGS'] = tou_tes
end
if args['aDS'] == '-' then args['aDS'] = ''
elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS']
else args['aDS'] = tooi_tei
end
if args['aAS'] == '-' then args['aAS'] = ''
elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS']
else args['aAS'] = ton_ten
end
if -- vocative is empty
args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS']
else args['aVS'] = ''
end
-- plural common masc+fem
if args['aNP'] == '-' then args['aNP'] = ''
elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP']
else args['aNP'] = oi_ai
end
if args['aGP'] == '-' then args['aGP'] = ''
elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP']
else args['aGP'] = toon
end
if args['aDP'] == '-' then args['aDP'] = ''
elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP']
else args['aDP'] = tois_tais
end
if args['aAP'] == '-' then args['aAP'] = ''
elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP']
else args['aAP'] = tous_tas
end
if -- vocative is empty
args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP']
else args['aVS'] = ''
end
-- dual common
if args['aND'] == '-' then args['aND'] = ''
elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND']
else args['aND'] = too
end
if args['aGD'] == '-' then args['aGD'] = ''
elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
if args['aDD'] == '-' then args['aDD'] = ''
elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD']
else args['aDD'] = toin
end
if args['aAD'] == '-' then args['aAD'] = ''
elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD']
else args['aAD'] = too
end
if -- vocative is empty
args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD']
else args['aVD'] = ''
end
-- ΜULTIPLE GENDERS 1) MASCULINE OR FEMININE ARTICLES
elseif args['mf'] == '1' then
if args['aNS'] == '-' then args['aNS'] = ''
elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS']
else args['aNS'] = o_br_e
end
if args['aGS'] == '-' then args['aGS'] = ''
elseif args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS']
else args['aGS'] = tou_br_tes
end
if args['aDS'] == '-' then args['aDS'] = ''
elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS']
else args['aDS'] = tooi_br_tei
end
if args['aAS'] == '-' then args['aAS'] = ''
elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS']
else args['aAS'] = ton_br_ten
end
if -- vocative is empty
args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS']
else args['aVS'] = ''
end
-- plural multiple masc and fem
if args['aNP'] == '-' then args['aNP'] = ''
elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP']
else args['aNP'] = oi_br_ai
end
if args['aGP'] == '-' then args['aGP'] = ''
elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP']
else args['aGP'] = toon
end
if args['aDP'] == '-' then args['aDP'] = ''
elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP']
else args['aDP'] = tois_br_tais
end
if args['aAP'] == '-' then args['aAP'] = ''
elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP']
else args['aAP'] = tous_br_tas
end
if -- vocative is empty
args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP']
else args['aVS'] = ''
end
-- dual common
if args['aND'] == '-' then args['aND'] = ''
elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND']
else args['aND'] = too
end
if args['aGD'] == '-' then args['aGD'] = ''
elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
if args['aDD'] == '-' then args['aDD'] = ''
elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD']
else args['aDD'] = toin
end
if args['aAD'] == '-' then args['aAD'] = ''
elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD']
else args['aAD'] = too
end
if -- vocative is empty
args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD']
else args['aVD'] = ''
end
-- ΜULTIPLE GENDERS 2) FEMININE OR MASCULINE ARTICLES
elseif args['fm'] == '1' then
if args['aNS'] == '-' then args['aNS'] = ''
elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS']
else args['aNS'] = create_link('ἡ', stem_color('ἡ')) .. '<br />' .. create_link('ὁ', stem_color('ὁ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hē / ho' .. '</div>'
end
if args['aGS'] == '-' then args['aGS'] = ''
elseif args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS']
else args['aGS'] = create_link('τῆς', stem_color('τῆς')) .. '<br />' .. create_link('τοῦ', stem_color('τοῦ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tês / toû' .. '</div>'
end
if args['aDS'] == '-' then args['aDS'] = ''
elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS']
else args['aDS'] = create_link('τῇ', stem_color('τῇ')) .. '<br />' .. create_link('τῷ', stem_color('τῷ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'têi / tôi' .. '</div>'
end
if args['aAS'] == '-' then args['aAS'] = ''
elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS']
else args['aAS'] = create_link('τήν', stem_color('τὴν')) .. '<br />' .. create_link('τόν', stem_color('τὸν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tḕn / tòn' .. '</div>'
end
if -- vocative is empty
args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS']
else args['aVS'] = ''
end
-- plural multiple fem and masc
if args['aNP'] == '-' then args['aNP'] = ''
elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP']
else args['aNP'] = create_link('αἱ', stem_color('αἱ')) .. '<br />' .. create_link('οἱ', stem_color('οἱ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hai / hoi' .. '</div>'
end
if args['aGP'] == '-' then args['aGP'] = ''
elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP']
else args['aGP'] = toon
end
if args['aDP'] == '-' then args['aDP'] = ''
elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP']
else args['aDP'] = create_link('ταῖς', stem_color('ταῖς')) .. '<br />' .. create_link('τοῖς', stem_color('τοῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîs / toîs' .. '</div>'
end
if args['aAP'] == '-' then args['aAP'] = ''
elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP']
else args['aAP'] = create_link('τάς', stem_color('τὰς')) .. '<br />' .. create_link('τούς', stem_color('τοὺς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tàs / toùs' .. '</div>'
end
if -- vocative is empty
args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP']
else args['aVS'] = ''
end
-- dual common
if args['aND'] == '-' then args['aND'] = ''
elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND']
else args['aND'] = too
end
if args['aGD'] == '-' then args['aGD'] = ''
elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
if args['aDD'] == '-' then args['aDD'] = ''
elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD']
else args['aDD'] = toin
end
if args['aAD'] == '-' then args['aAD'] = ''
elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD']
else args['aAD'] = too
end
if -- vocative is empty
args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD']
else args['aVD'] = ''
end
-- ΜULTIPLE GENDERS 3) RARE FEMININE or NEUTER ARTICLES (plural is not attested) fn=1 feminine or neuter, for diminutive hypocoristic names for women like [[Γλυκέριον]]
elseif args['fn'] == '1' then
if args['aNS'] == '-' then args['aNS'] = ''
elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS']
else args['aNS'] = create_link('ἡ', stem_color('ἡ')) .. '/' .. create_link('τό', stem_color('τὸ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hē / tò' .. '</div>'
end
if args['aGS'] == '-' then args['aGS'] = ''
elseif args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS']
else args['aGS'] = create_link('τῆς', stem_color('τῆς')) .. '/' .. create_link('τοῦ', stem_color('τοῦ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tês / toû' .. '</div>'
end
if args['aDS'] == '-' then args['aDS'] = ''
elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS']
else args['aDS'] = create_link('τῇ', stem_color('τῇ')) .. '/' .. create_link('τῷ', stem_color('τῷ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'têi / tôi' .. '</div>'
end
if args['aAS'] == '-' then args['aAS'] = ''
elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS']
else args['aAS'] = create_link('τήν', stem_color('τὴν')) .. '/' .. create_link('τό', stem_color('τὸ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tḕn / tò' .. '</div>'
end
if -- vocative is empty
args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS']
else args['aVS'] = ''
end
-- plural feminine+neuter
if args['aNP'] == '-' then args['aNP'] = ''
elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP']
else args['aNP'] = create_link('αἱ', stem_color('αἱ')) .. '/' .. create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'hai / tà' .. '</div>'
end
if args['aGP'] == '-' then args['aGP'] = ''
elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP']
else args['aGP'] = toon
end
if args['aDP'] == '-' then args['aDP'] = ''
elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP']
else args['aDP'] = create_link('ταῖς', stem_color('ταῖς')) .. '/' .. create_link('τοῖς', stem_color('τοῖς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîs / toîs' .. '</div>'
end
if args['aAP'] == '-' then args['aAP'] = ''
elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP']
else args['aAP'] = create_link('τάς', stem_color('τὰς')) .. '/' .. create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tàs / tà' .. '</div>'
end
if -- vocative is empty
args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP']
else args['aVS'] = ''
end
-- dual feminine+neuter = same
if args['aND'] == '-' then args['aND'] = ''
elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND']
else args['aND'] = too
end
if args['aGD'] == '-' then args['aGD'] = ''
elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD']
else args['aGD'] = toin
end
if args['aDD'] == '-' then args['aDD'] = ''
elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD']
else args['aDD'] = toin
end
if args['aAD'] == '-' then args['aAD'] = ''
elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD']
else args['aAD'] = too
end
if -- vocative is empty
args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD']
else args['aVD'] = ''
end
end -- close if m=1, if f=1....
end -- close if articles = 0
-- -------------------------------
end -- close function articles
return {articles = articles}