]> gitweb.pimeys.fr Git - bots/deconnaisseur.git/commitdiff
Une jolie apostrophe
authorVincent Le Gallic <legallic@crans.org>
Mon, 21 May 2012 16:15:10 +0000 (18:15 +0200)
committerVincent Le Gallic <legallic@crans.org>
Mon, 21 May 2012 16:15:10 +0000 (18:15 +0200)
remplace_accents.py

index 85ba24e473fa9c6e9bd6c20434ccfabdc4af88bb..440a9c061ae3779e63475ae36c4fc8f390dae884 100644 (file)
@@ -6,6 +6,7 @@
 
 def remplace_accents(chaine):
     remplacements = {
+                u"’":u"'",
                 u"á":u"a", u"à":u"a", u"â":u"a", u"ä":u"a",
                 u"Á":u"A", u"À":u"A", u"Â":u"A", u"Ä":u"A",
                 u"é":u"e", u"è":u"e", u"ê":u"e", u"ë":u"e",