X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Ftextwheel%2Ftypographie%2Ffr.php;h=715765bf1311ad177d826d8d834a5dece0ef088f;hp=4de11e3a6fb3ed7df82340777e193b0839a328df;hb=f08ec3a19775a7a173534b2d5cb7e9920b6253a6;hpb=58a2baa86ad2e12b4ff338d137f826a0a10ccbd7 diff --git a/www/plugins-dist/textwheel/typographie/fr.php b/www/plugins-dist/textwheel/typographie/fr.php index 4de11e3a..715765bf 100644 --- a/www/plugins-dist/textwheel/typographie/fr.php +++ b/www/plugins-dist/textwheel/typographie/fr.php @@ -60,8 +60,13 @@ function typographie_fr($t) { $t = preg_replace(',(&#?[0-9a-z]+)~;,iS', '$1;', $t); } - /* 2 */ - $t = preg_replace('/»| --?,|(?::(?!:)| %)(?:\W|$)/S', '~$0', $t); + /* 2 ; ajout d'insecable */ + $t = preg_replace('/»| --?,|(?::| %)(?:\W|$)/S', '~$0', $t); + + // {È} guillemet en italiques : ne pas doubler l'insecable + $t = str_replace('~{~', '~{', $t); + $t = str_replace('~}~', '}~', $t); + /* 3 */ $t = preg_replace('/[!?][!?\.]*/S', "$pro~$0", $t, -1, $c);