Browse Source

Exponents m2 and m3 also available in English.

Some minor typos corrected.
No ?> at end of file
svn/root/tags/v1.5.2
jack@jack31.net 5 years ago
parent
commit
62651bba33
  1. 12
      orthotypo_fonctions.php
  2. 2
      paquet.xml

12
orthotypo_fonctions.php

@ -217,7 +217,7 @@ function orthotypo_guillemets_rempl($texte){
$texte = preg_replace_callback('/(<[^>]+"[^>]*>)/Ums', 'orthotypo_guillemets_echappe_balises_callback', $texte);
}
// si le texte ne contient pas de guill droit
// si le texte ne contient pas de guillemets droits
// ou s'il contient deja des guillemets élaborés
// on ne touche pas
if (strpos($texte, '"')!==false
@ -307,8 +307,10 @@ function orthotypo_exposants_en($texte){
',(?<=2)(nd)\b,',
',(?<=3)(rd)\b,',
',(?<=\d)(th)\b,',
',(?<=\m)(2)\b,',
',(?<=\m)(3)\b,',
), array(
_TYPO_sup, _TYPO_sup, _TYPO_sup, _TYPO_sup,
_TYPO_sup, _TYPO_sup, _TYPO_sup, _TYPO_sup, _TYPO_sup, _TYPO_sup,
));
}
return preg_replace($typo[0], $typo[1], $texte);
@ -476,7 +478,7 @@ function orthotypo_caps_rempl($texte){
if (is_null($cap_finder)){
$cap_finder = "/(
(\b[A-Z\d]* # Group 2: Any amount of caps and digits
[A-Z]\d*[A-Z] # A cap string much at least include two caps (but they can have digits between them)
[A-Z]\d*[A-Z] # A cap string must at least include two caps (but they can have digits between them)
[A-Z\d]*\b) # Any amount of caps and digits
| (\b[A-Z]+\.\s? # OR: Group 3: Some caps, followed by a '.' and an optional space
(?:[A-Z]+\.\s?)+) # Followed by the same thing at least once more
@ -545,6 +547,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');
}
?>
}

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="orthotypo"
categorie="edition"
version="1.4.3"
version="1.4.4"
etat="stable"
compatibilite="[3.0.0;3.1.*]"
logo="prive/themes/spip/images/orthotypo-32.png"

Loading…
Cancel
Save