[KDE-Sonnet] [lingu-dev] Introductions from the KDE guy

Kevin Scannell kscanne at gmail.com
Fri Jan 26 06:42:18 CET 2007


  Gramadóir's --api now agrees with what we've been discussing.  The
only detail I haven't added is the correct ruleId, but I added a
placeholder so the output should be compliant with the DTD.  Jacob, if
you want to test, the updated version code is checked into cvs here:
http://gramadoir.cvs.sourceforge.net/gramadoir/

And here is some actual output:

$ cat triail | gram-ga.pl --api
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE matches SYSTEM "http://borel.slu.edu/dtds/api-output.dtd">
<matches>
<error fromy="1" fromx="43" toy="1" tox="49"
ruleId="Lingua::GA::Gramadoir" context="Ní raibh líon mór daoine
bainteach leis an <marker>scaifte</marker> a bhí ag iarraidh mioscais
a chothú." msg="Foirm neamhchaighdeánach de «scata»"/>
<error fromy="31" fromx="28" toy="31" tox="33"
ruleId="Lingua::GA::Gramadoir" context="Is iad na trí cholún sin le
<marker>cheile</marker> an tAontas Eorpach." msg="Ní dócha go raibh
intinn agat an modh foshuiteach a úsáid anseo"/>
<error fromy="32" fromx="24" toy="32" tox="39"
ruleId="Lingua::GA::Gramadoir" context="Scriúáil sé an glas seo
<marker>ar chúl an doras</marker>." msg="Tá gá leis an leagan
ginideach anseo"/>
<error fromy="54" fromx="30" toy="54" tox="49"
ruleId="Lingua::GA::Gramadoir" context="Seán a d'imigh ar iarraidh ar
<marker>oíche ghaoithe móire</marker>." msg="Séimhiú gan ghá"/>
<error fromy="55" fromx="35" toy="55" tox="54"
ruleId="Lingua::GA::Gramadoir" context="Mar chuid den socrú beidh
Michelle <marker>ag labhairt Ghaeilge</marker> ag ócáidí poiblí."
msg="Séimhiú gan ghá"/>
<error fromy="56" fromx="42" toy="56" tox="50"
ruleId="Lingua::GA::Gramadoir" context="Tugadh cuireadh dó a theacht i
láthair an <marker>fhir móir</marker>." msg="Séimhiú ar iarraidh"/>
</matches>


One question - are tags like "<marker>" allowed to occur unescaped
inside attributes in a well-formed XML document?  I recall that quotes
need to be turned into entities like &quot;, but I don't know about
"<" and ">".

-Kevin


More information about the kde-sonnet mailing list