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-" are
to be passed with the hyphen to the spellchecker in cases such as (German)
"trink- und essbar" and "Feuerwhermänner und -frauen" (I don't have a good
English example right now).

This means dashes are part of a word if there is "stuff" on their right _or_
their left and if this stuff is no further dash.

I think emacs solves this kind of problems by allowing regexps for each language describing what is allowed or not.

JMarc

Reply via email to