Apache OpenOffice (AOO) Bugzilla – Issue 65119
Spellcheck doesn't recognise words containing hyphens.
Last modified: 2013-02-24 20:42:33 UTC
This is a generalisation of issue 59596. Dictionaries contain words with hyphens. If the part of the word before or after the hyphen isn't a valid word by itself, but the entire word (with the hyphen) is a valid word, this word will be marked as misspelled. Ironically, the word with the hyphen sometime is in the sugestions list. Examples (from fr_FR dict): Some words begin with the prefix 'anti-', like 'anti-inflammatoire'. But 'anti' by itself isn't a valid word. The french word 'oeil' become 'yeux' when plurial. But some expressions like 'oeil-de-boeuf' or 'oeil-de-chat' become 'oeils-de-boeuf' and 'oeils-de-chat', even if 'oeils' isn't a valid word. A simple way to verify this issue is to spellcheck the dictionnary against itself. (I opened the fr-FR.dic file and spellchecked it).
This was confirmed during Italian QA tests, where the word "duffle-coat" was found to show the problem with the French dictionary. Funny because there are no such words in the Italian dictionary, but our volunteers do some extra work at times... CC'ing Sophie because I cannot follow French issues. [Reported by Andrea during Italian QA tests]
Could somebody confirm this issue? To do so, just spellcheck the file fr_FR.dic against itself, and you will see the problem. Adding the - char to the fr_FR.aff file doesn't change anything. The solution would be to threat the - character as a "normal" character, and probably to add some affix rules to deal with suffixes like '-le' and '-il', and maybe to add some missing expressions which use hyphens.
We have removed all words with the '-' simbols from Italian dictionary and not use it for solve this problem
Without understanding all details, I can confirm the effect with "2.0.2 German version WIN XP: [680m5(Build9011)]" Steps to reproduce: 1. Install French wordbook 1.1. Menu "File - Assitents - Install new Word books 1.2. follos instructions to install the French wordbook In 'C:\Programme\OpenOffice.org 2.0\share\dict\ooo' the new wordbook 'fr_FR.dic' will be installed 2. Open new WRITER document 3. Write some sentence containing 'anti-inflammatoire' (and change language to French, if that's not the standard language of the document) 4. Activate auto-spellcheck expected: 'anti-inflammatoire' shold not have the wavy red underline actual: 'anti' is underlined, althoug it is listed in the dict. (pls see screenshot!) I did not find an example in the German Wordbook, but I did not look intensively This issue might be related to issue 62226 @cbrunet: Pls specify your OS and platform!
Created attachment 41693 [details] Screenshots
rainerbielefeld: this issue is plateform independant. It is related to the way the spellchecker works. I tested it on Mac OS X and Linux PPC. In French, this it not possible to simply remove words containing hyphens, because hyphens belong to the spelling of the words.
duplicate *** This issue has been marked as a duplicate of 64400 ***
closing duplicate.