Currently LO Writer's spellcheck flags words with adjacent superscript footnote anchors, creating a mess of wavy orange lines. What is desired is for superscript to be ignored by spellcheck.
Steps to Reproduce:
1. Type word.
2. Add footnote adjacent to word.
Spellcheck throws spelling error.
User Profile Reset: No
I can't confirm this with
Version: 126.96.36.199 (x64)
CPU-Threads: 4; BS: Windows 10.0; UI-Render: GL; VCL: win;
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Paul, to be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile (https://wiki.documentfoundation.org/UserProfile) and re-test?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the issue is still present
Thank you, Dieter. The profile reset did not help, but in the process I found I had misrepresented the problem. The superscript letters in question are not actual footnote anchors, but mere plain text used as footnote markers. So I've retitled this report accordingly. I don't know how to classify this, enhancement or bug, but I think that superscript letters should be excluded from spellcheck, at least optionally.
(In reply to Paul from comment #2)
> The superscript letters in question
> are not actual footnote anchors, but mere plain text used as footnote
Paul, please attach a sample document, as this makes it easier to understand what do you mean by "plain text used as footnote markers". And why don't you use footnote anchors? You can easily customize them in Tools > Footnotes
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Created attachment 154435 [details]
superscript letters spellcheck problem
Ok Dieter, I'm attaching a small .odf file showing the problem.
I usually use the actual footnote function, but this is a file made by others, I think it was in .doc format originally, and for some reason they went with plain text throughout. And it's a large, 1.9MB, file.
I opened text in LO 188.8.131.52 and I confirm that spellcheck doesn't ignore superscript characters. But I also don't think, that this is a bug, because you should use footnote anchors for that. Perhaps the author wasn't aware of this possibility.
If you footnote settings in Extras => Footnotes/Endnote Settings => Footnotes => Autonumbering a, b, c you get the desired result.
If you agree, I will close it as RESOLVED NOTABUG. If you don't agree, please give a short reasoning.
I don't agree, because many documents are created in plain text with manual footnotes. This is especially true of books that have been scanned, as often happens with older books off copyright. Most of the time the footnote "anchors" are encased in brackets, so spellcheck is not disturbed by them, but sometimes, as here, that is not the case.
In my view this is a valid, but not the most important concern for LO, so do with it what you will.
O. K. Let's keep it open for further input from other people.
Add needsUXEval keyword
You want to disable spellchecking on some special character properties, here superscript. I disagree with the example of 1st, 2nd, 3st, 4dh etc. There might be many more reasons for super-/subscript.
You may have in mind an option "[ ] Don't check superscript" like we have for uppercase words. And still you run into issues with words that partially use superscript within the word, admittedly corner cases. And if you disable the whole word "[ ] Don't check words with superscript" you loose notes, references or whatever is formatted respectively. Users can have a special character style for it.
Footnotes needs to be separated, "plain text" documents are not suited for office suites.
I notice that auto-spellcheck ignores 6But - so that gives some kind of precedence to ignoring certain parts of a "word". And Word 2003 already treats superscripted text as a separate word.
But superscripting (from a computer perspective) is no different than setting some characters in a word to be a different colour, or bold, or italics etc. I imagine that treating superscripting separately would be tricky and CPU intensive. So I would tend to put the burden on the user to create a well-formed document, and make a separation between what they consider to be non-word-forming characters and the word itself.
For this particular document, one user workaround could be to search for superscripted characters, and insert a ZERO WIDTH NO-BREAK SPACE character in front of it (which can be created by typing U+FEFF and then hitting Alt-x).
Finding these is possible in "Find and Replace". Press the Format button and select Format tab, superscript, and relative font size 80.
Since this is a huge document, here is an advanced find/replace (that needs to be copy/pasted, since it contains the invisible zero-width no-break space(ZWNBS) in it.) You need to enable the "regular expressions" option to use this search.
Find:(?<=[^ ])([^ ])
[Hint: to ensure that you have the correct REPLACE contents (including the ZWNBS), use the keyboard to select. Start from the end (after $1), hold shift and use the left arrow key to select everything including the colon, and then press the right arrow key once to deselect the colon.]
Spelled out this finds *something* that is not a space or a ZWNBS that follows something else that is not a space or a ZWNBS.
Replace *something* with a ZWNBS and *something*.
>"plain text" documents are not suited for office suites.
Of course, on new documents the user should use the excellent footnote/endnote function. I have it hotkeyed here and use it often. But working with existing older documents should be a valid consideration for modern programs. I use LO as much for that as for up-to-date needs.
>insert a ZERO WIDTH NO-BREAK SPACE character in front of it
If a formal superscript consideration has too many drawbacks, this is an excellent way to otherwise deal with the problem. I'll save this and use it unless and until something might be done in LO on this issue.
Thanks for the input, guys!
(In reply to Paul from comment #11)
> >insert a ZERO WIDTH NO-BREAK SPACE character in front of it
> Thanks for the input, guys!
So let's close the request as WF.
Actually I'm finding it nigh unto impossible to do an effective search for superscript, which breaks the whole concept that was proposed. If I spec superscript in Find, it also applies a vast array of other, unwanted qualifiers. Alt-Search crashed LO, perhaps because of file size, so no success there either.
(In reply to Paul from comment #13)
> Alt-Search crashed LO, perhaps because of file size, so no
> success there either.
This kind of bug is a honey pot for developers. You should report in a way the crash can reproduced.
(In reply to Justin L from comment #10)
> I imagine that treating superscripting separately would be
> tricky and CPU intensive.
Perhaps not super CPU intensive, since it seems like there already is a loop looking for hints. For a mildly similar search adjustment, see fixed bug 101936 sw: ignore comment anchors during search
Thanks guys. I tried again later. Previously I had another, small, document open in LO, perhaps that fact contributed to the crash. This time, with only the large document open, I was able to execute Alt-Search successfully. I settled for inserting a regular space rather than a ZWNB one, but I'll work on that next time. Alt-Search has the drawback of taking a long time to execute, but it works well.