User:Sarri.greek (CAT) » Module el-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/el-articles').articles (args)
-- 2024.03.08. ] test articles in inflection tables
local tinti = require("Module:User:Sarri.greek/el-tin")
--tinti function:tin; chooses the correct acc.singular feminine article ] (tin) or ] (ti)
-- 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
--[=[
-- ================================ Links
function create_link (page, text)
if args == '1' or args == '1'
-- or or or
or 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>'
end
end
--]=]
-- tests at ]
function create_link (page, text)
-- ?? need translit. BELOW with small grey letters.
-- line 40: attempt to concatenate global 'tr' (a nil value)
-- tr = args or '' args = args or ''
-- check at line 300
if text then
tr = tr or ''
return ']'
-- go and write
-- .. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. tr .. '</div>'
else
return ']'
-- .. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. tr .. '</div>'
end
end
--[=[
-- ? how xxx = frame:preprocess(xxx) ? .. frame:expandTemplate{ title = 'l', args = {'?' } }
function create_link (page, text)
if text then
mylink = '{{l|el|' .. page .. '|' .. text .. '}}'
else
mylink = '{{l|el|' .. page .. '|' .. page .. '}}'
end
return ?
end
]=]--
--[=[
-- Lua error in Module:User:Sarri.greek/el-articles at line 56: attempt to call method 'preprocess' (a nil value)
function create_link (frame)
-- ?? need translit. BELOW with small grey letters.
-- local args = frame:getParent().args -- for Templates
local args = frame.args -- invoke
page = page or ''
text = text or ''
if text then
mylink = '{{l|el|' .. page .. '|' .. text .. '}}'
else
mylink = '{{l|el|' .. page .. '|' .. page .. '}}'
end
return frame:preprocess(page, text)
end
]=]--
--[=[ this needs theses 'args' things
function create_link (page, text)
-- same articles for: MAKE lang_name =
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' -- or or or
then
if text then
return ']'
else
return ']'
end
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
--------------------------------------------------------------------------
-- START PARAMS --
--------------------------------------------------------------------------
local function articles (args)
-- erase datives, if the main module has them
args = '' args = '' args = '' -- Dative Dual does not exist in reality
-- erase all duals, if the main module has them
args = '' args = ''
-- vocatives are empty. (The interjection ε! 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
-- of a second row
args = '' args = '' args = ''
-- of a second column
args = '' args = '' args = ''
-- ABBREVIATIONS
-- masc
o = create_link('ο', stem_color('ο'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'o' .. '</div>'
tou = create_link('του', stem_color('του'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tou /tu/' .. '</div>'
ton = create_link('τον', stem_color('τον'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ton' .. '</div>'
oi = create_link('οι', stem_color('οι'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. '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>'
tous = create_link('τους', stem_color('τους'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tous /tus/' .. '</div>'
-- fem
i = create_link('η', stem_color('η'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ī' .. '</div>'
tes = create_link('της', stem_color('της'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tīs' .. '</div>'
tin = create_link('την', stem_color(tinti.tin(args))) -- REQUIRE ]
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. tinti.tin_translit(args) .. '</div>'
tis = create_link('τις', stem_color('τις'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tis' .. '</div>'
-- neu
to = create_link('το', stem_color('το'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'to' .. '</div>'
ta = create_link('τα', stem_color('τα'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ta' .. '</div>'
-- common or mf
o_i = create_link('ο', stem_color('ο')) .. ' / ' .. create_link('η', stem_color('η'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'o / ī' .. '</div>'
o_br_i = create_link('ο', stem_color('ο')) .. '<br>' .. create_link('η', stem_color('η'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'o / ī' .. '</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;">' .. 'tou /tu/ - 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;">' .. 'tou /tu/ - tīs' .. '</div>'
ton_tin = create_link('τον', stem_color('τον')) .. ' / ' .. create_link('την', stem_color(tinti.tin(args))) -- REQUIRE ]
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ton / ' .. tinti.tin_translit(args) .. '</div>'
ton_br_tin = create_link('τον', stem_color('τον')) .. '<br>' .. create_link('την', stem_color(tinti.tin(args))) -- REQUIRE ]
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'ton / ' .. tinti.tin_translit(args) .. '</div>'
tous_tis = create_link('τους', stem_color('τους')) .. ' / ' .. create_link('τις', stem_color('τις'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tous /tus/ - tis' .. '</div>'
tous_br_tis = create_link('τους', stem_color('τους')) .. '<br>' .. create_link('τις', stem_color('τις'))
.. '<br><div style="white-space:nowrap; font-size:11px; line-height:100%; color:#777777;">' .. 'tous /tus/ - tis' .. '</div>'
-- ??TODO do i need a function here, so that I will not have to repeat at 'by whole table?'
-- =========== for INDIVIDUAL cells
-- NOMINATIVE SINGULAR
if args == "m" then args = o elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = i elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = to elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = o_i elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = o_br_i elseif args == '-' then args = '' else args = args or '' end
-- at a second row, break line
if args == "m" then args = '<br>' .. o elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = '<br>' .. i elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = '<br>' .. to elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = '<br>' .. o_i elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = '<br>' .. o_br_i elseif args == '-' then args = '' else args = args or '' end
-- at a second COLUMN
if args == "m" then args = o elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = i elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = to elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = o_i elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = o_br_i elseif args == '-' then args = '' else args = args or '' end
-- adjectives TEST
if args ~= "-" and args ~= "c" then
args = o elseif args == "c" then args = o_i
elseif args == '-' then args = '' else args = args or '' end
if args ~= "-" then args = i elseif args == '-' then args = '' else args = args or '' end
if args ~= "-" then args = to elseif args == '-' then args = '' else args = args or '' end
-- GENITIVE SINGULAR
if args == "m" then args = tou elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = tes elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = tou elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = tou_tes elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = tou_br_tes elseif args == '-' then args = '' else args = args or '' end
-- at a second row, break line
if args == "m" then args = '<br>' .. tou elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = '<br>' .. tes elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = '<br>' .. tou_tes elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = '<br>' .. tou_br_tes elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = '<br>' .. tou_br_tes elseif args == '-' then args = '' else args = args or '' end
-- at a second COLUMN
if args == "m" then args = tou elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = tes elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = tou elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = tou_tes elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = tou_br_tes elseif args == '-' then args = '' else args = args or '' end
-- adjectives TEST
if args ~= "-" and args ~= "c" then
args = tu elseif args == "c" then args = tou_tes
elseif args == '-' then args = '' else args = args or '' end
if args ~= "-" then args = tes elseif args == '-' then args = '' else args = args or '' end
if args ~= "-" then args = tou elseif args == '-' then args = '' else args = args or '' end
-- DATIVE SINGULAR (only for gkm=1, not for gkm=2 or el)
-- accusative singular
if args == "m" then args = ton elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = tin elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = to elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = ton_tin elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = ton_br_tin elseif args == '-' then args = '' else args = args or '' end
-- at a second row, break line
if args == "m" then args = '<br>' .. ton elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = '<br>' .. tin elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = '<br>' .. to elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = '<br>' .. ton_tin elseif args == '-' then args = '' else args = args or '' end
-- at a second column
-- adjectives
-- nominative plural
if args == "m" then args = oi elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = oi elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = ta elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = oi elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = oi elseif args == '-' then args = '' else args = args or '' end
-- at a second row, break line
if args == "m" then args = '<br>' .. oi elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = '<br>' .. oi elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = '<br>' .. ta elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = '<br>' .. oi elseif args == '-' then args = '' else args = args or '' end
-- at a second column
-- adjectives
-- genitive plural
if args == "m" then args = toon elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = toon elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = toon elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = toon elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = toon elseif args == '-' then args = '' else args = args or '' end
-- at a second row, break line
if args == "m" then args = '<br>' .. toon elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = '<br>' .. toon elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = '<br>' .. toon elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = '<br>' .. toon elseif args == '-' then args = '' else args = args or '' end
-- at a second column
-- adjectives
-- accusative plural
if args == "m" then args = tous elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = tis elseif args == '-' then args = '' else args = args or '' end
if args == "n" then args = ta elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = tous_tis elseif args == '-' then args = '' else args = args or '' end
if args == "mf" then args = tous_br_tis elseif args == '-' then args = '' else args = args or '' end
-- at a second row, break line
if args == "m" then args = '<br>' .. tous elseif args == '-' then args = '' else args = args or '' end
if args == "f" then args = '<br>' .. tis elseif args == '-' then args = '' else args = args or '' end
if args == "m" then args = '<br>' .. ta elseif args == '-' then args = '' else args = args or '' end
if args == "c" then args = '<br>' .. tous_tis elseif args == '-' then args = '' else args = args or '' end
-- at a second column
-- adjectives
-- no articles ================== for the WHOLE TABLE ?TODO also by column
if args == '0' or args == '-'
then
args = ' ...' args = '' args = ''
args = ' ' args = '' args = ''
else
-- MASCULINE ARTICLES monotonic
if args == '1' then
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o
end
if args == "-" then args = ''
elseif 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 = ton
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif 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
-- at a second row, break line
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o
end
if args == "-" then args = ''
elseif 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 = ton
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif 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
-- at a second COLUMN
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o
end
if args == "-" then args = ''
elseif 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 = ton
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif 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
-- FEMININE ARTICLES monotonic
elseif args == '1' then
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = i
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tes
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tin
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tis
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- at a second row, break line
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = i
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tes
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tin
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tis
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- at a second COLUMN
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = i
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tes
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tin
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tis
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- NEUTER ARTICLES monotonic
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 ~= '-' 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 = to
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
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 = ta
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- at a second row, break line
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = to
end
if args == "-" then args = ''
elseif 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 = to
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
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 = ta
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- at a second COLUMN
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = to
end
if args == "-" then args = ''
elseif 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 = ta
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
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 = ta
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- COMMON GENDER of living beings articles monotonic
elseif args == '1' then
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o_i
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tou_tis
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ton_tin
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tous_tis
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- at a second row, break line
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o_i
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tou_tis
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ton_tin
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tous_tis
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- at a second COLUMN
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = o_i
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tou_tis
end
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = ton_tin
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
if args == "-" then args = ''
elseif 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
if args == "-" then args = ''
elseif args ~= '-' and args ~= '' and args ~= nil then args = args
else args = tous_tis
end
if -- vocative is empty
args ~= '' and args ~= nil then args = args
else args = ''
end
-- try this
-- make space for absent articles, to balance the placing of nouns
-- if args == '-' or args == '' or args == nil
-- if args == nil
-- then
--else
-- args = ' '
end -- close if m=1, if f=1....
end -- close if articles = 0
-- -------------------------------
end -- close function articles
return {articles = articles}