Modul:Hyphenator
Die Dokumentation für dieses Modul kann unter Modul:Hyphenator/Doku erstellt werden
-- siehe auch Modul:ErsetzeZeichen
local hyph = {}
function hyph.main(frame)
if type(hyph[frame.args[1]]) == 'function' then
return hyph[frame.args[1]](frame.args[2], frame.args[3])
else
return hyph[frame.args[1]][frame.args[2]]
end
end
function hyph.middot(word)
word = mw.ustring.gsub(word, "%-%-", "·")
word = mw.ustring.gsub(word, ":", "·")
word = mw.ustring.gsub(word, "%.", "·")
return word
end
return hyph