Bug 155851 - Phrase checking: in multi-word dictionary items each word is still marked as error
Summary: Phrase checking: in multi-word dictionary items each word is still marked as ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-15 11:09 UTC by RGB
Modified: 2023-11-16 06:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RGB 2023-06-15 11:09:12 UTC
This is a follow up of Bug 154499.

In 7.6, suppose you add the Latin phrase "ad hoc" to your user dictionary. When you go to a document that uses that dictionary and type "ad hoc," the term "hoc" is marked as an error even if the combination is now correct. 

Expectations (& results): 

Type "ad hoc" and the phrase is recognized as correct (doesn't work).

Type only "hoc" → the spellchecker recognize hoc as an error (work) and suggest "ad hoc" (doesn't work).

Type "a hoc" → the spellchecker recognize both words as a *single* error and suggest "ad hoc" (doesn't work).

Type "ahoc" or "adhoc" → the spellchecker recognize them as an error and suggest "ad hoc" (work... *but* when you continue editing the paragraph the word "hoc" is marked as an error).

Note about the last point: There is an inconsistent behavior with the spellchecker. As soon as the substitution is inserted, the word "hoc" is NOT marked as an error, but if you later edit the paragraph close to that word, it get marked. Also, sometimes a word that's marked gets unmarked... I'm not able to figure out what's going on or what triggers the behavior. 

Note 2: adding the word "hoc" to the dictionary is not a solution, because the word alone is an error, it must go with "ad" before it.

Tested with: 

Version: 7.6.0.0.beta1 (X86_64) / LibreOffice Community
Build ID: be55b15d98c5f059483845a183fcb5ea8023d27c
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: es-ES (es_ES.UTF-8); UI: es-ES
Calc: threaded
Comment 1 Kira Tubo 2023-11-16 06:02:30 UTC
The issue has morphed somewhat: 

"Ad hoc": this is no longer flagged as an error (expected)
"Hoc": not flagged as an error, even though "ad" is missing (not expected)
"A hoc": not flagged as an error, even though "ad" is misspelled (not expected)
"Ahoc": flagged as an error (expected), BUT spell check does not show "ad hoc" as a possible correction (not expected)
"Adhoc": flagged as an error and shows "ad hoc" as possible correction (expected)

Notes: 
- This issue seems somewhat related to Bug 89578. 
- The issue as originally described has been around since 3.3. 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 676e0527d2f31556eccae314fbb12ce204f02ec7
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Installed dictionary to work with win64-24.2 repository: https://extensions.libreoffice.org/en/extensions/show/english-dictionaries