Hi all,

One problem is that you often don't know where a sentence starts and ends. Just looking for "." is not enough (e.g. because of abbreviations that end with a dot -- and these are different in all languages). So the API shouldn't know about sentences and needs to leave the sentence boundary detection to the grammar checker.


I think this should be left to the grammar engine
The work unit that is passed to it should be the paragraph
This is IMHO the most well-defined (line break, paragraph break - there is an OOo API for that - look at TextCursors)


I've asked product management about the probably to be UI used for
garmmar checking and was told that it's likely to display a single
sentence only (for example since paragraphs are sometimes way too
large to be clearly dispalyed in a small dialog). And probably all
errors should be displayed at once (unlike the behaviour of the
current spellcheck dialog).

Also the chance for having sentence of different language increases.
That is in that case we probably still need to go sentence wise since
we have to call different grammar checker.


What about if the interface always gives a whole paragraph but also
a starting position to be used as well and the semantic will be
that the grammar checker returns always when an end of sentence was
found?
That way for example the first call would be for English starting
at position 0 and when the end of sentence was found at position
42 we have to choices
a) if the next sentence is determined to be English also we
   will call the grammar checker again with the same paragraph
   but 43 as starting pos.
b) if the nect sentence is in French or Chinese we can call the
   respective grammar checker with the whole paragraph and
   starting pos 43.
Probably it is also a good idea to pass a flag if we are at the
start at the sentence now or not (or maybe if that is unknown)
to the grammar checker as well.

This would allow the grammar checker to use the whole paragraph
if necessary, even to access text that is before the current starting
position if there is some need (I was told once Thai would have need
for such a behaviour) and the UI can still display only a single
sentence.


yes, not needed at all
new query, new life as well said by eleonora

Please see comments in my previous posting from today.

Each grammar checker will have its own set of settings and it will be rather complex. So hard-coding settings in OOo doesn't seem to make sense anyway.


yes

Same as above.


Regards,
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to