Modul:ErsetzeZeichen
Die Dokumentation für dieses Modul kann unter Modul:ErsetzeZeichen/Doku erstellt werden
--[[
Dieses Modul ersetzt in Referenzvorlagen bestimmte Zeichen durch andere,
z.B. die Umlaute ä, ö, ü, Ä, Ö, Ü durch ae, oe, ue, Ae, Oe, Ue
oder das scharfe ß durch ss bzw. sz.
]]
local export = {}
-- this function enables the module to be called from a template
function export.main(frame)
if type(export[frame.args[1]]) == 'function' then
return export[frame.args[1]](frame.args[2], frame.args[3])
else
return export[frame.args[1]][frame.args[2]]
end
end
function export.duden_ipa_to_wt_ipa(word)
word = mw.ustring.gsub(word, "r", "ʁ")
word = mw.ustring.gsub(word, "ʀ", "ʁ")
word = mw.ustring.gsub(word, "'", "ˈ")
word = mw.ustring.gsub(word, ":", "ː")
word = mw.ustring.gsub(word, "ts", "t͡s")
word = mw.ustring.gsub(word, "ʦ", "t͡s")
word = mw.ustring.gsub(word, "tʃ", "t͡ʃ")
word = mw.ustring.gsub(word, "ʧ", "t͡ʃ")
word = mw.ustring.gsub(word, "dz", "d͡z")
word = mw.ustring.gsub(word, "ʣ", "d͡z")
word = mw.ustring.gsub(word, "dʒ", "d͡ʒ")
word = mw.ustring.gsub(word, "ʤ", "d͡ʒ")
word = mw.ustring.gsub(word, "pf", "p͡f")
word = mw.ustring.gsub(word, "@", "") -- bei Bedarf zum Maskieren
return word
end
function export.convert_to_ss(word)
word = mw.ustring.gsub(word, "ä", "ae")
word = mw.ustring.gsub(word, "ö", "oe")
word = mw.ustring.gsub(word, "ü", "ue")
word = mw.ustring.gsub(word, "Ä", "Ae")
word = mw.ustring.gsub(word, "Ö", "Oe")
word = mw.ustring.gsub(word, "Ü", "Ue")
word = mw.ustring.gsub(word, "ß", "ss")
return word
end
function export.convert_to_sz(word)
word = mw.ustring.gsub(word, "ä", "ae")
word = mw.ustring.gsub(word, "ö", "oe")
word = mw.ustring.gsub(word, "ü", "ue")
word = mw.ustring.gsub(word, "Ä", "Ae")
word = mw.ustring.gsub(word, "Ö", "Oe")
word = mw.ustring.gsub(word, "Ü", "Ue")
word = mw.ustring.gsub(word, "ß", "sz")
return word
end
function export.owid(word)
-- die auskommentierten Zeichen sind bei OWID ungültig
word = mw.ustring.gsub(word, "ä", "%%C3%%A4")
word = mw.ustring.gsub(word, "ö", "%%C3%%B6")
word = mw.ustring.gsub(word, "ü", "%%C3%%BC")
word = mw.ustring.gsub(word, "Ä", "%%C3%%84")
word = mw.ustring.gsub(word, "Ö", "%%C3%%96")
word = mw.ustring.gsub(word, "Ü", "%%C3%%9C")
word = mw.ustring.gsub(word, "ß", "%%C3%%9F")
-- word = mw.ustring.gsub(word, "-", "_")
-- word = mw.ustring.gsub(word, "%.", "_")
-- word = mw.ustring.gsub(word, "’", "_")
-- word = mw.ustring.gsub(word, ",", "_")
word = mw.ustring.gsub(word, " ", "+")
-- word = mw.ustring.gsub(word, "!", "_")
word = mw.ustring.gsub(word, "à", "%%C3%%A0") -- à la carte
word = mw.ustring.gsub(word, "ã", "%%C3%%A3") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "å", "%%C3%%A5") -- Bokmål
word = mw.ustring.gsub(word, "é", "%%C3%%A9") -- Negligé
word = mw.ustring.gsub(word, "É", "%%C3%%89") -- Belle Époque
word = mw.ustring.gsub(word, "è", "%%C3%%A8") -- Hotelière
word = mw.ustring.gsub(word, "î", "%%C3%%AE")
word = mw.ustring.gsub(word, "í", "%%C3%%AD") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "%%C3%%B1") -- Cariñena
word = mw.ustring.gsub(word, "ô", "%%C3%%B4") -- Côte d’Ivoire
-- word = mw.ustring.gsub(word, "Œ", "O") -- Œuvre
-- word = mw.ustring.gsub(word, "ū", "u")
return word
end
function export.duden(word)
word = mw.ustring.gsub(word, "ä", "ae")
word = mw.ustring.gsub(word, "ö", "oe")
word = mw.ustring.gsub(word, "ü", "ue")
word = mw.ustring.gsub(word, "Ä", "Ae")
word = mw.ustring.gsub(word, "Ö", "Oe")
word = mw.ustring.gsub(word, "Ü", "Ue")
word = mw.ustring.gsub(word, "ß", "sz")
word = mw.ustring.gsub(word, "-", "_")
word = mw.ustring.gsub(word, "%&%#45%;", "_")
-- ein Versuch, ein "-0", bisher nur bei [[Autoscooter]] am Ende des Duden-Links, so zulassen, wie er ist
-- durch die Umschlüsselung oberhalb, ist ein "_0" entstanden, das nun wieder zu "-0" gemacht wird
word = mw.ustring.gsub(word, "_0", "-0")
word = mw.ustring.gsub(word, "%.", "_")
word = mw.ustring.gsub(word, "’", "_")
word = mw.ustring.gsub(word, ",", "_")
word = mw.ustring.gsub(word, " ", "_")
word = mw.ustring.gsub(word, "!", "_")
word = mw.ustring.gsub(word, "à", "a") -- à la carte
word = mw.ustring.gsub(word, "À", "A") -- À-la-carte-Essen
word = mw.ustring.gsub(word, "ã", "a") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ç", "c") -- à la française
word = mw.ustring.gsub(word, "å", "a") -- Bokmål
word = mw.ustring.gsub(word, "é", "e") -- Negligé
word = mw.ustring.gsub(word, "É", "E") -- Belle Époque
word = mw.ustring.gsub(word, "è", "e") -- Hotelière
word = mw.ustring.gsub(word, "î", "i")
word = mw.ustring.gsub(word, "í", "i") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "n") -- Cariñena
word = mw.ustring.gsub(word, "ô", "o") -- Côte d’Ivoire
word = mw.ustring.gsub(word, "Œ", "O") -- Œuvre
word = mw.ustring.gsub(word, "œ", "o") -- Bœuf
word = mw.ustring.gsub(word, "ū", "u")
word = mw.ustring.gsub(word, "/", "_") -- m/s
return word
end
function export.freedictionary(word)
word = mw.ustring.gsub(word, "%&%#45%;", "-")
return word
end
function export.dwds(word)
word = mw.ustring.gsub(word, " ", "+")
word = mw.ustring.gsub(word, "*", "*") -- -bräu
return word
end
function export.pons(word)
word = mw.ustring.gsub(word, " ", "+")
return word
end
function export.dle(word)
word = mw.ustring.gsub(word, " ", "+")
return word
end
function export.dwdsneu(word)
word = mw.ustring.gsub(word, "ä", "%%C3%%A4")
word = mw.ustring.gsub(word, "ö", "%%C3%%B6")
word = mw.ustring.gsub(word, "ü", "%%C3%%BC")
word = mw.ustring.gsub(word, "Ä", "%%C3%%84")
word = mw.ustring.gsub(word, "Ö", "%%C3%%96")
word = mw.ustring.gsub(word, "Ü", "%%C3%%9C")
word = mw.ustring.gsub(word, "ß", "%%C3%%9F")
word = mw.ustring.gsub(word, " ", "%%20")
word = mw.ustring.gsub(word, "à", "%%C3%%A0") -- à la carte
word = mw.ustring.gsub(word, "ã", "%%C3%%A3") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "å", "%%C3%%A5") -- Bokmål
word = mw.ustring.gsub(word, "é", "%%C3%%A9") -- Negligé
word = mw.ustring.gsub(word, "É", "%%C3%%89") -- Belle Époque
word = mw.ustring.gsub(word, "è", "%%C3%%A8") -- Hotelière
word = mw.ustring.gsub(word, "î", "%%C3%%AE")
word = mw.ustring.gsub(word, "í", "%%C3%%AD") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "%%C3%%B1") -- Cariñena
word = mw.ustring.gsub(word, "ô", "%%C3%%B4") -- Côte d’Ivoire
return word
end
function export.dictcom(word)
word = mw.ustring.gsub(word, " ", "%%20")
return word
end
function export.OEVWB(word)
word = mw.ustring.gsub(word, " ", "_")
word = mw.ustring.gsub(word, "ß", "ss")
return word
end
function export.unileipzig(word)
word = mw.ustring.gsub(word, "ä", "%%C3%%A4")
word = mw.ustring.gsub(word, "ö", "%%C3%%B6")
word = mw.ustring.gsub(word, "ü", "%%C3%%BC")
word = mw.ustring.gsub(word, "Ä", "%%C3%%84")
word = mw.ustring.gsub(word, "Ö", "%%C3%%96")
word = mw.ustring.gsub(word, "Ü", "%%C3%%9C")
word = mw.ustring.gsub(word, "ß", "%%C3%%9F")
word = mw.ustring.gsub(word, " ", "+")
word = mw.ustring.gsub(word, "à", "%%C3%%A0") -- à la carte
word = mw.ustring.gsub(word, "ã", "%%C3%%A3") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "å", "%%C3%%A5") -- Bokmål
word = mw.ustring.gsub(word, "é", "%%C3%%A9") -- Negligé
word = mw.ustring.gsub(word, "É", "%%C3%%89") -- Belle Époque
word = mw.ustring.gsub(word, "è", "%%C3%%A8") -- Hotelière
word = mw.ustring.gsub(word, "î", "%%C3%%AE")
word = mw.ustring.gsub(word, "í", "%%C3%%AD") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "%%C3%%B1") -- Cariñena
word = mw.ustring.gsub(word, "ô", "%%C3%%B4") -- Côte d’Ivoire
word = mw.ustring.gsub(word, "Œ", "%%C5%%92") -- Œuvre
word = mw.ustring.gsub(word, "’", "%%E2%%80%%99") -- Côte d’Ivoire
return word
end
function export.morfix(word)
word = mw.ustring.gsub(word, "ä", "%%C3%%A4")
word = mw.ustring.gsub(word, "ö", "%%C3%%B6")
word = mw.ustring.gsub(word, "ü", "%%C3%%BC")
word = mw.ustring.gsub(word, "Ä", "%%C3%%84")
word = mw.ustring.gsub(word, "Ö", "%%C3%%96")
word = mw.ustring.gsub(word, "Ü", "%%C3%%9C")
word = mw.ustring.gsub(word, "ß", "%%C3%%9F")
word = mw.ustring.gsub(word, " ", "%%20")
word = mw.ustring.gsub(word, "à", "%%C3%%A0") -- à la carte
word = mw.ustring.gsub(word, "ã", "%%C3%%A3") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "å", "%%C3%%A5") -- Bokmål
word = mw.ustring.gsub(word, "é", "%%C3%%A9") -- Negligé
word = mw.ustring.gsub(word, "É", "%%C3%%89") -- Belle Époque
word = mw.ustring.gsub(word, "è", "%%C3%%A8") -- Hotelière
word = mw.ustring.gsub(word, "î", "%%C3%%AE")
word = mw.ustring.gsub(word, "í", "%%C3%%AD") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "%%C3%%B1") -- Cariñena
word = mw.ustring.gsub(word, "ô", "%%C3%%B4") -- Côte d’Ivoire
return word
end
function export.Diri(word)
word = mw.ustring.gsub(word, "А", "%C0")
word = mw.ustring.gsub(word, "а", "%E0")
word = mw.ustring.gsub(word, "Б", "%C1")
word = mw.ustring.gsub(word, "б", "%E1")
word = mw.ustring.gsub(word, "В", "%C2")
word = mw.ustring.gsub(word, "в", "%E2")
word = mw.ustring.gsub(word, "Г", "%C3")
word = mw.ustring.gsub(word, "г", "%E3")
word = mw.ustring.gsub(word, "Д", "%C4")
word = mw.ustring.gsub(word, "д", "%E4")
word = mw.ustring.gsub(word, "Е", "%C5")
word = mw.ustring.gsub(word, "е", "%E5")
word = mw.ustring.gsub(word, "Ж", "%C6")
word = mw.ustring.gsub(word, "ж", "%E6")
word = mw.ustring.gsub(word, "З", "%C7")
word = mw.ustring.gsub(word, "з", "%E7")
word = mw.ustring.gsub(word, "И", "%C8")
word = mw.ustring.gsub(word, "и", "%E8")
word = mw.ustring.gsub(word, "Й", "%C9")
word = mw.ustring.gsub(word, "й", "%E9")
word = mw.ustring.gsub(word, "К", "%CA")
word = mw.ustring.gsub(word, "к", "%EA")
word = mw.ustring.gsub(word, "Л", "%CB")
word = mw.ustring.gsub(word, "л", "%EB")
word = mw.ustring.gsub(word, "М", "%CC")
word = mw.ustring.gsub(word, "м", "%EC")
word = mw.ustring.gsub(word, "Н", "%CD")
word = mw.ustring.gsub(word, "н", "%ED")
word = mw.ustring.gsub(word, "О", "%CE")
word = mw.ustring.gsub(word, "о", "%EE")
word = mw.ustring.gsub(word, "П", "%CF")
word = mw.ustring.gsub(word, "п", "%EF")
word = mw.ustring.gsub(word, "Р", "%D0")
word = mw.ustring.gsub(word, "р", "%F0")
word = mw.ustring.gsub(word, "С", "%D1")
word = mw.ustring.gsub(word, "с", "%F1")
word = mw.ustring.gsub(word, "Т", "%D2")
word = mw.ustring.gsub(word, "т", "%F2")
word = mw.ustring.gsub(word, "У", "%D3")
word = mw.ustring.gsub(word, "у", "%F3")
word = mw.ustring.gsub(word, "Ф", "%D4")
word = mw.ustring.gsub(word, "ф", "%F4")
word = mw.ustring.gsub(word, "Х", "%D5")
word = mw.ustring.gsub(word, "х", "%F5")
word = mw.ustring.gsub(word, "Ц", "%D6")
word = mw.ustring.gsub(word, "ц", "%F6")
word = mw.ustring.gsub(word, "Ч", "%D7")
word = mw.ustring.gsub(word, "ч", "%F7")
word = mw.ustring.gsub(word, "Ш", "%D8")
word = mw.ustring.gsub(word, "ш", "%F8")
word = mw.ustring.gsub(word, "Щ", "%D9")
word = mw.ustring.gsub(word, "щ", "%F9")
word = mw.ustring.gsub(word, "Ъ", "%DA")
word = mw.ustring.gsub(word, "ъ", "%FA")
word = mw.ustring.gsub(word, "Ы", "%DB")
word = mw.ustring.gsub(word, "ы", "%FB")
word = mw.ustring.gsub(word, "Ь", "%DC")
word = mw.ustring.gsub(word, "ь", "%FC")
word = mw.ustring.gsub(word, "Э", "%DD")
word = mw.ustring.gsub(word, "э", "%FD")
word = mw.ustring.gsub(word, "Ю", "%DE")
word = mw.ustring.gsub(word, "ю", "%FE")
word = mw.ustring.gsub(word, "Я", "%DF")
word = mw.ustring.gsub(word, "я", "%FF")
return word
end
function export.DRAG(word)
word = mw.ustring.gsub(word, "ä", "%%C3%%A4")
word = mw.ustring.gsub(word, "ö", "%%C3%%B6")
word = mw.ustring.gsub(word, "ü", "%%C3%%BC")
word = mw.ustring.gsub(word, "Ä", "%%C3%%84")
word = mw.ustring.gsub(word, "Ö", "%%C3%%96")
word = mw.ustring.gsub(word, "Ü", "%%C3%%9C")
word = mw.ustring.gsub(word, "ß", "%%C3%%9F")
word = mw.ustring.gsub(word, " ", "%%20")
word = mw.ustring.gsub(word, "à", "%%C3%%A0") -- à la carte
word = mw.ustring.gsub(word, "ã", "%%C3%%A3") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "å", "%%C3%%A5") -- Bokmål
word = mw.ustring.gsub(word, "é", "%%C3%%A9") -- Negligé
word = mw.ustring.gsub(word, "É", "%%C3%%89") -- Belle Époque
word = mw.ustring.gsub(word, "è", "%%C3%%A8") -- Hotelière
word = mw.ustring.gsub(word, "î", "%%C3%%AE")
word = mw.ustring.gsub(word, "í", "%%C3%%AD") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "%%C3%%B1") -- Cariñena
word = mw.ustring.gsub(word, "ô", "%%C3%%B4") -- Côte d’Ivoire
return word
end
function export.DPLG(word)
word = mw.ustring.gsub(word, "ä", "%%C3%%A4")
word = mw.ustring.gsub(word, "ö", "%%C3%%B6")
word = mw.ustring.gsub(word, "ü", "%%C3%%BC")
word = mw.ustring.gsub(word, "Ä", "%%C3%%84")
word = mw.ustring.gsub(word, "Ö", "%%C3%%96")
word = mw.ustring.gsub(word, "Ü", "%%C3%%9C")
word = mw.ustring.gsub(word, "ß", "%%C3%%9F")
word = mw.ustring.gsub(word, " ", "%%20")
word = mw.ustring.gsub(word, "à", "%%C3%%A0") -- à la carte
word = mw.ustring.gsub(word, "ã", "%%C3%%A3") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "å", "%%C3%%A5") -- Bokmål
word = mw.ustring.gsub(word, "é", "%%C3%%A9") -- Negligé
word = mw.ustring.gsub(word, "É", "%%C3%%89") -- Belle Époque
word = mw.ustring.gsub(word, "è", "%%C3%%A8") -- Hotelière
word = mw.ustring.gsub(word, "î", "%%C3%%AE")
word = mw.ustring.gsub(word, "í", "%%C3%%AD") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "%%C3%%B1") -- Cariñena
word = mw.ustring.gsub(word, "ô", "%%C3%%B4") -- Côte d’Ivoire
return word
end
function export.DdD(word)
word = mw.ustring.gsub(word, "ä", "%%C3%%A4")
word = mw.ustring.gsub(word, "ö", "%%C3%%B6")
word = mw.ustring.gsub(word, "ü", "%%C3%%BC")
word = mw.ustring.gsub(word, "Ä", "%%C3%%84")
word = mw.ustring.gsub(word, "Ö", "%%C3%%96")
word = mw.ustring.gsub(word, "Ü", "%%C3%%9C")
word = mw.ustring.gsub(word, "ß", "%%C3%%9F")
word = mw.ustring.gsub(word, " ", "%%20")
word = mw.ustring.gsub(word, "à", "%%C3%%A0") -- à la carte
word = mw.ustring.gsub(word, "ã", "%%C3%%A3") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "å", "%%C3%%A5") -- Bokmål
word = mw.ustring.gsub(word, "é", "%%C3%%A9") -- Negligé
word = mw.ustring.gsub(word, "É", "%%C3%%89") -- Belle Époque
word = mw.ustring.gsub(word, "è", "%%C3%%A8") -- Hotelière
word = mw.ustring.gsub(word, "î", "%%C3%%AE")
word = mw.ustring.gsub(word, "í", "%%C3%%AD") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "ñ", "%%C3%%B1") -- Cariñena
word = mw.ustring.gsub(word, "ô", "%%C3%%B4") -- Côte d’Ivoire
return word
end
function export.gabler(word)
word = mw.ustring.gsub(word, "ä", "ae")
word = mw.ustring.gsub(word, "ö", "oe")
word = mw.ustring.gsub(word, "ü", "ue")
word = mw.ustring.gsub(word, "Ä", "Ae")
word = mw.ustring.gsub(word, "Ö", "Oe")
word = mw.ustring.gsub(word, "Ü", "Ue")
word = mw.ustring.gsub(word, "ß", "ss")
word = mw.ustring.gsub(word, " ", "-")
return word
end
function export.meyers(word)
word = mw.ustring.gsub(word, "ä", "ae")
word = mw.ustring.gsub(word, "ö", "oe")
word = mw.ustring.gsub(word, "ü", "ue")
word = mw.ustring.gsub(word, "Ä", "Ae")
word = mw.ustring.gsub(word, "Ö", "Oe")
word = mw.ustring.gsub(word, "Ü", "Ue")
word = mw.ustring.gsub(word, "ß", "ss")
word = mw.ustring.gsub(word, " ", "_")
return word
end
function export.wissende(word)
word = mw.ustring.gsub(word, "ä", "ae")
word = mw.ustring.gsub(word, "ö", "oe")
word = mw.ustring.gsub(word, "ü", "ue")
word = mw.ustring.gsub(word, "Ä", "Ae")
word = mw.ustring.gsub(word, "Ö", "Oe")
word = mw.ustring.gsub(word, "Ü", "Ue")
word = mw.ustring.gsub(word, "ß", "ss")
word = mw.ustring.gsub(word, " ", "-")
word = mw.ustring.gsub(word, "à", "a") -- à la carte
word = mw.ustring.gsub(word, "ã", "a") -- São Tomé und Príncipe
word = mw.ustring.gsub(word, "é", "e") -- Negligé
word = mw.ustring.gsub(word, "É", "E") -- Belle Époque
word = mw.ustring.gsub(word, "î", "i") -- Maître de Plaisir
word = mw.ustring.gsub(word, "ñ", "n") -- El Niño
word = mw.ustring.gsub(word, "ô", "o") -- Côte d’Ivoire
word = mw.ustring.gsub(word, "Œ", "Oe") -- Œuvre
word = mw.ustring.gsub(word, "ū", "u")
word = mw.ustring.gsub(word, "’", "") -- d’accord
return word
end
function export.bindestr(word) -- Ref-Oxford, Ref-MacMillan, Ref-Dictionary
word = mw.ustring.gsub(word, " ", "-")
return word
end
function export.longman(word) --Ref-Longman
word = mw.ustring.gsub(word, " ", "-")
word = mw.ustring.gsub(word, "'", "-")
word = mw.ustring.gsub(word, "%&%#39%;", "-") --weil PAGENAME bei ' ein ' zurückgibt
word = mw.ustring.gsub(word, "’", "-") --falls ein engl. Lemma doch mal ein "’" enthält
return word
end
function export.space_to_underscore(word) -- Ref-Yogawiki
word = mw.ustring.gsub(word, " ", "_")
return word
end
function export.iso8859_1(word) -- UTF-8 nach ISO-8859-1 für: Ref-Orðabók Háskólans, Ref-IcelandicOnlineDictionary u.a.
-- 0xC0-CF: ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
word = mw.ustring.gsub(word, "À", "%%C0")
word = mw.ustring.gsub(word, "Á", "%%C1")
word = mw.ustring.gsub(word, "Â", "%%C2")
word = mw.ustring.gsub(word, "Ã", "%%C3")
word = mw.ustring.gsub(word, "Ä", "%%C4")
word = mw.ustring.gsub(word, "Å", "%%C5")
word = mw.ustring.gsub(word, "Æ", "%%C6")
word = mw.ustring.gsub(word, "Ç", "%%C7")
word = mw.ustring.gsub(word, "È", "%%C8")
word = mw.ustring.gsub(word, "É", "%%C9")
word = mw.ustring.gsub(word, "Ê", "%%CA")
word = mw.ustring.gsub(word, "Ë", "%%CB")
word = mw.ustring.gsub(word, "Ì", "%%CC")
word = mw.ustring.gsub(word, "Í", "%%CD")
word = mw.ustring.gsub(word, "Î", "%%CE")
word = mw.ustring.gsub(word, "Ï", "%%CF")
-- 0xD0-DF: ÐÑÒÓÔÕÖ ØÙÚÛÜÝÞß
word = mw.ustring.gsub(word, "Ð", "%%D0")
word = mw.ustring.gsub(word, "Ñ", "%%D1")
word = mw.ustring.gsub(word, "Ò", "%%D2")
word = mw.ustring.gsub(word, "Ó", "%%D3")
word = mw.ustring.gsub(word, "Ô", "%%D4")
word = mw.ustring.gsub(word, "Õ", "%%D5")
word = mw.ustring.gsub(word, "Ö", "%%D6")
word = mw.ustring.gsub(word, "Ø", "%%D8")
word = mw.ustring.gsub(word, "Ù", "%%D9")
word = mw.ustring.gsub(word, "Ú", "%%DA")
word = mw.ustring.gsub(word, "Û", "%%DB")
word = mw.ustring.gsub(word, "Ü", "%%DC")
word = mw.ustring.gsub(word, "Ý", "%%DD")
word = mw.ustring.gsub(word, "Þ", "%%DE")
word = mw.ustring.gsub(word, "ß", "%%DF")
-- 0xE0-EF: àáâãäåæçèéêëìíîï
word = mw.ustring.gsub(word, "à", "%%E0")
word = mw.ustring.gsub(word, "á", "%%E1")
word = mw.ustring.gsub(word, "â", "%%E2")
word = mw.ustring.gsub(word, "ã", "%%E3")
word = mw.ustring.gsub(word, "ä", "%%E4")
word = mw.ustring.gsub(word, "å", "%%E5")
word = mw.ustring.gsub(word, "æ", "%%E6")
word = mw.ustring.gsub(word, "ç", "%%E7")
word = mw.ustring.gsub(word, "è", "%%E8")
word = mw.ustring.gsub(word, "é", "%%E9")
word = mw.ustring.gsub(word, "ê", "%%EA")
word = mw.ustring.gsub(word, "ë", "%%EB")
word = mw.ustring.gsub(word, "ì", "%%EC")
word = mw.ustring.gsub(word, "í", "%%ED")
word = mw.ustring.gsub(word, "î", "%%EE")
word = mw.ustring.gsub(word, "ï", "%%EF")
-- 0xF0-FF: ðñòóôõö øùúûüýþÿ
word = mw.ustring.gsub(word, "ð", "%%F0")
word = mw.ustring.gsub(word, "ñ", "%%F1")
word = mw.ustring.gsub(word, "ò", "%%F2")
word = mw.ustring.gsub(word, "ó", "%%F3")
word = mw.ustring.gsub(word, "ô", "%%F4")
word = mw.ustring.gsub(word, "õ", "%%F5")
word = mw.ustring.gsub(word, "ö", "%%F6")
word = mw.ustring.gsub(word, "ø", "%%F8")
word = mw.ustring.gsub(word, "ù", "%%F9")
word = mw.ustring.gsub(word, "ú", "%%FA")
word = mw.ustring.gsub(word, "û", "%%FB")
word = mw.ustring.gsub(word, "ü", "%%FC")
word = mw.ustring.gsub(word, "ý", "%%FD")
word = mw.ustring.gsub(word, "þ", "%%FE")
word = mw.ustring.gsub(word, "ÿ", "%%FF")
return word
end
function export.entferne_bindestr(word)
word = mw.ustring.gsub(word, "-", "")
return word
end
function export.entferne_betonungszeichen(word) -- Ersetzt betonte Vokalen durch unbetonte. Zurzeit nur für die kyrillische Schrift.
word = mw.ustring.gsub(word, "а́", "а")
word = mw.ustring.gsub(word, "е́", "е")
word = mw.ustring.gsub(word, "и́", "и")
word = mw.ustring.gsub(word, "о́", "о")
word = mw.ustring.gsub(word, "у́", "у")
word = mw.ustring.gsub(word, "ы́", "ы")
word = mw.ustring.gsub(word, "э́", "э")
word = mw.ustring.gsub(word, "ю́", "ю")
word = mw.ustring.gsub(word, "я́", "я")
word = mw.ustring.gsub(word, "А́", "А")
word = mw.ustring.gsub(word, "Е́", "Е")
word = mw.ustring.gsub(word, "И́", "И")
word = mw.ustring.gsub(word, "О́", "О")
word = mw.ustring.gsub(word, "У́", "У")
word = mw.ustring.gsub(word, "Ы́", "Ы")
word = mw.ustring.gsub(word, "Э́", "Э")
word = mw.ustring.gsub(word, "Ю́", "Ю")
word = mw.ustring.gsub(word, "Я́", "Я")
return word
end
return export