Module:grc-articles
Module:grc-articles >> Module:grc-articles/τεκμηρίωση
Ancient Greek articles as added in declension modules. e.g. for nouns at Module:grc-nouns-decl. Examples at χώρα, θάλασσα.
Call if from a declension module by placing EXACTLY where it is needed:
require ('Module:grc-articles').articles (args)
- DO NOT change anything else.
Similar: also see Module:el-articles for Modern Greek (monotonic spelling)
Many thanks to Trappist the monk, from wikipedia for his help.
-- 2021.04.26.
-- Ancient Greek articles as added in declension tables
-- e.g. for nouns at [[Module:grc-nouns-decl]] -- test e.g. [[χώρα]] at the ancient section
-- Many thanks to [[User:Trappist the monk]] from wikipedia
-- INSTRUCTIONS:
-- Call if from a declension module by placing EXACTLY where it is needed:
-- require ('Module:grc-articles').articles (args)
-- DO NOT change anything else. DO NOT add at top of page a m_articles = require this and that.
-- USE local for the functions of THIS module
-- ########### TO DO: fix second singular and 2nd plural articles if needed
local languages = mw.loadData("Module:Languages") -- needed: grc (gkm, kath the articles are the same)
-- font colours
local c_stem = '#002000'
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
-- ====================== Links
local function create_link (page, text)
local args = {}
-- articles are the same for for kath, gkm, grc, so:
local lang_iso = 'grc'
local lang_link = languages[lang_iso]['link'] or ''
page = page or '' -- otherwise, it does not work
if text then
return '[[' .. page .. '#' .. languages[lang_iso]['link'] .. '|' .. text .. ']]'
else
return '[[' .. page .. '#' .. languages[lang_iso]['link'] .. '|' .. page .. ']]'
end
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
--------------------------------------------------------------------------
-- Ancient Greek articles --
--------------------------------------------------------------------------
local function articles (args)
-- ========= ARTICLES ========== -- This section was placed in a declension module and is moved here.
-- from the duals, only αοδ & αγδ are used (nom and gen). But there is provision for full dual table too.
-- vocatives are empty. (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
if args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ'] else args['ακδ'] = '' end
args['ακε2'] = ''
args['ακδ2'] = ''
args['ακπ2'] = ''
-- =========== for INDIVIDUAL cells ένα ένα, 1η κολόνα
if args['αοε'] == "αρσ" then args['αοε'] = create_link('ὁ', stem_color('ὁ')) end
if args['αοε'] == "θηλ" then args['αοε'] = create_link('ἡ', stem_color('ἡ')) end
if args['αοε'] == "ουδ" then args['αοε'] = create_link('τό', stem_color('τὸ')) end
if args['αοε'] == "αθ" then args['αοε'] = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ')) end
if args['αγε'] == "αρσ" then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) end
if args['αγε'] == "θηλ" then args['αγε'] = create_link('τῆς', stem_color('τῆς')) end
if args['αγε'] == "ουδ" then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) end
if args['αγε'] == "αθ" then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς')) end
if args['αδε'] == "αρσ" then args['αδε'] = create_link('τῷ', stem_color('τῷ')) end
if args['αδε'] == "θηλ" then args['αδε'] = create_link('τῇ', stem_color('τῇ')) end
if args['αδε'] == "ουδ" then args['αδε'] = create_link('τῷ', stem_color('τῷ')) end
if args['αδε'] == "αθ" then args['αδε'] = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ')) end
if args['ααε'] == "αρσ" then args['ααε'] = create_link('τόν', stem_color('τὸν')) end
if args['ααε'] == "θηλ" then args['ααε'] = create_link('τήν', stem_color('τὴν')) end
if args['ααε'] == "ουδ" then args['ααε'] = create_link('τό', stem_color('τὸ')) end
if args['ααε'] == "αθ" then args['ααε'] = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν')) end
if args['αοπ'] == "αρσ" then args['αοπ'] = create_link('οἱ', stem_color('οἱ')) end
if args['αοπ'] == "θηλ" then args['αοπ'] = create_link('αἱ', stem_color('αἱ')) end
if args['αοπ'] == "ουδ" then args['αοπ'] = create_link('τά', stem_color('τὰ')) end
if args['αοπ'] == "αθ" then args['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ')) end
if args['αγπ'] == "αρσ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ'] == "θηλ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ'] == "ουδ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ'] == "αθ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end
if args['αδπ'] == "αρσ" then args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) end
if args['αδπ'] == "θηλ" then args['αδπ'] = create_link('ταῖς', stem_color('ταῖς')) end
if args['αδπ'] == "ουδ" then args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) end
if args['αδπ'] == "αθ" then args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς')) end
if args['ααπ'] == "αρσ" then args['ααπ'] = create_link('τούς', stem_color('τοὺς')) end
if args['ααπ'] == "θηλ" then args['ααπ'] = create_link('τάς', stem_color('τὰς')) end
if args['ααπ'] == "ουδ" then args['ααπ'] = create_link('τά', stem_color('τὰ')) end
if args['ααπ'] == "αθ" then args['ααπ'] = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς')) end
if args['αοδ'] == "αρσ" or args['αοδ'] == "θηλ" or args['αοδ'] == "ουδ" or args['αοδ'] == "αθ"
then args['αοδ'] = create_link('τώ', stem_color('τὼ')) end
if args['αγδ'] == "αρσ" or args['αγδ'] == "θηλ" or args['αγδ'] == "ουδ" or args['αγδ'] == "αθ"
then args['αγδ'] = create_link('τοῖν', stem_color('τοῖν')) end
-- =========== for INDIVIDUAL cells ένα ένα, 2η κολόνα (2nd columns e.g. singular2, plural2)
if args['αοε2'] == "αρσ" then args['αοε2'] = create_link('ὁ', stem_color('ὁ')) end
if args['αοε2'] == "θηλ" then args['αοε2'] = create_link('ἡ', stem_color('ἡ')) end
if args['αοε2'] == "ουδ" then args['αοε2'] = create_link('τό', stem_color('τὸ')) end
if args['αοε2'] == "αθ" then args['αοε2'] = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ')) end
if args['αγε2'] == "αρσ" then args['αγε2'] = create_link('τοῦ', stem_color('τοῦ')) end
if args['αγε2'] == "θηλ" then args['αγε2'] = create_link('τῆς', stem_color('τῆς')) end
if args['αγε2'] == "ουδ" then args['αγε2'] = create_link('τοῦ', stem_color('τοῦ')) end
if args['αγε2'] == "αθ" then args['αγε2'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς')) end
if args['αδε2'] == "αρσ" then args['αδε2'] = create_link('τῷ', stem_color('τῷ')) end
if args['αδε2'] == "θηλ" then args['αδε2'] = create_link('τῇ', stem_color('τῇ')) end
if args['αδε2'] == "ουδ" then args['αδε2'] = create_link('τῷ', stem_color('τῷ')) end
if args['αδε2'] == "αθ" then args['αδε2'] = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ')) end
if args['ααε2'] == "αρσ" then args['ααε2'] = create_link('τόν', stem_color('τὸν')) end
if args['ααε2'] == "θηλ" then args['ααε2'] = create_link('τήν', stem_color('τὴν')) end
if args['ααε2'] == "ουδ" then args['ααε2'] = create_link('τό', stem_color('τὸ')) end
if args['ααε2'] == "αθ" then args['ααε2'] = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν')) end
if args['αοπ2'] == "αρσ" then args['αοπ2'] = create_link('οἱ', stem_color('οἱ')) end
if args['αοπ2'] == "θηλ" then args['αοπ2'] = create_link('αἱ', stem_color('αἱ')) end
if args['αοπ2'] == "ουδ" then args['αοπ2'] = create_link('τά', stem_color('τὰ')) end
if args['αοπ2'] == "αθ" then args['αοπ2'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ')) end
if args['αγπ2'] == "αρσ" then args['αγπ2'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ2'] == "θηλ" then args['αγπ2'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ2'] == "ουδ" then args['αγπ2'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ2'] == "αθ" then args['αγπ2'] = create_link('τῶν', stem_color('τῶν')) end
if args['αδπ2'] == "αρσ" then args['αδπ2'] = create_link('τοῖς', stem_color('τοῖς')) end
if args['αδπ2'] == "θηλ" then args['αδπ2'] = create_link('ταῖς', stem_color('ταῖς')) end
if args['αδπ2'] == "ουδ" then args['αδπ2'] = create_link('τοῖς', stem_color('τοῖς')) end
if args['αδπ2'] == "αθ" then args['αδπ2'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς')) end
if args['ααπ2'] == "αρσ" then args['ααπ2'] = create_link('τούς', stem_color('τοὺς')) end
if args['ααπ2'] == "θηλ" then args['ααπ2'] = create_link('τάς', stem_color('τὰς')) end
if args['ααπ2'] == "ουδ" then args['ααπ2'] = create_link('τά', stem_color('τὰ')) end
if args['ααπ2'] == "αθ" then args['ααπ2'] = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς')) end
if args['αοδ2'] == "αρσ" or args['αοδ2'] == "θηλ" or args['αοδ2'] == "ουδ" or args['αοδ2'] == "αθ"
then args['αοδ2'] = create_link('τώ', stem_color('τὼ')) end
if args['αγδ2'] == "αρσ" or args['αγδ2'] == "θηλ" or args['αγδ2'] == "ουδ" or args['αγδ2'] == "αθ"
then args['αγδ2'] = create_link('τοῖν', stem_color('τοῖν')) end
-- no articles ================== MAIN FUNCTION
if args['άρθρα'] == '0' or args['άρθρα'] == '-'
then
args['αοε'] = ' ' args['αγε'] = '' args['αδε'] = '' args['ααε'] = ''
args['αοπ'] = ' ' args['αγπ'] = '' args['αδπ'] = '' args['ααπ'] = ''
args['αοδ'] = ' ' args['αγδ'] = ''
else
-- for ALL the table, by GENDER parameter αρσ=1, θηλ=1, αθ=1, θο=1 -- more to be added for double-gender-declensions which are NOT common gender
-- MASCULINE ARTICLES
if args['αρσ'] == '1' then
if args['αοε'] == '-' then args['αοε'] = ''
elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
else args['αοε'] = create_link('ὁ', stem_color('ὁ'))
end
-- masc. gen. sg. +dor/lac +epic
if args['αγε'] == '-' then args['αγε'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αγε'] ~= '-'
then args['αγε'] = create_link('τῶ', stem_color('τῶ'))
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αγε'] ~= '-'
then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τοῖο', stem_color('τοῖο'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil
then args['αγε'] = args['αγε']
else args['αγε'] = create_link('τοῦ', stem_color('τοῦ'))
end
if args['αδε'] == '-' then args['αδε'] = ''
elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
else args['αδε'] = create_link('τῷ', stem_color('τῷ'))
end
if args['ααε'] == '-' then args['ααε'] = ''
elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
else args['ααε'] = create_link('τόν', stem_color('τὸν'))
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['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αοπ'] ~= '-'
then args['αοπ'] = create_link('τοί', stem_color('τοὶ'))
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αοπ'] ~= '-'
then args['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('τοί', stem_color('τοὶ'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil
then args['αοπ'] = args['αοπ']
else args['αοπ'] = create_link('οἱ', stem_color('οἱ'))
end
if args['αγπ'] == '-' then args['αγπ'] = ''
elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
end
-- masc.dat.pl +epic
if args['αδπ'] == '-' then args['αδπ'] = ''
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αδπ'] ~= '-'
then args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('τοῖσι', stem_color('τοῖσι')) .. '(' .. create_link('τοῖσιν', stem_color('ν')) .. ')'
elseif args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil
then args['αδπ'] = args['αδπ']
else args['αδπ'] = create_link('τοῖς', stem_color('τοῖς'))
end
-- masc.acc.pl +doc/lac
if args['ααπ'] == '-' then args['ααπ'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αοπ'] ~= '-'
then args['ααπ'] = create_link('τώς', stem_color('τώς'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil
then args['ααπ'] = args['ααπ']
else args['ααπ'] = create_link('τούς', stem_color('τοὺς'))
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['αοδ'] = create_link('τώ', stem_color('τὼ'))
end
-- masc.gen.du +epic
if args['αγδ'] == '-' then args['αγδ'] = ''
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αγδ'] ~= '-'
then args['αγδ'] = create_link('τοῖιν', stem_color('τοῖιν'))
elseif args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil
then args['αγδ'] = args['αγδ']
else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
-- (masc.dat.du +epic)
if args['αδδ'] == '-' then args['αδδ'] = ''
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αδδ'] ~= '-'
then args['αδδ'] = create_link('τοῖιν', stem_color('τοῖιν'))
elseif args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil
then args['αδδ'] = args['αδδ']
else args['αδδδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['ααδ'] == '-' then args['ααδ'] = ''
elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
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['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αοε'] ~= '-'
then args['αοε'] = create_link('ἁ', stem_color('ἁ'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil
then args['αοε'] = args['αοε']
else args['αοε'] = create_link('ἡ', stem_color('ἡ'))
end
-- fem.gen.sg +dor/lac
if args['αγε'] == '-' then args['αγε'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αγε'] ~= '-'
then args['αγε'] = create_link('τᾶς', stem_color('τᾶς'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil
then args['αγε'] = args['αγε']
else args['αγε'] = create_link('τῆς', stem_color('τῆς'))
end
-- fem.dat.sg +dor/lac
if args['αδε'] == '-' then args['αδε'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αδε'] ~= '-'
then args['αδε'] = create_link('τᾷ', stem_color('τᾷ'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil
then args['αδε'] = args['αδε']
else args['αδε'] = create_link('τῇ', stem_color('τῇ'))
end
-- fem.acc.sg +dor/lac
if args['ααε'] == '-' then args['ααε'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['ααε'] ~= '-'
then args['ααε'] = create_link('τάν', stem_color('τὰν'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil
then args['ααε'] = args['ααε']
else args['ααε'] = create_link('τήν', stem_color('τὴν'))
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['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αοπ'] ~= '-'
then args['αοπ'] = create_link('ταί', stem_color('ταὶ'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil
then args['αοπ'] = args['αοπ']
else args['αοπ'] = create_link('αἱ', stem_color('αἱ'))
end
-- fem.gen.pl +dor/lac +epic
if args['αγπ'] == '-' then args['αγπ'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αγπ'] ~= '-'
then args['αγπ'] = create_link('τᾶν', stem_color('τᾶν'))
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αγπ'] ~= '-'
then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) .. '/' .. create_link('τάων', stem_color('τάων'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil
then args['αγπ'] = args['αγπ']
else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
end
if args['αδπ'] == '-' then args['αδπ'] = ''
elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
else args['αδπ'] = create_link('ταῖς', stem_color('ταῖς'))
end
if args['ααπ'] == '-' then args['ααπ'] = ''
elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
else args['ααπ'] = create_link('τάς', stem_color('τὰς'))
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['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αοδ'] ~= '-'
then args['αοδ'] = create_link('τά', stem_color('τὰ'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil
then args['αοδ'] = args['αοδ']
else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
end
-- fem.gen.du +dor/lac +epic
if args['αγδ'] == '-' then args['αγδ'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αγδ'] ~= '-'
then args['αγδ'] = create_link('ταῖν', stem_color('ταῖν'))
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αγδ'] ~= '-'
then args['αγδ'] = create_link('τοῖιν', stem_color('τοῖιν'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil
then args['αγδ'] = args['αγδ']
else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
-- (fem.dat.du +dor/lac +epic)
if args['αδδ'] == '-' then args['αδδ'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αδδ'] ~= '-'
then args['αδδ'] = create_link('ταῖν', stem_color('ταῖν'))
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αδδ'] ~= '-'
then args['αδδ'] = create_link('τοῖιν', stem_color('τοῖιν'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil
then args['αδδ'] = args['αδδ']
else args['αδδδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
-- (fem.acc.du +dor/lac) = like nom.
if args['ααδ'] == '-' then args['ααδ'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['ααδ'] ~= '-'
then args['ααδ'] = create_link('τά', stem_color('τὰ'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil
then args['ααδ'] = args['ααδ']
else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
end
if -- vocative is empty
args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
else args['ακδ'] = ''
end
-- RARE FEMININE or NEUTER ARTICLES (plural is not attested) θο=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('τὸ'))
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('τοῦ'))
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('τῷ'))
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('τὸ'))
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('τὰ'))
end
if args['αγπ'] == '-' then args['αγπ'] = ''
elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
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('τοῖς'))
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('τὰ'))
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['αοδ'] = create_link('τώ', stem_color('τὼ'))
end
if args['αγδ'] == '-' then args['αγδ'] = ''
elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['αδδ'] == '-' then args['αδδ'] = ''
elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['ααδ'] == '-' then args['ααδ'] = ''
elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
end
if -- vocative is empty
args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
else args['ακδ'] = ''
end
-- COMMON gender MASCULINE+FEMININE 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('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ'))
end
-- γενική ενικού με άρθρο δεύτερης γραμμής: επιλέγουμε τι θέλουμε / 2 articles in 2 lines -- NOT USED YET
if args['α2γε'] ~= '' and args['α2γε'] ~= nil then
args['αγε'] = args['αγε'] .. "<br />" .. args['α2γε']
else
if args['αγε'] == '-' then args['αγε'] = ''
elseif args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil then args['αγε'] = args['αγε']
else args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς'))
end
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('τῇ'))
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('τὴν'))
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['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ'))
end
if args['αγπ'] == '-' then args['αγπ'] = ''
elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
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('ταῖς'))
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('τὰς'))
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['αοδ'] = create_link('τώ', stem_color('τὼ'))
end
if args['αγδ'] == '-' then args['αγδ'] = ''
elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['αδδ'] == '-' then args['αδδ'] = ''
elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['ααδ'] == '-' then args['ααδ'] = ''
elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
end
if -- vocative is empty
args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
else args['ακδ'] = ''
end
-- ΜULTIPLE 1) MASCULINE+FEMININE 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('ἡ'))
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('τῆς'))
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('τῇ'))
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('τὴν'))
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['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '<br />' .. create_link('αἱ', stem_color('αἱ'))
end
if args['αγπ'] == '-' then args['αγπ'] = ''
elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
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('ταῖς'))
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('τὰς'))
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['αοδ'] = create_link('τώ', stem_color('τὼ'))
end
if args['αγδ'] == '-' then args['αγδ'] = ''
elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['αδδ'] == '-' then args['αδδ'] = ''
elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['ααδ'] == '-' then args['ααδ'] = ''
elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
end
if -- vocative is empty
args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
else args['ακδ'] = ''
end
-- ΜULTIPLE 2) FEMININE - 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('ὁ'))
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('τοῦ'))
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('τῷ'))
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('τὸν'))
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('οἱ'))
end
if args['αγπ'] == '-' then args['αγπ'] = ''
elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
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('τοῖς'))
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('τοὺς'))
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['αοδ'] = create_link('τώ', stem_color('τὼ'))
end
if args['αγδ'] == '-' then args['αγδ'] = ''
elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['αδδ'] == '-' then args['αδδ'] = ''
elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['ααδ'] == '-' then args['ααδ'] = ''
elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
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['αοε'] = create_link('τό', stem_color('τὸ'))
end
if args['αγε'] == '-' then args['αγε'] = ''
elseif (args['δωρ'] == '1' or args['grc-dor'] == '1'
or args['λακ'] == '1' or args['grc-lak'] == '1') and args['αγε'] ~= '-'
then args['αγε'] = create_link('τῶ', stem_color('τῶ'))
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αγε'] ~= '-'
then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τοῖο', stem_color('τοῖο'))
elseif args['δωρ'] ~= '1' and args['grc-dor'] ~= '1'
and args['λακ'] ~= '1' and args['grc-lak'] ~= '1'
and args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil
then args['αγε'] = args['αγε']
else args['αγε'] = create_link('τοῦ', stem_color('τοῦ'))
end
if args['αδε'] == '-' then args['αδε'] = ''
elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
else args['αδε'] = create_link('τῷ', stem_color('τῷ'))
end
if args['ααε'] == '-' then args['ααε'] = ''
elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
else args['ααε'] = create_link('τό', stem_color('τὸ'))
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['αοπ'] = create_link('τά', stem_color('τὰ'))
end
if args['αγπ'] == '-' then args['αγπ'] = ''
elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
end
if args['αδπ'] == '-' then args['αδπ'] = ''
elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
else args['αδπ'] = create_link('τοῖς', stem_color('τοῖς'))
end
if args['ααπ'] == '-' then args['ααπ'] = ''
elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
else args['ααπ'] = create_link('τά', stem_color('τὰ'))
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['αοδ'] = create_link('τώ', stem_color('τὼ'))
end
if args['αγδ'] == '-' then args['αγδ'] = ''
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αγδ'] ~= '-'
then args['αγδ'] = create_link('τοῖιν', stem_color('τοῖιν'))
elseif args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil
then args['αγδ'] = args['αγδ']
else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['αδδ'] == '-' then args['αδδ'] = ''
elseif (args['επικ'] == '1' or args['grc-epi'] == '1') and args['αδδ'] ~= '-'
then args['αδδ'] = create_link('τοῖιν', stem_color('τοῖιν'))
elseif args['επικ'] ~= '1' and args['grc-epi'] ~= '1'
and args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil
then args['αδδ'] = args['αδδ']
else args['αδδδ'] = create_link('τοῖν', stem_color('τοῖν'))
end
if args['ααδ'] == '-' then args['ααδ'] = ''
elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
end
if -- vocative is empty
args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
else args['ακδ'] = ''
end
end -- close if αρσ=1, if θηλ=1....
end -- close if άρθρα = 0
-- -------------------------------
end -- close function articles
return {articles = articles}