Re: PATCH for isWordSeparator

2011-04-08 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > Le 07/04/2011 20:35, Stephan Witt a écrit : >> Thanks. New patch attached. > > Looks much better to me (especially the comments). ok, go on. pavel

Re: PATCH for isWordSeparator

2011-04-08 Thread Jean-Marc Lasgouttes
Le 07/04/2011 20:35, Stephan Witt a écrit : Thanks. New patch attached. Looks much better to me (especially the comments). JMarc

Re: PATCH for isWordSeparator

2011-04-08 Thread Jean-Marc Lasgouttes
Le 08/04/2011 08:55, Jürgen Spitzmüller a écrit : Jean-Marc Lasgouttes wrote: I think hyphen and commas are in the class of characters that are part of the word only when there is stuff on their right and on their left. The case why this test was introduced is that stems like "-bar" and "foo-"

Re: PATCH for isWordSeparator

2011-04-08 Thread Stephan Witt
Am 08.04.2011 um 08:59 schrieb Jürgen Spitzmüller: > Stephan Witt wrote: >> +bool Paragraph::isHardHyphenOrQuote(pos_type pos) const > > Note that the ' character here is not a quote but an apostrophe (we do not > want to pass single quotation marks to the spell checker, but we do pass > apostr

Re: PATCH for isWordSeparator

2011-04-07 Thread Jürgen Spitzmüller
Stephan Witt wrote: > +bool Paragraph::isHardHyphenOrQuote(pos_type pos) const Note that the ' character here is not a quote but an apostrophe (we do not want to pass single quotation marks to the spell checker, but we do pass apostrophes) Jürgen

Re: PATCH for isWordSeparator

2011-04-07 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > I think hyphen and commas are in the class of characters that are part > of the word only when there is stuff on their right and on their left. The case why this test was introduced is that stems like "-bar" and "foo-" are to be passed with the hyphen to the spellc

Re: PATCH for isWordSeparator

2011-04-07 Thread Stephan Witt
Am 07.04.2011 um 14:03 schrieb Abdelrazak Younes: > On 04/06/2011 05:19 PM, Stephan Witt wrote: >> The last changes regarding isWordSeparator and hard hyphens have a >> drawback... >> Now the single dash enclosed by white space is treated as a single word and >> the >> spell check marks it red -

Re: PATCH for isWordSeparator

2011-04-07 Thread Abdelrazak Younes
On 04/06/2011 05:19 PM, Stephan Witt wrote: The last changes regarding isWordSeparator and hard hyphens have a drawback... Now the single dash enclosed by white space is treated as a single word and the spell check marks it red - I'd rate this as a regression. The attached patch should fix that.

Re: PATCH for isWordSeparator

2011-04-07 Thread Jean-Marc Lasgouttes
Le 07/04/2011 12:47, Stephan Witt a écrit : In principle you're right. But then the method "Paragraph::isWordSeparator(pos_type pos)" did it wrong since ages then. Definitely :) I even suspect we have an open bug about it. I cannot imagine a patch that provides an implementation of the "moz

Re: PATCH for isWordSeparator

2011-04-07 Thread Stephan Witt
Am 07.04.2011 um 12:29 schrieb Jean-Marc Lasgouttes: > Le 07/04/2011 11:11, Stephan Witt a écrit : >> What exactly looks weird? >> The test for hard hyphen altogether or the test for '-' or for space around >> it >> or some other implementation detail? > > The method that tests for the standalon

Re: PATCH for isWordSeparator

2011-04-07 Thread Jean-Marc Lasgouttes
Le 07/04/2011 11:11, Stephan Witt a écrit : What exactly looks weird? The test for hard hyphen altogether or the test for '-' or for space around it or some other implementation detail? The method that tests for the standalone hyphen seems complicated to me and hard-codes one particular case.

Re: PATCH for isWordSeparator

2011-04-06 Thread Jean-Marc Lasgouttes
Le 06/04/11 17:19, Stephan Witt a écrit : The last changes regarding isWordSeparator and hard hyphens have a drawback... Now the single dash enclosed by white space is treated as a single word and the spell check marks it red - I'd rate this as a regression. The attached patch should fix that. O

Re: PATCH for isWordSeparator

2011-04-06 Thread Pavel Sanda
Stephan Witt wrote: > The last changes regarding isWordSeparator and hard hyphens have a drawback... > Now the single dash enclosed by white space is treated as a single word and > the > spell check marks it red - I'd rate this as a regression. > > The attached patch should fix that. Ok to apply?

PATCH for isWordSeparator

2011-04-06 Thread Stephan Witt
The last changes regarding isWordSeparator and hard hyphens have a drawback... Now the single dash enclosed by white space is treated as a single word and the spell check marks it red - I'd rate this as a regression. The attached patch should fix that. Ok to apply? Stephan Index: src/Paragraph.h