<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Spellcheck doesn't ignore superscript"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127319#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Spellcheck doesn't ignore superscript"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127319">bug 127319</a>
from <span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
<pre>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*.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>