Issue 65119 - Spellcheck doesn't recognise words containing hyphens.
Summary: Spellcheck doesn't recognise words containing hyphens.
Status: CLOSED DUPLICATE of issue 64400
Alias: None
Product: General
Classification: Code
Component: spell checking (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: issues@lingucomponent
QA Contact: issues@lingucomponent
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-05-05 16:21 UTC by cbrunet
Modified: 2013-02-24 20:42 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Screenshots (84.18 KB, application/vnd.oasis.opendocument.graphics)
2006-12-24 15:41 UTC, Rainer Bielefeld
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description cbrunet 2006-05-05 16:21: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).
Comment 1 Andrea Pescetti 2006-07-14 22:15:57 UTC
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]
Comment 2 cbrunet 2006-07-26 20:06:49 UTC
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.
Comment 3 dprina 2006-08-13 13:21:44 UTC
We have removed all words with the '-' simbols from Italian dictionary and not
use it for solve this problem
Comment 4 Rainer Bielefeld 2006-12-24 15:39:02 UTC
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!
Comment 5 Rainer Bielefeld 2006-12-24 15:41:29 UTC
Created attachment 41693 [details]
Screenshots
Comment 6 cbrunet 2006-12-24 17:05:54 UTC
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.
Comment 7 lohmaier 2007-02-03 01:25:32 UTC
duplicate

*** This issue has been marked as a duplicate of 64400 ***
Comment 8 lohmaier 2007-02-03 01:25:50 UTC
closing duplicate.