Revision: 9022
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9022&view=rev
Author:   dominikoeo
Date:     2013-01-14 20:19:49 +0000 (Mon, 14 Jan 2013)
Log Message:
-----------
[fr] added rule to detect correct typography for
     abbreviated hours:
     *Il est 20h30.* -> "Il est 20?\194?\160h?\194?\16030."
     See https://fr.wikipedia.org/wiki/Heure#Typographie

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

Modified: 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/fr/grammar.xml
===================================================================
--- 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/fr/grammar.xml    
    2013-01-14 19:47:52 UTC (rev 9021)
+++ 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/fr/grammar.xml    
    2013-01-14 20:19:49 UTC (rev 9022)
@@ -21426,6 +21426,22 @@
         <example type="correct">J’ai un chien, un chat, un lapin, 
etc.</example>
       </rule>
     </rulegroup>
+    <rulegroup id="HEURES" name="heures 20h30 → 20 h 30">
+      <rule>
+        <pattern><token 
regexp="yes">(?:1?\d|2[0-3])h(?:[0-5]?\d)</token></pattern>
+        <message>La lettre h doit être espacée das les heures abrégées. 
Voulez-vous écrire <suggestion><match no="1" regexp_match="(\d+)h(\d+)" 
regexp_replace="$1 h $2"/></suggestion>?</message>
+        <url>https://fr.wikipedia.org/wiki/Heure#Typographie</url>
+        <example type="incorrect" correction="20 h 30">Il est 
<marker>20h30</marker>.</example>
+        <example type="correct">Il est <marker>20 h 30</marker>.</example>
+      </rule>
+      <rule>
+        <pattern><token regexp="yes">(?:1?\d|2[0-3])h</token></pattern>
+        <message>La lettre h doit être espacée das les heures abrégées. 
Voulez-vous écrire <suggestion><match no="1" regexp_match="(\d+)h" 
regexp_replace="$1 h"/></suggestion>?</message>
+        <url>https://fr.wikipedia.org/wiki/Heure#Typographie</url>
+        <example type="incorrect" correction="20 h">Il est 
<marker>20h</marker>.</example>
+        <example type="correct">Il est <marker>20 h</marker>.</example>
+      </rule>
+    </rulegroup>
   </category>
   <category name="Archaïsmes (tours vieillis, anciens et vieux)">
     <!--The following rules were created by Hugo Voisard-->

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


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to