Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,528:
]]
local function build_id_list (
local
local accept;
local func_map = { --function map points to functions associated with hkey identifier
Line 1,560:
}
for hkey, v in pairs (
v, accept = has_accept_as_written (v); -- remove accept-as-written markup if present; accept is boolean true when markup removed; false else
-- every function gets the options table with value v and accept boolean
Line 1,568:
options_t.access = access_levels_t[hkey]; -- add the access level for those that have an |<identifier-access= parameter
options_t.handler = cfg.id_handlers[hkey];
options_t.coins_list_t =
if func_map[hkey] then
table.insert (
else
error (cfg.messages['unknown_ID_key'] .. ' ' .. hkey); -- here when func_map doesn't have a function for hkey
Line 1,583 ⟶ 1,581:
end
table.sort (
for k, v in ipairs (
end
return
end
Line 1,604 ⟶ 1,602:
local ID_access_levels_t = extract_id_access_levels (args, ID_list_coins_t); -- get a table of identifier access levels
local ID_list_t = build_id_list (ID_list_coins_t, options_t, ID_access_levels_t); -- get a sequence table of rendered identifier strings
return ID_list_t, ID_list_coins_t; -- return the tables
|