Module:ISO 3166: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Working deaccenting) |
mNo edit summary |
||
Line 17: | Line 17: | ||
text = string.gsub(text,"^THE ","") --Remove definite article |
text = string.gsub(text,"^THE ","") --Remove definite article |
||
text = string.gsub(text,"[%s%-%,%.%(%)%/%\']","") --Remove spacing and punctuation |
text = string.gsub(text,"[%s%-%,%.%(%)%/%\']","") --Remove spacing and punctuation |
||
local accents = {["À"]="A",["Á"]="A",["Â"]="A",["Ã"]="A",["Ä"]="A",["Å"]="A",[" |
local accents = {["À"]="A",["Á"]="A",["Â"]="A",["Ã"]="A",["Ä"]="A",["Å"]="A",["Ç"]="C",["È"]="E",["É"]="E", |
||
["Ê"]="E",["Ë"]="E",["Ì"]="I",["Í"]="I",["Î"]="I",["Ï"]="I",["Ñ"]="N",["Ò"]="O",["Ó"]="O", |
["Ê"]="E",["Ë"]="E",["Ì"]="I",["Í"]="I",["Î"]="I",["Ï"]="I",["Ñ"]="N",["Ò"]="O",["Ó"]="O", |
||
["Ô"]="O",["Õ"]="O",["Ö"]="O",["Ø"]="O",["Ù"]="U",["Ú"]="U",["Û"]="U",["Ü"]="U",["Ý"]="Y"} |
["Ô"]="O",["Õ"]="O",["Ö"]="O",["Ø"]="O",["Ù"]="U",["Ú"]="U",["Û"]="U",["Ü"]="U",["Ý"]="Y"} |