View source for Module:also
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local export = {}
local m_links = require("Module:links")
local getArgs = require('Module:Arguments').getArgs
function export.codify(text) --removes diacritics and non-alphanumeric characters, converts to upper case
text = mw.ustring.toNFC(text)
text = mw.ustring.gsub(text,"[ÁÀÂÄǍĂĀÃÅĄ]","A")
text = mw.ustring.gsub(text,"[ÆǢǼ]","Ae")
text = mw.ustring.gsub(text,"[ĆĊĈČÇ]","C")
text = mw.ustring.gsub(text,"[ĎĐḌÐḐ]","D")
text = mw.ustring.gsub(text,"[ÉÈĖÊËĚĔĒẼĘẸƐƎƏỀỂỄẾỆ]","E")
text = mw.ustring.gsub(text,"[ĠĜĞĢ]","G")
text = mw.ustring.gsub(text,"[ĤĦḤ]","H")
text = mw.ustring.gsub(text,"[İÍÌÎÏǏĬĪĨĮỊ]","I")
text = mw.ustring.gsub(text,"[Ĵ]","J")
text = mw.ustring.gsub(text,"[Ķ]","K")
text = mw.ustring.gsub(text,"[ĹĿĽĻŁḶḸ]","L")
text = mw.ustring.gsub(text,"[Ṃ]","M")
text = mw.ustring.gsub(text,"[ŃŇÑŅṆŊ]","N")
000
1:0
Templates used on this page:
Return to Module:also.