Yes, I think that I would need to create a new rule instead of patching the 
existing one on the commas.

I'm also working on the soccer scores pattern…

Any hint on how to test the rule against wikipedia?

Ciao

Paolo


On Apr 5, 2013, at 11:29 AM, Dominique Pellé wrote:

> It's not entirely language independent. At least French does not
> follow those rules. French typography rules use a narrow non-break
> space before colon, semi-colon, question mark and exclamation mark.
> 
> There is an easy rule of thumb to remember where to put a space in
> French: all punctuation characters that require to raise the pen to draw
> them (? ! ; : %) require a space before them. All punctuation characters
> that do not require to raise the pen to draw them should not have a
> space before them (dot, comma).
> 
> But even if it's a common Java rule, it does not have to be enabled
> for French so that would be fine.
> 
> Regards
> Dominique
> 
> R.J. Baars <r.j.ba...@xs4all.nl> wrote:
> 
>> I guess this is language independ, so be fixed in same rule as no space
>> before comma.
>> 
>> Ruud
>> 
>>> All,
>>> 
>>> I could fix this bug by coding the following rule within the Italian
>>> grammar.xml (I also added a check for semicolon… I know, I could have used
>>> a reg_exp :-) ).
>>> 
>>> The question is, would this be the correct/acceptable way of handling this
>>> bug or should it be handled differently (a java rule) and/or for a wider
>>> set of languages?
>>> 
>>> Ciao
>>> 
>>> Paolo
>>> 
>>> 
>>>              <rulegroup name="spazio prima di : o di ;" id="GR_09_005">
>>>                  <rule>
>>>                      <pattern>
>>>                          <token></token>
>>>                          <token spacebefore="yes">:</token>
>>>                      </pattern>
>>>                              <message>Non lasciare uno spazio prima dei due 
>>> punti:
>>> <suggestion><match no="1"></match>:</suggestion>.</message>
>>>                              <example type="incorrect">Comprammo tanti 
>>> <marker>regali :</marker>
>>> bambole, libri, vestiti.</example>
>>>                              <example type="correct">Comprammo tanti 
>>> <marker>regali:</marker>
>>> bambole, libri, vestiti.</example>
>>>                      </rule>
>>>                  <rule>
>>>                      <pattern>
>>>                          <token></token>
>>>                          <token spacebefore="yes">;</token>
>>>                      </pattern>
>>>                              <message>Non lasciare uno spazio prima del 
>>> punto e virgola:
>>> <suggestion><match no="1"></match>;</suggestion>.</message>
>>>                              <example type="incorrect">Gli venne 
>>> <marker>sonno ;</marker> e rimandò
>>> all'indomani.</example>
>>>                              <example type="correct">Gli venne 
>>> <marker>sonno;</marker> e rimandò
>>> all'indomani.</example>
>>>                      </rule>
>>>              </rulegroup>
>>> 
>>> ------------------------------------------------------------------------------
>>> Minimize network downtime and maximize team effectiveness.
>>> Reduce network management and security costs.Learn how to hire
>>> the most talented Cisco Certified professionals. Visit the
>>> Employer Resources Portal
>>> http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________
>>> Languagetool-devel mailing list
>>> Languagetool-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Minimize network downtime and maximize team effectiveness.
>> Reduce network management and security costs.Learn how to hire
>> the most talented Cisco Certified professionals. Visit the
>> Employer Resources Portal
>> http://www.cisco.com/web/learning/employer_resources/index.html
>> _______________________________________________
>> Languagetool-devel mailing list
>> Languagetool-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
> 
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire 
> the most talented Cisco Certified professionals. Visit the 
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Languagetool-devel mailing list
> Languagetool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to