Bug 163962 - Spell checking should be active in editable section of Read-only file
Summary: Spell checking should be active in editable section of Read-only file
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Tibor Nagy
URL:
Whiteboard: target:25.8.0
Keywords:
Depends on:
Blocks: Section
  Show dependency treegraph
 
Reported: 2024-11-19 15:08 UTC by Gabor Kelemen (allotropia)
Modified: 2025-02-04 18:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Spell check items in Tools menu are disabled, misspelled word is not underlined (149.01 KB, image/png)
2024-11-19 15:08 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-11-19 15:08:18 UTC
Created attachment 197688 [details]
Spell check items in Tools menu are disabled, misspelled word is not underlined

See attachment 197685 [details] for an example

In a read-only document, when a section is editable, it is not possible to run spell check in the editable section.

1. Set the attachment 197685 [details] document as read only on the file system, open it
2. When it is opened as read only, click in the yellow section, which is editable
3. Type something, then open the Tools menu
-> Spelling, Automatic Spell Check items are disabled, spelling is not checked in the editable section

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7a7ba9cbee91485a9254949d1594352b3629c070
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 1 Aryeh 2024-11-19 18:08:43 UTC
I was able to replicate this. I am not sure if it is a bug though, because I believe spell check is generally disabled in read only mode.

Version: 24.8.2.1 (AARCH64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 8; OS: macOS 14.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 2 Commit Notification 2025-02-01 22:12:31 UTC
Tibor Nagy committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/08e40accb3fabe676746c40797efc20eaa218801

tdf#163962 Enable spell checking in editable sections in read-only mode

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Gabor Kelemen (allotropia) 2025-02-03 15:41:11 UTC
Checked in:

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 08e40accb3fabe676746c40797efc20eaa218801
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

The spell checking underlines the misspelled words in the editable section, and the Spelling dialog can be opened and used to fix the mistypings.

Improvement idea: allow context menu to have spelling suggestions.