Skip to content

Commit

Permalink
[ca] rules for ela geminada: update message, url, type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Dec 24, 2013
1 parent a7e6310 commit ac373e4
Showing 1 changed file with 36 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12983,43 +12983,49 @@ $Id$
<example type="correct">Digué: Vine!</example>
</rule>
</rulegroup>
<rule id="ELA_GEMINADA" name="Errors en la ela geminada." type="misspelling">
<pattern case_sensitive="no">
<marker>
<token regexp="yes">.*[aeiouàéèíóòúïü]l[•.\-]l[aeiouàéèíóòúïü].*</token>
</marker>
</pattern>
<message>Error tipogràfic.</message>
<suggestion><match no="1" regexp_match="(.+[Ll])[•.-]([Ll].+)" regexp_replace="$1·$2"/></suggestion>
<short>Error tipogràfic</short>
<example type="incorrect" correction="sol·licitud">La <marker>sol•licitud</marker>.</example>
<example type="incorrect" correction="sol·licitud">La <marker>sol-licitud</marker>.</example>
<example type="incorrect" correction="SOL·LICITUD">LA <marker>SOL.LICITUD</marker>.</example>
<example type="correct">la col·laboració</example>
<example type="correct">al-Ladjdjun</example>
<example type="correct">en un estat sindical-laborista</example>
<example type="correct">en un estat sindical.La classe obrera</example>
</rule>
<rule id="ELA_GEMINADA_AMB_ESPAIS" name="ela geminada amb espais">
<pattern>
<token regexp="yes">.*[aeiouàèéíòóúïü]l</token>
<token regexp="yes">[·•]</token>
<token regexp="yes">l[aeiouàèéíòóúïü].*</token>
</pattern>
<message>Error tipogràfic</message>
<suggestion><match no="1"/>·<match no="3"/></suggestion>
<example type="incorrect" correction="col·laboració"><marker>col · laboració</marker></example>
<example type="correct">col·laboració</example>
</rule>
<rule id="ELA_GEMINADA_2CHAR" name="Ela geminada: evita codificació de dos caràcters" type="misspelling">
<rulegroup id="ELA_GEMINADA" name="Errors en la ela geminada" type="misspelling">
<rule>
<pattern case_sensitive="no">
<marker>
<token regexp="yes">.*[aeiouàéèíóòúïü]l[•.\-]l[aeiouàéèíóòúïü].*</token>
</marker>
</pattern>
<message>Error tipogràfic.</message>
<suggestion><match no="1" regexp_match="(.+[Ll])[•.-]([Ll].+)" regexp_replace="$1·$2"/></suggestion>
<url>https://ca.wikipedia.org/wiki/L%C2%B7L</url>
<short>Error tipogràfic</short>
<example type="incorrect" correction="sol·licitud">La <marker>sol•licitud</marker>.</example>
<example type="incorrect" correction="sol·licitud">La <marker>sol-licitud</marker>.</example>
<example type="incorrect" correction="SOL·LICITUD">LA <marker>SOL.LICITUD</marker>.</example>
<example type="correct">la col·laboració</example>
<example type="correct">al-Ladjdjun</example>
<example type="correct">en un estat sindical-laborista</example>
<example type="correct">en un estat sindical.La classe obrera</example>
</rule>
<rule>
<pattern>
<token regexp="yes">.*[aeiouàèéíòóúïü]l</token>
<token regexp="yes">[·•]</token>
<token regexp="yes">l[aeiouàèéíòóúïü].*</token>
</pattern>
<message>Error tipogràfic</message>
<suggestion><match no="1"/>·<match no="3"/></suggestion>
<url>https://ca.wikipedia.org/wiki/L%C2%B7L</url>
<short>Error tipogràfic</short>
<example type="incorrect" correction="col·laboració"><marker>col · laboració</marker></example>
<example type="correct">col·laboració</example>
</rule>
</rulegroup>
<rule id="ELA_GEMINADA_2CHAR" name="Ela geminada: evita la codificació de dos caràcters">
<pattern case_sensitive="no">
<marker>
<token regexp="yes">.*ŀl.*</token>
</marker>
</pattern>
<message>Error de codificació.</message>
<suggestion><match no="1" regexp_match="(.+)ŀl(.+)" regexp_replace="$1l·l$2"/></suggestion>
<short>Error tipogràfic</short>
<url>https://ca.wikipedia.org/wiki/L%C2%B7L</url>
<short>Error de codificació</short>
<example type="incorrect" correction="sol·licitud">La <marker>soŀlicitud</marker>.</example>
<example type="correct">la sol·licitud</example>
</rule>
Expand Down

0 comments on commit ac373e4

Please sign in to comment.