Abbreviation such as "e.g." gives spelling error
Oxygen general issues.
-
- Posts: 26
- Joined: Tue Oct 28, 2014 1:19 pm
Abbreviation such as "e.g." gives spelling error
Using the Hunspell spelling checker in OxygenXML, it gives an error on any usage of e.g., for example
this will e.g. give a spelling error
It reports the error on the sequence "e.g" and even suggests correcting it to "e.g." (so it must know it's legal) - but if you do that, you get two periods and it still reports an error!
It states here http://www.oxygenxml.com/spell_checking.html that it is the same checker as used in Mozilla, but Firefox does not exhibit this problem.
I have not been able to find a setting to fix this. Any clues?
this will e.g. give a spelling error
It reports the error on the sequence "e.g" and even suggests correcting it to "e.g." (so it must know it's legal) - but if you do that, you get two periods and it still reports an error!
It states here http://www.oxygenxml.com/spell_checking.html that it is the same checker as used in Mozilla, but Firefox does not exhibit this problem.
I have not been able to find a setting to fix this. Any clues?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Abbreviation such as "e.g." gives spelling error
Post by sorin_ristache »
Sorry, I don't get a spelling error for e.g. in either Text editing mode or in Author mode. I tried in Oxygen 16.1 on both Windows and Linux.
In what type of editor panel did you check e.g. for spelling problems: an XML editor panel, a plain text one, etc.?
Maybe you have different spelling options? Do you get e.g. marked as a spelling problem in the XML editor panel after you go to Options -> Preferences -> Editor / Spell Check (or alternatively you press the Options button in the Spelling dialog box) and press the Restore Defaults and OK buttons?
I get the same behavior, which is correct, since the spell checking dictionary sees e.g. as legal.DanTemple wrote:It reports the error on the sequence "e.g" and even suggests correcting it to "e.g." (so it must know it's legal)
I can't reproduce that. If I correct the e.g with the Replace button in the Spelling dialog box it will replace e.g with e.g. in the editor panel which is correct. I don't get two period characters.DanTemple wrote:but if you do that, you get two periods and it still reports an error!
In what type of editor panel did you check e.g. for spelling problems: an XML editor panel, a plain text one, etc.?
Maybe you have different spelling options? Do you get e.g. marked as a spelling problem in the XML editor panel after you go to Options -> Preferences -> Editor / Spell Check (or alternatively you press the Options button in the Spelling dialog box) and press the Restore Defaults and OK buttons?
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
-
- Posts: 26
- Joined: Tue Oct 28, 2014 1:19 pm
Re: Abbreviation such as "e.g." gives spelling error
Aha. It only fails when the language is specified in the <concept> element, see below.
Then it fails on both Windows (with default settings) and Linux for me.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_m2t_2cm_rq" xml:lang="en-US">
<title></title>
<shortdesc></shortdesc>
<conbody>
<p>This is a sentence with e.g. an abbreviation.</p>
</conbody>
</concept>
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Abbreviation such as "e.g." gives spelling error
Post by sorin_ristache »
It fails also without the xml:lang attribute, if I select the English (United States) spelling dictionary in the Spelling dialog box. The default spelling dictionary in Oxygen is English (generic) and this is why I did not get the problem before.
It is a bug in the English (United States) dictionary which is used by both Oxygen and Firefox. So I expect Firefox to report the same spelling problem on a Web page, in a form or in other type of editable box that has the xml:lang="en-US" attribute, because Oxygen does the spell checking with the same engine and dictionaries from Mozilla. Maybe the editable element (and all its ancestors) on the web page where you did not get the spelling problem in Firefox does not have this xml:lang="en-US" attribute.
The solution for now is to switch to one of the English (generic) or English (United Kingdom) dictionaries in the Spelling dialog box in the Oxygen application.
It is a bug in the English (United States) dictionary which is used by both Oxygen and Firefox. So I expect Firefox to report the same spelling problem on a Web page, in a form or in other type of editable box that has the xml:lang="en-US" attribute, because Oxygen does the spell checking with the same engine and dictionaries from Mozilla. Maybe the editable element (and all its ancestors) on the web page where you did not get the spelling problem in Firefox does not have this xml:lang="en-US" attribute.
The solution for now is to switch to one of the English (generic) or English (United Kingdom) dictionaries in the Spelling dialog box in the Oxygen application.
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service