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? I'd write a 
script to make the change automatically.

Regards
  Daniel


------------------------------------------------------------------------------
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