[Libreoffice-bugs] [Bug 127850] spelling options - words with underscores
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 24 17:39:18 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=127850
Buovjaga <ilmari.lauhakangas at libreoffice.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Whiteboard| QA:needsComment |
CC| |ilmari.lauhakangas at libreoff
| |ice.org
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #1 from Buovjaga <ilmari.lauhakangas at libreoffice.org> ---
You can exclude them in a certain way, which might help you in other ways as
well: define a character style for these variable names and in the style
editor's Font tab, set the language to [None]. Then apply the style to all
these words.
One way to make applying the style to many existing words faster might be this:
1. Open Find & replace dialog
2. Other options - Regular expressions checked
3. Use a regex like this in the Find field:
(?<=\s)[a-z]+_.+(?=\s)
4. Click Find All
5. Double-click the character style in the sidebar to apply it to all the
words.
The regex example I gave only targets words surrounded by spaces. It asserts
both a lookbehind and lookahead for \s space characters. Hopefully you can
adapt it / use variants to fit all your cases.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200424/7e22b4bf/attachment.htm>
More information about the Libreoffice-bugs
mailing list