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

Jacob R Rideout kde at jacobrideout.net
Fri Jan 26 15:04:28 CET 2007


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

How about instead have not <marker> tag, but having both
'contextoffset' and 'length' attributes. Is the context needed? What
are the api use cases? The application developer can generate the
context. If the context is provided, It might be more efficient to
pass the positions of the start and end of the context as global
offsets.

The ruleId would refer to an internal rule code, like ruleId='7' The
application will know what grammar engine it is using before it starts
checking for errors. If we want an attribute like this we'll need a
dictionary of rules. So there would be an api call to return a
description of the error like "Wrong case with gerund." Optionally,
there could be another call for a suggested correction like, "Use
possessive case with gerunds. Write 'my opinion' rather than 'me
opinion'." If we had this, then the 'msg' attribute would no longer be
necessary. The replacements attribute would still be useful as it
would suggest directly substitutable corrections.

To what extent do the current grammar checkers support the above
distinctions in error meta-data?

Jacob


More information about the kde-sonnet mailing list