Bug 127850 - spelling options - words with underscores
Summary: spelling options - words with underscores
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-28 20:09 UTC by hhaynie
Modified: 2020-04-24 17:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hhaynie 2019-09-28 20:09:46 UTC
Description:
I think giving the spell checker the option of NOT checking words containing underscores would be much appreciated by those writing technical documents with lots of mnemonic/variable/signal names in them (which tend to consist of things that aren't actual words connected by underscores, e.g. "dst_queue_addr").

Steps to Reproduce:
.

Actual Results:
.

Expected Results:
.


Reproducible: Always


User Profile Reset: No



Additional Info:
.
Comment 1 Buovjaga 2020-04-24 17:39:18 UTC
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.