X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Ftextwheel%2Ftypographie%2Ffr.php;fp=www%2Fplugins-dist%2Ftextwheel%2Ftypographie%2Ffr.php;h=6075068832a5c78951bdd449813bb1a66b90dc97;hp=715765bf1311ad177d826d8d834a5dece0ef088f;hb=b97874b04ea8ca43d21b7ef7309feff8ef0e4a07;hpb=92c7d7f7bccb9629bb7c81b9582b56b61c3f8ec9 diff --git a/www/plugins-dist/textwheel/typographie/fr.php b/www/plugins-dist/textwheel/typographie/fr.php index 715765b..6075068 100644 --- a/www/plugins-dist/textwheel/typographie/fr.php +++ b/www/plugins-dist/textwheel/typographie/fr.php @@ -63,7 +63,7 @@ function typographie_fr($t) { /* 2 ; ajout d'insecable */ $t = preg_replace('/»| --?,|(?::| %)(?:\W|$)/S', '~$0', $t); - // {È} guillemet en italiques : ne pas doubler l'insecable + // {»} guillemet en italiques : ne pas doubler l'insecable $t = str_replace('~{~', '~{', $t); $t = str_replace('~}~', '}~', $t); @@ -87,7 +87,7 @@ function typographie_fr($t) { $t = str_replace($pro, '', $t); } - $t = preg_replace(',(https?|ftp|mailto)~((://[^"\'\s\[\]\}\)<>]+)~([?]))?,S', '$1$3$4', $t); + $t = preg_replace(',(' ._PROTOCOLES_STD . ')~((://[^"\'\s\[\]\}\)<>]+)~([?]))?,S', '$1$3$4', $t); $t = str_replace('~', ' ', $t); return $t;