[Libreoffice-ux-advise] [Bug 127319] Spellcheck doesn't ignore superscript

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 27 08:44:40 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=127319

--- Comment #10 from Justin L <jluth at mail.com> ---
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:(?<=[^ ])([^ ])
Replace:$1
[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*.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list