« Module:clé de tri » : différence entre les versions

Contenu supprimé Contenu ajouté
test
m Annulation des modifications 24178261 de TAKASUGI Shinji (discussion)
Ligne 23 :
titre = mw.ustring.gsub(titre, "ĵ", "jx")
titre = mw.ustring.gsub(titre, "ŝ", "sx")
titre = mw.ustring.gsub(titre, "ŭ", "u⿕u�")
 
elseif langue == 'es' then
titre = mw.ustring.gsub(titre, "ñ", "n⿕n�")
 
elseif langue == 'fi' or langue == 'sv' then
titre = mw.ustring.gsub(titre, "å", "z⿕z�")
titre = mw.ustring.gsub(titre, "ä", "z⿕⿕z��")
titre = mw.ustring.gsub(titre, "ö", "z⿕⿕⿕z���")
 
elseif langue == 'fr' then
Ligne 38 :
 
elseif langue == 'os' then
titre = mw.ustring.gsub(titre, "ё", "е⿕е�")
titre = mw.ustring.gsub(titre, "ӕ", "а⿕а�")
 
elseif langue == 'sl' then
titre = mw.ustring.gsub(titre, "č", "c⿕c�")
titre = mw.ustring.gsub(titre, "š", "s⿕s�")
titre = mw.ustring.gsub(titre, "ž", "z⿕z�")
 
elseif langue == 'vi' then
titre = mw.ustring.gsub(titre, "ả", "a⿕a�")
titre = mw.ustring.gsub(titre, "ă", "a⿕a�")
titre = mw.ustring.gsub(titre, "ắ", "a⿕a�")
titre = mw.ustring.gsub(titre, "ặ", "a⿕a�")
titre = mw.ustring.gsub(titre, "ẳ", "a⿕a�")
titre = mw.ustring.gsub(titre, "ằ", "a⿕a�")
titre = mw.ustring.gsub(titre, "â", "a⿕⿕a��")
titre = mw.ustring.gsub(titre, "ầ", "a⿕⿕a��")
titre = mw.ustring.gsub(titre, "ậ", "a⿕⿕a��")
titre = mw.ustring.gsub(titre, "ấ", "a⿕⿕a��")
titre = mw.ustring.gsub(titre, "ẩ", "a⿕⿕a��")
titre = mw.ustring.gsub(titre, "đ", "d⿕d�")
titre = mw.ustring.gsub(titre, "ẹ", "e")
titre = mw.ustring.gsub(titre, "ê", "e⿕e�")
titre = mw.ustring.gsub(titre, "ệ", "e⿕e�")
titre = mw.ustring.gsub(titre, "ễ", "e⿕e�")
titre = mw.ustring.gsub(titre, "ề", "e⿕e�")
titre = mw.ustring.gsub(titre, "ể", "e⿕e�")
titre = mw.ustring.gsub(titre, "ị", "i")
titre = mw.ustring.gsub(titre, "ì", "i")
Ligne 73 :
titre = mw.ustring.gsub(titre, "ọ", "o")
titre = mw.ustring.gsub(titre, "ỏ", "o")
titre = mw.ustring.gsub(titre, "ô", "o⿕o�")
titre = mw.ustring.gsub(titre, "ơ", "o⿕⿕o��")
titre = mw.ustring.gsub(titre, "ộ", "o⿕o�")
titre = mw.ustring.gsub(titre, "ố", "o⿕o�")
titre = mw.ustring.gsub(titre, "ồ", "o⿕o�")
titre = mw.ustring.gsub(titre, "ổ", "o⿕o�")
titre = mw.ustring.gsub(titre, "ỗ", "o⿕o�")
titre = mw.ustring.gsub(titre, "ỡ", "o⿕⿕o��")
titre = mw.ustring.gsub(titre, "ở", "o⿕⿕o��")
titre = mw.ustring.gsub(titre, "ớ", "o⿕⿕o��")
titre = mw.ustring.gsub(titre, "ờ", "o⿕⿕o��")
 
titre = mw.ustring.gsub(titre, "ụ", "u")
titre = mw.ustring.gsub(titre, "ủ", "u")
titre = mw.ustring.gsub(titre, "ư", "u⿕u�")
titre = mw.ustring.gsub(titre, "ử", "u⿕u�")
titre = mw.ustring.gsub(titre, "ự", "u⿕u�")
titre = mw.ustring.gsub(titre, "ừ", "u⿕u�")
titre = mw.ustring.gsub(titre, "ữ", "u⿕u�")
 
end
Ligne 99 :
if nfd == nil then return nil end
-- Enlève les caractères qui ne sont ni des lettres, ni des chiffres, ni le signe
local noacc = mw.ustring.gsub(nfd, "[^%w⿕w� ]", "")
return noacc
end