W dniu 2015-01-13 o 23:35, Daniel Naber pisze:
> Hi,
>
> here's another small XML syntax cleanup idea:
>
> Old syntax:
> <match no="1" regexp_match="runter" regexp_replace="herunter"/>
>
> Proposed new syntax:
> <match no="1" regexp="runter -> herunter"/>
>
> The new syntax is shorter and easier to read. Also, the old syntax isn't
> really clean:  whenever you use 'regexp_match', you also need to use
> 'regexp_replace', but this is not expressed in the XSD (I guess that's
> not possible). So why have two attributes anyway? Same for 'postag' and
> 'postag_replace'. Does anybody see a problem with this?

Yes, there's one small thing that needs to be taken care of: namely, 
there might be a rule to change "->" to "→" (proper Unicode arrow). So 
we need a way to escape "->". It might be difficult to escape two 
characters, though.

Best,
Marcin

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to