From 88a7efb5177fc477cc0765f07825705e0e074d5f Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Thu, 1 May 2003 20:26:02 +0000 Subject: [PATCH] =?UTF-8?q?petite=20am=C3=A9lioration=20de=20la=20typo=20f?= =?UTF-8?q?ran=C3=A7aise=20:=20on=20peut=20conserver=20un=20:=20coll=C3=A9?= =?UTF-8?q?=20s'il=20est=20suivi=20par=20un=20chiffre=20(par=20exemple=20p?= =?UTF-8?q?our=20indiquer=20que=20mon=20magn=C3=A9toscope=20clignote=20sur?= =?UTF-8?q?=2012:00)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc_texte.php3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3 index 2828b041d8..66a7ecd36b 100644 --- a/ecrire/inc_texte.php3 +++ b/ecrire/inc_texte.php3 @@ -278,13 +278,13 @@ function typo_fr($letexte) { $cherche1 = array( /* 2 */ '/((^|[^\#0-9a-zA-Z\&])[\#0-9a-zA-Z]*)\;/', - /* 3 */ '/([:!?]|»| -,)/', - /* 4 */ '/(«|(M(M?\.|mes?|r\.?)|[MnN]°) )/' + /* 3 */ '/»|[!?]| -,|:([^0-9]|$)/', + /* 4 */ '/«|(M(M?\.|mes?|r\.?)|[MnN]°) /' ); $remplace1 = array( /* 2 */ '\1~;', - /* 3 */ '~\1', - /* 4 */ '\1~' + /* 3 */ '~\0', + /* 4 */ '\0~' ); $letexte = ereg_remplace($cherche1, $remplace1, $letexte); -- GitLab