User:Sarri.greek (CAT) » Module grc-articles doc test User:Sarri.greek/template4
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. ]
-- 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 == '1' then lang_iso = 'grc'
elseif args == '1' then lang_iso = 'el'
end
if text then
return ']'
.. '<div style="font-size:83%; letter-spacing:2px; line-height:100%; color:#777777">{{xlit|'
.. lang_iso .. '|' .. text .. '}}</div>'
else
return ']'
.. '<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 ']'
else
return ']'
end
end
--[=[ this needs theses 'args' things
function create_link (page, text)
-- same articles for:
if args == '1' or args == '1' or args == '2'
or args == '1' or args == '2' or args == '1' or args == '2'
or args == '1' or args == '1'
then
if text then
return ']'
else
return ']'
end
elseif args == '1'
then
if text then
return ']'
else
return ']'
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 == '-' then args = '' args = ''end
-- vocatives are empty. (The interjection ὦ! or the ε! could be placed outside, as it is not an article)
if args ~= '' and args ~= nil then args = args else args = '' end
if args ~= '' and args ~= nil then args = args else args = '' end
-- suppose there was a dual vocative
if args ~= '' and args ~= nil then args = args else args = '' end
-- of a second row
args = '' args = '' args = ''
-- of a second column
args = '' args = '' args = ''
-- ABBREVIATIONS
if args == '1' or args == '2'or args == '1' or args == '2'
or args == '1' or args == '1' or args == '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 == "m" then args = o elseif args == '-' then args = '' else args = args end
if args == "f" then args = e elseif args == '-' then args = '' else args = args end
if args == "n" then args = to elseif args == '-' then args = '' else args = args end
if args == "c" then args = o_e elseif args == '-' then args = '' else args = args end
if args == "mf" then args = o_br_e elseif args == '-' then args = '' else args = args end
-- TODO fm, fn if needed
-- at a second row, break line
if args == "m" then args = o elseif args == '-' then args = '' else args = args end
if args == "f" then args = e elseif args == '-' then args = '' else args = args end
if args == "n" then args = to elseif args == '-' then args = '' else args = args end
if args == "c" then args = o_e elseif args == '-' then args = '' else args = args end
-- mf already broken link
-- at a second COLUMN
if args == "m" then args = o elseif args == '-' then args = '' else args = args end
if args == "f" then args = e elseif args == '-' then args = '' else args = args end
if args == "n" then args = to elseif args == '-' then args = '' else args = args end
if args == "c" then args = o_e elseif args == '-' then args = '' else args = args end
if args == "mf" then args = o_br_e elseif args == '-' then args = '' else args = args end
-- adjectives or other trigenous
if args ~= "-" and args ~= "c" then
args = o
elseif args == "c" then args = o_e
elseif args == '-' then args = '' else args = args end
if args ~= "-" then args = e elseif args == '-' then args = '' else args = args end
if args ~= "-" then args = to elseif args == '-' then args = '' else args = args end
-- GENITIVE SINGULAR
if args == "m" then args = tou elseif args == '-' then args = '' else args = args end
if args == "f" then args = tes elseif args == '-' then args = '' else args = args end
if args == "n" then args = tou elseif args == '-' then args = '' else args = args end
if args == "c" then args = tou_tes elseif args == '-' then args = '' else args = args end
if args == "mf" then args = tou_br_tes elseif args == '-' then args = '' else args = args end
-- at a second row, break line
if args == "m" then args = tou elseif args == '-' then args = '' else args = args end
if args == "f" then args = tes elseif args == '-' then args = '' else args = args end
if args == "n" then args = tu elseif args == '-' then args = '' else args = args end
if args == "c" then args = tou_tes elseif args == '-' then args = '' else args = args end
-- at a second COLUMN
if args == "m" then args = tou elseif args == '-' then args = '' else args = args end
if args == "f" then args = tes elseif args == '-' then args = '' else args = args end
if args == "n" then args = tou elseif args == '-' then args = '' else args = args end
if args == "c" then args = tou_tes elseif args == '-' then args = '' else args = args end
if args == "mf" then args = tou_br_tes elseif args == '-' then args = '' else args = args end
-- adjectives
if args ~= "-" and args ~= "c" then
args = tou
elseif args == "c" then args = tou_tes
elseif args == '-' then args = '' else args = args end
if args ~= "-" then args = tes elseif args == '-' then args = '' else args = args end
if args ~= "-" then args = tou elseif args == '-' then args = '' else args = args end
-- DATIVE SINGULAR
if args == "m" then args = tooi elseif args == '-' then args = '' else args = args end
if args == "f" then args = tei elseif args == '-' then args = '' else args = args end
if args == "n" then args = tooi elseif args == '-' then args = '' else args = args end
if args == "c" then args = tooi_tei elseif args == '-' then args = '' else args = args end
-- TODO fm, fn if needed
-- at a second row, break line
if args == "m" then args = tooi elseif args == '-' then args = '' else args = args end
if args == "f" then args = tei elseif args == '-' then args = '' else args = args end
if args == "n" then args = tooi elseif args == '-' then args = '' else args = args end
if args == "c" then args = tooi_tei elseif args == '-' then args = '' else args = args end
-- mf already broken link
-- at a second COLUMN
if args == "m" then args = tooi elseif args == '-' then args = '' else args = args end
if args == "f" then args = tei elseif args == '-' then args = '' else args = args end
if args == "n" then args = tooi elseif args == '-' then args = '' else args = args end
if args == "c" then args = tooi_tei elseif args == '-' then args = '' else args = args end
-- adjectives todo
-- ACCUSATIVE SINGULAR
if args == "m" then args = ton elseif args == '-' then args = '' else args = args end
if args == "f" then args = ten elseif args == '-' then args = '' else args = args end
if args == "n" then args = to elseif args == '-' then args = '' else args = args end
if args == "c" then args = ton_ten elseif args == '-' then args = '' else args = args end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- NOMINATIVE PLURAL
if args == "m" then args = oi elseif args == '-' then args = '' else args = args end
if args == "f" then args = ai elseif args == '-' then args = '' else args = args end
if args == "n" then args = ta elseif args == '-' then args = '' else args = args end
if args == "c" then args = oi_ai elseif args == '-' then args = '' else args = args end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- GENITIVE PLURAL
if args == "m" then args = toon elseif args == '-' then args = '' else args = args end
if args == "f" then args = toon elseif args == '-' then args = '' else args = args end
if args == "n" then args = toon elseif args == '-' then args = '' else args = args end
if args == "c" then args = toon elseif args == '-' then args = '' else args = args end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- DATIVE PLURAL
if args == "m" then args = tois elseif args == '-' then args = '' else args = args end
if args == "f" then args = tais elseif args == '-' then args = '' else args = args end
if args == "n" then args = tois elseif args == '-' then args = '' else args = args end
if args == "c" then args = tois_tais elseif args == '-' then args = '' else args = args end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- ACCUSATIVE PLURAL
if args == "m" then args = tous elseif args == '-' then args = '' else args = args end
if args == "f" then args = tas elseif args == '-' then args = '' else args = args end
if args == "m" then args = ta elseif args == '-' then args = '' else args = args end
if args == "c" then args = tous_tas elseif args == '-' then args = '' else args = args end
-- at a second row, break line
-- at a second COLUMN
-- adjectives
-- NOM-ACC-VOC DUAL
if args == "m" or args == "f" or args == "n" or args == "c"
then args = too elseif args == '-' then args = '' else args = args end
-- do not break line
-- NO second COLUMN
-- adjectives
-- GEN-DAT DUAL
if args == "m" or args == "f" or args == "n" or args == "c"
then args = toin elseif args == '-' then args = '' else args = args end
-- no articles ================== FOR THE WHOLE TABLE ??TODO by column for diff genders.
if args == '0' or args == '-'
then
args = ' ' args = '' args = '' args = ''
args = ' ' args = '' args = '' args = ''
args = ' ' args = ''
else
-- MASCULINE ARTICLES
if args == '1' then
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o
end
-- masc. gen. sg. +dor/lac +epic
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τῶ', stem_color('τῶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tô' .. '</div>'
elseif (args == '1' or args == '1') and args ~= '-'
then args = 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 ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = tou
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tooi
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ton
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- plural masculine
-- masc. nom. pl. +lac/dor +epic
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τοί', stem_color('τοὶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toì' .. '</div>'
elseif (args == '1' or args == '1') and args ~= '-'
then args = 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 ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = oi
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toon
end
-- masc.dat.pl +epic
if args == '-' then args = ''
elseif (args == '1' or args == '1') and args ~= '-'
then args = 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 ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = tois
end
-- masc.acc.pl +doc/lac
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τώς', stem_color('τὼς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tṑs' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = tous
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- dual masculine
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
-- masc.gen.du +epic
if args == '-' then args = ''
elseif (args == '1' or args == '1') and args ~= '-'
then args = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = toin
end
-- (masc.dat.du +epic) -- DO NOT NEED THESE
if args == '-' then args = ''
elseif (args == '1' or args == '1') and args ~= '-'
then args = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- FEMININE ARTICLES
elseif args == '1' then
-- fem.nom.sg +dor/lac
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('ἁ', stem_color('ἁ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ha' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = e
end
-- fem.gen.sg +dor/lac
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τᾶς', stem_color('τᾶς'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tâs' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = tes
end
-- fem.dat.sg +dor/lac
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τᾷ', stem_color('τᾷ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tâi' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = tei
end
-- fem.acc.sg +dor/lac
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τάν', stem_color('τὰν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tàn' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = ten
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- plural feminine
-- fem.nom.pl +dor/lac
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('ταί', stem_color('ταὶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taì' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = ai
end
-- fem.gen.pl +dor/lac +epic
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τᾶν', stem_color('τᾶν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tân' .. '</div>'
elseif (args == '1' or args == '1') and args ~= '-'
then args = 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 ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = toon
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tais
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tas
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- dual feminine
-- fem.nom.du +dor/lac
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tà' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = too
end
-- fem.gen.du +dor/lac +epic
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('ταῖν', stem_color('ταῖν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîn' .. '</div>'
elseif (args == '1' or args == '1') and args ~= '-'
then args = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = toin
end
-- (fem.dat.du +dor/lac +epic)
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('ταῖν', stem_color('ταῖν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'taîn' .. '</div>'
elseif (args == '1' or args == '1') and args ~= '-'
then args = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = toin
end
-- (fem.acc.du +dor/lac) = like nom.
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τά', stem_color('τὰ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tà' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = too
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- NEUTER ARTICLES
elseif args == '1' then
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = to
end
if args == '-' then args = ''
elseif (args == '1' or args == '1'
or args == '1' or args == '1') and args ~= '-'
then args = create_link('τῶ', stem_color('τῶ'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tô' .. '</div>'
elseif (args == '1' or args == '1') and args ~= '-'
then args = 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 ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = tou
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tooi
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = to
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- plural neuter
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ta
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toon
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tois
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ta
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- dual neuter
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if args == '-' then args = ''
elseif (args == '1' or args == '1') and args ~= '-'
then args = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = toin
end
if args == '-' then args = ''
elseif (args == '1' or args == '1') and args ~= '-'
then args = create_link('τοῖιν', stem_color('τοῖιν'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'toîin' .. '</div>'
elseif args ~= '1' and args ~= '1'
and args ~= '-' and args ~= '' and args ~= nil
then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- COMMON gender of living beings MASCULINE+FEMININE ARTICLES
elseif args == '1' then
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o_e
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tou_tes
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tooi_tei
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ton_ten
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- plural common masc+fem
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = oi_ai
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toon
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tois_tais
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tous_tas
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- dual common
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- ΜULTIPLE GENDERS 1) MASCULINE OR FEMININE ARTICLES
elseif args == '1' then
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o_br_e
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tou_br_tes
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tooi_br_tei
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ton_br_ten
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- plural multiple masc and fem
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = oi_br_ai
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toon
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tois_br_tais
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tous_br_tas
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- dual common
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- ΜULTIPLE GENDERS 2) FEMININE OR MASCULINE ARTICLES
elseif args == '1' then
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 ~= '' and args ~= nil then args = args
else args = ''
end
-- plural multiple fem and masc
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toon
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 ~= '' and args ~= nil then args = args
else args = ''
end
-- dual common
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
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 == '1' then
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 ~= '' and args ~= nil then args = args
else args = ''
end
-- plural feminine+neuter
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toon
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = 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 ~= '' and args ~= nil then args = args
else args = ''
end
-- dual feminine+neuter = same
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = toin
end
if args == '-' then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = too
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
end -- close if m=1, if f=1....
end -- close if articles = 0
-- -------------------------------
end -- close function articles
return {articles = articles}