diff --git a/orthotypo_fonctions.php b/orthotypo_fonctions.php index c3d834f..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; } @@ -290,7 +292,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); @@ -562,7 +564,18 @@ 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'); -} \ No newline at end of file +}