Page 1 of 1

Spell checker finds no errors

Posted: Thu Aug 29, 2013 12:21 pm
by espenore
Greetings,

I have not found this problem when I searched the forum, so I ask as a new topic: using the xml-editor 15.0, build 2013071613, Windows 7, I have installed what may or may not be a valid Hunspell dictionary. This dictionary and the aff-file I have given the code ddo_DDU.dic/ddo_DDO.aff and I believe they follow the Hunspell standard. In any case they don't give any error messages. But: here is the problem: whatever strange and non-existing words I introduce to my xml-file, no errors are found! I have selected the Hunspell spell checker, and when I place the marker at the top of my XML-file and select Check spelling from the Edit-menu I get the spell-checking window with the message: "No spelling errors were found". So does anyone have an idea what I should do to get the speller to find that there are errors when the xml-file contains non-existing words in any language?

Espen Ore
University of Oslo

Re: Spell checker finds no errors

Posted: Thu Aug 29, 2013 5:14 pm
by adrian
Hello,

I'm not sure if it's a spelling error, but the files you mentioned have different names (note the last letter difference): ddo_DDU.dic/ddo_DDO.aff
They should be named the same, only the extensions should differ.
Please make sure you have followed the instructions from the user manual for installing the dictionary:
Adding a Dictionary and Term Lists for the Hunspell Checker

After restarting Oxygen, check in the spell checker settings (Options > Preferences, Editor / Spell Check) if the language appears in the 'Default language' list.
BTW, for what language is this?

Regards,
Adrian

Re: Spell checker finds no errors

Posted: Mon Sep 02, 2013 11:35 am
by espenore
Sorry about my typo in the message there is no difference in real life, only in this forum.
adrian wrote:Hello,

I'm not sure if it's a spelling error, but the files you mentioned have different names (note the last letter difference): ddo_DDU.dic/ddo_DDO.aff
They should be named the same, only the extensions should differ.
Please make sure you have followed the instructions from the user manual for installing the dictionary:
Adding a Dictionary and Term Lists for the Hunspell Checker
Yes, I am pretty sure that I have followed the instructions.
After restarting Oxygen, check in the spell checker settings (Options > Preferences, Editor / Spell Check) if the language appears in the 'Default language' list.
BTW, for what language is this?

Regards,
Adrian
This is our special code for one version of Danish.

I have now done some more testing, and I find that if we do *not* use the option for following xml:lang-values but instead select a default language (where our DDO appears in the list with no problems), then the spell checking works. So the matter is now that we can get our work done, but I do not understand why the use of xml:lang does not seem to work with any language selection at all.

All the best,
Espen

Re: Spell checker finds no errors

Posted: Mon Sep 02, 2013 12:14 pm
by adrian
Hi,

What values do you use for the xml:lang attributes?
I've tested with xml:lang="ddo-DDO" and xml:lang="ddo_DDO" and it seems to work fine. However with xml:lang="ddo", the spellchecker completely ignores it.

Regards,
Adrian

Re: Spell checker finds no errors

Posted: Mon Sep 02, 2013 2:04 pm
by espenore
adrian wrote:Hi,

What values do you use for the xml:lang attributes?
I've tested with xml:lang="ddo-DDO" and xml:lang="ddo_DDO" and it seems to work fine. However with xml:lang="ddo", the spellchecker completely ignores it.
Thank you very much! For some silly reasons I thought that I should use "DDO" or "ddo" as xml:lang-attribute value. Now we can also look at the attribute-controlled way of doing it!

All the best,
Espen