Modul:PIqaD

aus Memory Alpha, der freien deutschen Star-Trek-Datenbank
Spring zu: Navigation, suche

Die Dokumentation für dieses Modul kann unter Modul:PIqaD/Doku erstellt werden

local p = {}
function p.transliterate(frame)
    local text = frame.args[1]
    text = mw.ustring.gsub( text, 'gh', '')
    text = mw.ustring.gsub( text, 'ng', '')
    text = mw.ustring.gsub( text, 'ch', '')
    text = mw.ustring.gsub( text, 'tlh', '')
    
    text = mw.ustring.gsub( text, 'a', '')
    text = mw.ustring.gsub( text, 'b', '')
    text = mw.ustring.gsub( text, 'D', '')
    text = mw.ustring.gsub( text, 'e', '')
    text = mw.ustring.gsub( text, 'H', '')
    text = mw.ustring.gsub( text, 'I', '')
    text = mw.ustring.gsub( text, 'j', '')
    text = mw.ustring.gsub( text, 'l', '')
    text = mw.ustring.gsub( text, 'm', '')
    text = mw.ustring.gsub( text, 'n', '')
    text = mw.ustring.gsub( text, 'o', '')
    text = mw.ustring.gsub( text, 'p', '')
    text = mw.ustring.gsub( text, 'Q', '')
    text = mw.ustring.gsub( text, 'q', '')
    text = mw.ustring.gsub( text, 'r', '')
    text = mw.ustring.gsub( text, 'S', '')
    text = mw.ustring.gsub( text, 't', '')
    text = mw.ustring.gsub( text, 'u', '')
    text = mw.ustring.gsub( text, 'v', '')
    text = mw.ustring.gsub( text, 'w', '')
    text = mw.ustring.gsub( text, 'y', '')
    text = mw.ustring.gsub( text, '0', '')
    text = mw.ustring.gsub( text, '1', '')
    text = mw.ustring.gsub( text, '2', '')
    text = mw.ustring.gsub( text, '3', '')
    text = mw.ustring.gsub( text, '4', '')
    text = mw.ustring.gsub( text, '5', '')
    text = mw.ustring.gsub( text, '6', '')
    text = mw.ustring.gsub( text, '7', '')
    text = mw.ustring.gsub( text, '8', '')
    text = mw.ustring.gsub( text, '9', '')
    text = mw.ustring.gsub( text, ',', '')
    text = mw.ustring.gsub( text, "'", '')
    text = mw.ustring.gsub( text, "ʼ", '')
    text = mw.ustring.gsub( text, '%.', '')

    return text
end
return p