Revision: 9338
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9338&view=rev
Author:   dominikoeo
Date:     2013-02-09 11:08:57 +0000 (Sat, 09 Feb 2013)
Log Message:
-----------
[fr] added typographical rule for space between
     numbers and units (10kg ?\226?\134?\146 10?\194?\160kg) and
     percentage (8% ?\226?\134?\146 8?\194?\160%).

Modified Paths:
--------------
    
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml

Modified: 
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml
===================================================================
--- 
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml
        2013-02-09 10:56:55 UTC (rev 9337)
+++ 
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml
        2013-02-09 11:08:57 UTC (rev 9338)
@@ -20530,6 +20530,22 @@
     </rule>
   </category>
   <category name="Typographie">
+    <rule id="ESPACE_UNITES" name="espace insécable avant les unités (kg, cm, 
…)">
+      <pattern>
+        <token regexp="yes">\d+([kcmµn]?m|k?g|°C)</token>
+      </pattern>
+      <message>Il faut utiliser une espace insécable avant l’unité. 
Voulez-vous écrire <suggestion><match no="1" regexp_match="(\d+)(.*)" 
regexp_replace="$1 $2"/></suggestion></message>
+      <example type="incorrect" correction="80 kg">Je pèse 
<marker>80kg</marker>.</example>
+      <example type="correct">Je pèse <marker>80 kg</marker>.</example>
+    </rule>
+    <rule id="ESPACE_POURCENT" name="espace insécable avant %">
+      <pattern>
+        <token regexp="yes">\d+%</token>
+      </pattern>
+      <message>Il faut utiliser une espace insécable avant le symbole des 
pourcentages. Voulez-vous écrire <suggestion><match no="1" 
regexp_match="(\d+)%" regexp_replace="$1 %"/></suggestion></message>
+      <example type="incorrect" correction="8 %">Une croissance de 
<marker>8%</marker>.</example>
+      <example type="correct">Une croissance de <marker>8 %</marker>.</example>
+    </rule>
     <rule default="off" id="ALORS" name="alors (sans virgule après)">
       <pattern>
         <marker>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to