From 332304fcd2eb03eb955c6c968af0786d321853a0 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sat, 25 Sep 2004 20:27:25 +0000 Subject: [PATCH] =?UTF-8?q?rep=C3=A9rer=20les=20mots=20typographi=C3=A9s?= =?UTF-8?q?=20(en=20pratique,=20"j'av=C3=A9"=20devient=20"j*av=C3=A9"=20av?= =?UTF-8?q?ec=20le=20culry-quote=20et=20=C3=A9chappe=20donc=20=C3=A0=20la?= =?UTF-8?q?=20regexp)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/lab_ortho.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ecrire/lab_ortho.php b/ecrire/lab_ortho.php index 8c9f2ca8da..101797e9bb 100644 --- a/ecrire/lab_ortho.php +++ b/ecrire/lab_ortho.php @@ -659,6 +659,7 @@ function souligner_ortho($texte, $lang, $ortho_result) { $t0 = explode(" ", microtime()); $delim = '[^-\''.pcre_lettres_unicode().']'; foreach ($mauvais as $mot => $suggest) { + $mot = unicode_to_utf_8(typo($mot)); $pattern = ",$delim".$mot."$delim,us"; // Recuperer les occurences du mot dans le texte if (preg_match_all($pattern, $texte, $regs, PREG_SET_ORDER)) { -- GitLab