Skip to content

Misspell wavy line#162

Open
pplupo wants to merge 3 commits into
Euro-Office:mainfrom
pplupo:misspell-wavy-line
Open

Misspell wavy line#162
pplupo wants to merge 3 commits into
Euro-Office:mainfrom
pplupo:misspell-wavy-line

Conversation

@pplupo

@pplupo pplupo commented Jul 13, 2026

Copy link
Copy Markdown

Adding the option of the original straight line or a wavy line to underline mispelled words: Euro-Office/DesktopEditors#3

@pplupo
pplupo requested a review from a team as a code owner July 13, 2026 15:12
@pplupo
pplupo requested review from Alex-Arsys and j-base64 and removed request for a team July 13, 2026 15:12
…tings

Wires the sdkjs CSpellCheckSettings.WavyLine flag through to the
document editor's Advanced Settings panel, following the same
localStorage -> InternalSettings -> CSpellCheckSettings pattern already
used for the ignore-uppercase/ignore-numbers spellcheck options.
Defaults to on (wavy).

Signed-off-by: Peter P. Lupo <pplupo@gmail.com>
@pplupo
pplupo force-pushed the misspell-wavy-line branch from 1770ffb to 6fdc8c8 Compare July 14, 2026 14:15
@pplupo

pplupo commented Jul 14, 2026

Copy link
Copy Markdown
Author

This is also required: Euro-Office/sdkjs#59

@Alex-Arsys Alex-Arsys left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 · locale — missing i18n key — blocking (convention)
The new label adds strSpellcheckWavyLine as a JS default, but I don't see the corresponding DE.Views.FileMenuPanels.Settings.strSpellcheckWavyLine key in apps/documenteditor/main/locale/en.json (the sibling strIgnoreWordsWithNumbers is there). As-is the checkbox label shows in English via the JS fallback but stays untranslated in every locale. Could you add the key to en.json (and flag the other locales for translation) to match the project convention?

2 · scope — DE only vs SSE/PE — question / blocking
The rendering change in sdkjs#59 lives in the common engine (Graphics.js, IsSpellCheckWavyLine defaults to true), so Spreadsheet and Presentation will render the wavy underline by default — but this PR only wires the toggle into DocumentEditor. Is DE-only intended (the source issue is DesktopEditors), or should we replicate the checkbox in SSE/PE so users there can turn it off too?

3 · cross-repo dependency — non-blocking
Note this depends on put_WavyLine from sdkjs#59; if web-apps ships against an sdkjs without it, spprops.put_WavyLine is undefined and applying spell-check settings throws. Worth merging / deploying the two together and cross-linking the PRs.

pplupo added 2 commits July 15, 2026 17:08
Adds the DE.Views.FileMenuPanels.Settings.strSpellcheckWavyLine locale
key that was missing from DocumentEditor's en.json, and wires the same
Advanced Settings checkbox into SpreadsheetEditor and Presentation
Editor, following each app's existing ignore-uppercase/ignore-numbers
spellcheck pattern. Defaults to on (wavy).

Signed-off-by: Peter P. Lupo <pplupo@gmail.com>
SpreadsheetEditor's spellcheck only scans cell values, never
shape/text-box content, so nothing in a sheet is ever marked
misspelled outside that scan and DrawSpellingLine is unreachable
there. The checkbox added in 33ac075 had no way to visibly do
anything. Reverting until SSE's spellcheck engine actually walks
shape/drawing text. PresentationEditor's equivalent checkbox is kept,
since PE's SpellCheckManager does cover shape text.

Signed-off-by: Peter P. Lupo <pplupo@gmail.com>
@pplupo

pplupo commented Jul 16, 2026

Copy link
Copy Markdown
Author

@Alex-Arsys thank you for pointing those out. You are absolutely right about all of them.

1- Fixed.

2- When I implemented it, I initially only thought about DE. However, you are absolutely right that it makes sense to have these in all other editors, so my fix wasn't to make it DE-only, but to implement it in the others as well. With one caveat: SSE doesn't have any sort of underline (wavy or straight). Or, at least, I didn´t know how to trigger it. I tried in a cell, in a cell comment, in a textbox, and inside a shape. There's no misspelling underline of any kind. So I just removed the settings from SSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants