Bug 134662 - spell checker should deny cap on some lower-case words
Summary: spell checker should deny cap on some lower-case words
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Spell-Checking
  Show dependency treegraph
 
Reported: 2020-07-08 15:34 UTC by Nick Levinson
Modified: 2021-08-13 03:56 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 Nick Levinson 2020-07-08 15:34:44 UTC
Description:
A word may be correct only if always lower-case. Spell-checking permits words to get capital initials at beginnings of sentences. This capitalization should be suppressible for particular words, such as some computer commands for Unix, Linux, and BSD.

Steps to Reproduce:
1. Check that your LO spelling checker's user-defined dictionary does not include the following: dd
2. In a Writer document, type the following: Dd dd
3. Run spell-check (F7).

Actual Results:
This passes the spell-check.

Expected Results:
Since the term is correct only for all lower-case because using any other case when entering the command in a command-line interface (especially with older distributions of Linux), "Dd" should be rejected as a misspelling even though it's at the beginning of the sentence.


Reproducible: Always


User Profile Reset: No



Additional Info:
For a few words, only the literal entry in the custom dictionary would be approved in a document.

The suppression should be available for words in the main dictionary as well as in custom dictionaries. Suppression even in the main dictionary would be by the user's choice.

While I use a Linux distro for which the CLI tentatively recognizes the initial capital for a Linux command (it suggests proceeding with the lower-case alternative), arguments and options are often case-sensitve to the point of assigning different meanings for different cases, and for that situation spell checker suppression would help with Writer.

The UserProfile doesn't seem to be available for resetting.

OpenGL doesn't seem to be available for enabling.
Comment 1 Jean-Baptiste Faure 2021-08-12 17:00:36 UTC
That is a very special corner case and there is easy workarounds :
- type ctrl+Z when the first letter of the word is capitalized; that works for any autocorrection that you do not want.
- insert a line with an blank character and without a period at its end before the line starting with dd. Indeed the capitalization of the first character is activated only if the new line follows a period that marks the end of the previous paragraph.

For the change you propose, the gain is not worth the effort. So closing as WontFix.

Best regards. JBF