Bug 91193 - Writer: spell-check: double-hyphen as word boundary for filename
Summary: Writer: spell-check: double-hyphen as word boundary for filename
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.8.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Spell-Checking
  Show dependency treegraph
 
Reported: 2015-05-09 20:50 UTC by Nick Levinson
Modified: 2025-09-27 18:31 UTC (History)
1 user (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 Nick Levinson 2015-05-09 20:50:08 UTC
The spelling check system relies on word boundaries to decide what to check.

The following identify only what comes after the double-hyphen as a word to be checked:

do-nothing-today--do-something-today.htm identifies only do-something-today.htm

do-something-today--do-nothing-today.htm identifies only do-nothing-today.htm

Since the spell-check is apparently designed to check filenames, some of which use double-hyphens, whether a double-hyphen should exclude part of a filename should be reconsidered.

If a newer Writer version has solved this, that's good enough.

I'm guessing my hardware.
Comment 1 Buovjaga 2015-05-15 14:04:30 UTC
Interestingly this is a Linux-only problem.

Win 7 Pro 64-bit, Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Locale: fi_FI

Ubuntu 15.04 64-bit 
Version: 4.4.2.2
Build ID: 40m0(Build:2)
Locale: en_US

Version: 5.0.0.0.alpha1+
Build ID: 4c665178f49952138835fd318edef8978ac806e3
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-05-12_06:15:42
Locale: en-US (en_US.UTF-8)
Comment 2 QA Administrators 2016-09-20 09:42:20 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2020-10-24 05:12:42 UTC Comment hidden (obsolete)
Comment 4 Nick Levinson 2020-11-04 02:28:18 UTC
The bug still happens.

From the Help > About LibreOffice dialog:

Version: 7.0.2.2
Environment: CPU threads: 2; OS: Linux 5.8
User Interface: UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Misc: Calc: threaded
Comment 5 QA Administrators 2022-11-05 03:36:11 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2024-11-05 03:16:05 UTC Comment hidden (obsolete, spam)
Comment 7 Justin L 2025-09-27 16:19:54 UTC
repro 26.2+

This wasn't what I expected to see (based on the bug report wording). I thought that OP was complaining that the first part of the filename was marked as misspelled, and that the final part was "ignored as a recognized file name".

However, it was the exact opposite. The part before -- was not flagged as a misspelling (and it isn't). The last half is marked as an English mis-spelling (which it is).

I don't see any bug here (other than that it works differently in Linux, but that will just be ICU word-break stuff. I don't expect there is any "filename recognition" happening here at all.

NOTABUG
Comment 8 Buovjaga 2025-09-27 18:31:30 UTC
Thanks, let's close.