From cd69cbabf9d1f74671885a8aaaf058319d9bf7e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= Date: Sat, 5 Dec 2020 18:12:52 +0100 Subject: [PATCH 1/2] retour ligne --- orthotypo_fonctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orthotypo_fonctions.php b/orthotypo_fonctions.php index c3d834f..1458ffb 100644 --- a/orthotypo_fonctions.php +++ b/orthotypo_fonctions.php @@ -290,7 +290,7 @@ function orthotypo_espaces_fines_post_typo($t='') { $nbsp, ), $t); - + // CKEditor double les fines chaque fois que l'on passe en mode source puis retour while (strpos($t, $fine.$fine) !== false) { $t = str_replace($fine.$fine, $fine, $t); @@ -565,4 +565,4 @@ function orthotypo_corrections_rempl($texte) { // Fonctions de traitement sur #TEXTE function orthotypo_corrections_pre_propre($texte) { return orthotypo_filtre_texte_echappe($texte,'orthotypo_corrections_rempl'); -} \ No newline at end of file +} -- 2.20.1 From a889fa7aef37c66d5a7dc6d224389020236e39fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= Date: Sat, 5 Dec 2020 18:14:06 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Encapsuler=20les=20points=20m=C3=A9dians=20?= =?UTF-8?q?entre=20.=20Sur=20les=20pratiques?= =?UTF-8?q?=20d'=C3=A9critures=20inclusives=20et=20accessibles,=20lire=20h?= =?UTF-8?q?ttps://legothequeabf.wordpress.com/2017/11/07/recommandations-p?= =?UTF-8?q?our-une-ecriture-inclusive-et-accessible/=20Fix=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orthotypo_fonctions.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/orthotypo_fonctions.php b/orthotypo_fonctions.php index 1458ffb..2d3556a 100644 --- a/orthotypo_fonctions.php +++ b/orthotypo_fonctions.php @@ -41,6 +41,8 @@ function orthotypo_post_typo($texte){ $texte = orthotypo_caps_post_typo($texte); if (!isset($config['fines']) OR $config['fines']) $texte = orthotypo_espaces_fines_post_typo($texte); + // point median accessible, dans tous les cas + $texte = orthotypo_points_medians_accessibles($texte); return $texte; } @@ -562,6 +564,17 @@ function orthotypo_corrections_rempl($texte) { return $texte; } +/** + * Point médian encapsulé dans span aria-hidden='true' + * Voir https://legothequeabf.wordpress.com/2017/11/07/recommandations-pour-une-ecriture-inclusive-et-accessible/ + * @param str $texte; + * @return str $texte. +**/ +function orthotypo_points_medians_accessibles($texte) { + $texte = str_replace('·','·', $texte); + return $texte; +} + // Fonctions de traitement sur #TEXTE function orthotypo_corrections_pre_propre($texte) { return orthotypo_filtre_texte_echappe($texte,'orthotypo_corrections_rempl'); -- 2.20.1