Revision: 9330
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9330&view=rev
Author:   dnaber
Date:     2013-02-08 09:59:11 +0000 (Fri, 08 Feb 2013)
Log Message:
-----------
[ro] fix some test warnings caused by wrong regex

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

Modified: 
trunk/languagetool/languagetool-language-modules/ro/src/main/resources/org/languagetool/rules/ro/grammar.xml
===================================================================
--- 
trunk/languagetool/languagetool-language-modules/ro/src/main/resources/org/languagetool/rules/ro/grammar.xml
        2013-02-08 09:47:28 UTC (rev 9329)
+++ 
trunk/languagetool/languagetool-language-modules/ro/src/main/resources/org/languagetool/rules/ro/grammar.xml
        2013-02-08 09:59:11 UTC (rev 9330)
@@ -31,7 +31,7 @@
        -->
 <!DOCTYPE rules [
         <!ENTITY LunileAnului 
"ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie|ian|feb|mart|apr|iun|iul|aug|sept|oct|nov|dec">
-        <!ENTITY UnIn "[u|î]n">
+        <!ENTITY UnIn "[uî]n">
         ]>
 <rules lang="ro" xsi:noNamespaceSchemaLocation="../rules.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
     <phrases>
@@ -1155,7 +1155,7 @@
             <pattern>
                 <token>dat</token>
                 <token>fiind</token>
-                <token postag="S[m|n]p..a...." postag_regexp="yes"><exception 
postag="S[m|n]s..a...." postag_regexp="yes"></exception></token>
+                <token postag="S[mn]p..a...." postag_regexp="yes"><exception 
postag="S[mn]s..a...." postag_regexp="yes"></exception></token>
             </pattern>
             <message>Ați dorit să scrieți <suggestion>dați fiind 
\3</suggestion>?</message>
             <short>Dezacord gramatical</short>
@@ -1226,7 +1226,7 @@
             <pattern>
                 <token>celor</token>
                 <token>mai</token>
-                <token postag_regexp="yes" postag="A[m|f]p3ga0000"><exception 
negate_pos="yes" postag_regexp="yes" 
postag="A[m|f]p3ga0000"></exception></token>
+                <token postag_regexp="yes" postag="A[mf]p3ga0000"><exception 
negate_pos="yes" postag_regexp="yes" postag="A[mf]p3ga0000"></exception></token>
             </pattern>
             <message>Cazul genitiv sau dativ trebuie să fie marcat o singură 
dată: <suggestion><match no="1"/> <match no="2"/> <match
                     no="3" postag_regexp="yes" postag="A(m|f)p3ga0000" 
postag_replace="A$1p3an0000"/></suggestion>.</message>
@@ -5103,8 +5103,8 @@
     <category name="Cacofonie">
         <rule id="CACOFONIE__CA" name="cacofonie: ...ca ca...">
             <pattern case_sensitive="yes">
-                <token regexp="yes">.*c[a|î|ă]|C[ă|a]<exception 
regexp="yes">Biserica|biserica|aortică</exception></token>
-                <token regexp="yes">c[a|â|ă].*<exception 
regexp="yes">C.*</exception></token>
+                <token regexp="yes">.*c[aîă]|C[ăa]<exception 
regexp="yes">Biserica|biserica|aortică</exception></token>
+                <token regexp="yes">c[aâă].*<exception 
regexp="yes">C.*</exception></token>
             </pattern>
             <message>Cacofonie: încercați să evitați astfel de 
formulări.</message>
             <short>Cacofonie</short>
@@ -5121,8 +5121,8 @@
         </rule>
         <rule id="CACOFONIE__CO_CO" name="cacofonie: ...co/cu/ca/că co/cu...">
             <pattern>
-                <token regexp="yes">.*c[o|ă|a]</token>
-                <token regexp="yes">c[o|u].*</token>
+                <token regexp="yes">.*c[oăa]</token>
+                <token regexp="yes">c[ou].*</token>
             </pattern>
             <message>Cacofonie: încercați să evitați astfel de 
formulări.</message>
             <short>Cacofonie</short>
@@ -5466,7 +5466,7 @@
                         <token 
regexp="yes">al|a|ai|ale<exception>al</exception></token>
                         <token>cărei</token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
cărei</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5482,7 +5482,7 @@
                         <token>al</token>
                         <token 
regexp="yes">cărui|căror|cărei<exception>cărei</exception></token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
cărei</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5498,7 +5498,7 @@
                         <token 
regexp="yes">al|a|ai|ale<exception>al</exception></token>
                         <token 
regexp="yes">cărui|căror|cărei<exception>cărei</exception></token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
cărei</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5658,7 +5658,7 @@
                         <token 
regexp="yes">al|a|ai|ale<exception>al</exception></token>
                         <token>căror</token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
căror</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5674,7 +5674,7 @@
                         <token>al</token>
                         <token 
regexp="yes">cărui|căror|cărei<exception>căror</exception></token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
căror</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5690,7 +5690,7 @@
                         <token 
regexp="yes">al|a|ai|ale<exception>al</exception></token>
                         <token 
regexp="yes">cărui|căror|cărei<exception>căror</exception></token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
căror</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5897,7 +5897,7 @@
                         <token 
regexp="yes">al|a|ai|ale<exception>al</exception></token>
                         <token>căror</token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
căror</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5913,7 +5913,7 @@
                         <token>al</token>
                         <token 
regexp="yes">cărui|căror|cărei<exception>căror</exception></token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
căror</suggestion>?</message>
                 <short>Dezacord</short>
@@ -5929,7 +5929,7 @@
                         <token 
regexp="yes">al|a|ai|ale<exception>al</exception></token>
                         <token 
regexp="yes">cărui|căror|cărei<exception>căror</exception></token>
                     </marker>
-                    <token postag="S[m|n]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
+                    <token postag="S[mn]s3anc000" 
postag_regexp="yes"><exception postag="Sfs3anc000"></exception></token>
                 </pattern>
                 <message>Dezacord. Ați vrut să scrieți <suggestion>al 
căror</suggestion>?</message>
                 <short>Dezacord</short>

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