spell check flags space before a hyphen

Having trouble installing Oxygen? Got a bug to report? Post it all here.
laurenkusa
Posts: 1
Joined: Fri Feb 10, 2017 6:00 am

spell check flags space before a hyphen

Post by laurenkusa »

Hi,

we have a lot of text where we write use the -abcd argument and the spell check always flags the hyphen. Is there a way to tell Oxygen to ignore the white space before the hyphen?

We are using DITA with OXygen, in case that maters.

Thanks,

Lauren
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: spell check flags space before a hyphen

Post by Radu »

Hi Lauren,

What version of Oxygen are you using?
Can you post a small sample XML fragment showing how that text is used in context? Maybe also tell us if you changed the Oxygen spell checking global settings in any way.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
laurenkusa
Posts: 1
Joined: Fri Feb 10, 2017 6:00 am

Re: spell check flags space before a hyphen

Post by laurenkusa »

Hi Radu, I got super-busy and forgot to check the forum.

I will try to get back to this post in a couple of weeks.

Lauren
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: spell check flags space before a hyphen

Post by chrispitude »

We have option names with leading hyphens in our content:

Code: Select all

<p>Use the <codeph>-verbose</codeph> option to...</p>
Oxygen's spell checker does not care about the leading hyphen. However, it will spell-check the word following the hyphen in the usual way:

Code: Select all

<p>Use the <codeph>-more_verbose</codeph> option to...</p>
Because "more_verbose" is not a word, the spell-checker will flag it.

We have many such tool-specific option names that are not words. But because we always wrap these in <codeph>, we use the "Ignore elements" feature of the Oxygen spell-checker to exclude <codeph> (and various other) elements from spell-checking:

https://www.oxygenxml.com/doc/versions/ ... ts-section

This has worked great for us.
Post Reply