From 3b2831ec83a7951986cd496ef407ca1ec16866d3 Mon Sep 17 00:00:00 2001 From: "cedric@yterium.com" <> Date: Tue, 29 Jan 2013 13:13:23 +0000 Subject: [PATCH] oups coquille qui mangeait les Mme et Mlle --- orthotypo_fonctions.php | 7 ++++--- paquet.xml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/orthotypo_fonctions.php b/orthotypo_fonctions.php index c353f4c..2abf6d5 100644 --- a/orthotypo_fonctions.php +++ b/orthotypo_fonctions.php @@ -260,12 +260,13 @@ function orthotypo_exposants_fr($texte){ $typo = array( // Mlle(s), Mme(s) et erreurs Melle(s) // Mme(s) et Mgr - '/\b(M)(?:(gr)|(mes?)|(?:e?(lles?)))\b/u' => _TYPO_sup2, + '/\bM(gr|mes?)\b/u' => 'M'._TYPO_sup, + '/\bMe?(lles?)\b/u' => 'M'._TYPO_sup, // Dr, Pr suivis d'un espace d'un point ou d'un tiret - '/(?<=\b[DP])(r)(?=[\s\.-])/u' => _TYPO_sup, + '/\b([DP])(r)(?=[\s\.-])/u' => _TYPO_sup2, // m≤ - '/\bm≤\b/' => 'm2', + '/\bm≤\b/' => 'm'._TYPO_class.'2', // m2, m3 '/\bm([23])\b/u' => 'm'._TYPO_sup, diff --git a/paquet.xml b/paquet.xml index 8a0ddae..212fef3 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@