10,735
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 10: | Line 10: | ||
} | } | ||
function export.make_syllables(language, caption, list | function export.make_syllables(language, caption, delimiter, list) | ||
local syllables = "" | local syllables = "" | ||
local i = 1 | local i = 1 | ||
Line 32: | Line 32: | ||
function export.show_syllables(frame) | function export.show_syllables(frame) | ||
local args = m_parameters.process(frame:getParent().args, params) | local args = m_parameters.process(frame:getParent().args, params) | ||
return export.make_syllables(m_languages.get_by_code(args[1]), args["caption"] or "Syllabification", args[ | return export.make_syllables(m_languages.get_by_code(args[1]), args["caption"] or "Syllabification", args["delimiter"], args[2]) | ||
end | end | ||
function export.show_hyphens(frame) | function export.show_hyphens(frame) | ||
local args = m_parameters.process(frame:getParent().args, params) | local args = m_parameters.process(frame:getParent().args, params) | ||
return export.make_syllables(m_languages.get_by_code(args[1]), args["caption"] or "Hyphenation", args[ | return export.make_syllables(m_languages.get_by_code(args[1]), args["caption"] or "Hyphenation", args["delimiter"], args[2]) | ||
end | end | ||
return export | return export |