« Module:clé de tri » : différence entre les versions
Contenu supprimé Contenu ajouté
Suite au changements de la collation en uca-default |
|||
Ligne 23 :
titre = mw.ustring.gsub(titre, "ĵ", "jx")
titre = mw.ustring.gsub(titre, "ŝ", "sx")
titre = mw.ustring.gsub(titre, "ŭ", "
elseif langue == 'es' then
titre = mw.ustring.gsub(titre, "ñ", "
elseif langue == 'fi' or langue == 'sv' then
titre = mw.ustring.gsub(titre, "å", "
titre = mw.ustring.gsub(titre, "ä", "
titre = mw.ustring.gsub(titre, "ö", "
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, "č", "
titre = mw.ustring.gsub(titre, "š", "
titre = mw.ustring.gsub(titre, "ž", "
elseif langue == 'vi' then
titre = mw.ustring.gsub(titre, "ả", "
titre = mw.ustring.gsub(titre, "ă", "
titre = mw.ustring.gsub(titre, "ắ", "
titre = mw.ustring.gsub(titre, "ặ", "
titre = mw.ustring.gsub(titre, "ẳ", "
titre = mw.ustring.gsub(titre, "ằ", "
titre = mw.ustring.gsub(titre, "â", "
titre = mw.ustring.gsub(titre, "ầ", "
titre = mw.ustring.gsub(titre, "ậ", "
titre = mw.ustring.gsub(titre, "ấ", "
titre = mw.ustring.gsub(titre, "ẩ", "
titre = mw.ustring.gsub(titre, "đ", "
titre = mw.ustring.gsub(titre, "ẹ", "e")
titre = mw.ustring.gsub(titre, "ê", "
titre = mw.ustring.gsub(titre, "ệ", "
titre = mw.ustring.gsub(titre, "ễ", "
titre = mw.ustring.gsub(titre, "ề", "
titre = mw.ustring.gsub(titre, "ể", "
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, "ô", "
titre = mw.ustring.gsub(titre, "ơ", "
titre = mw.ustring.gsub(titre, "ộ", "
titre = mw.ustring.gsub(titre, "ố", "
titre = mw.ustring.gsub(titre, "ồ", "
titre = mw.ustring.gsub(titre, "ổ", "
titre = mw.ustring.gsub(titre, "ỗ", "
titre = mw.ustring.gsub(titre, "ỡ", "
titre = mw.ustring.gsub(titre, "ở", "
titre = mw.ustring.gsub(titre, "ớ", "
titre = mw.ustring.gsub(titre, "ờ", "
titre = mw.ustring.gsub(titre, "ụ", "u")
titre = mw.ustring.gsub(titre, "ủ", "u")
titre = mw.ustring.gsub(titre, "ư", "
titre = mw.ustring.gsub(titre, "ử", "
titre = mw.ustring.gsub(titre, "ự", "
titre = mw.ustring.gsub(titre, "ừ", "
titre = mw.ustring.gsub(titre, "ữ", "
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, "[^%
return noacc
end
|