General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Setting the default spellchecking language
-
Marvin May 2, 2018 at 1:20 pm
Setting the default spellchecking language
May 2, 2018 at 1:20 pmParticipants 11Replies 12Last Activity 4 years, 9 months agoAll (or at least almost all) of our documents are in English and need to conform to Oxford (UK) English spelling.
As far as I know, we don't have any xml:lang tags in our documents.
Is there a way to set the default spellchecking language to UK English?
I found [url=http://forums.xmetal.com/index.php/topic,539]this thread[/url], but I'm not sure if it's what I need.
What I want, is basically two things:
1. If no language is selected/detected, always fall back to “UK English”.
2. If English is detected, always use the UK spelling (not US).It would probably even be good enough to “hardwire” UK English spellchecking into the installation if that's easier.
Is there a setting we can adjust? Or would we have to use a macro?
Thank you.
Derek Read May 2, 2018 at 7:25 pm
Reply to: Setting the default spellchecking language
May 2, 2018 at 7:25 pmLook in the help under “Checking your spelling” then “Language settings”.
That topic shows how to set the default spell checking language. In your case you will need to select “English-UK”.Marvin May 2, 2018 at 9:58 pm
Reply to: Setting the default spellchecking language
May 2, 2018 at 9:58 pmI'm sorry, my question was poorly worded.
We'd like the setting to be applied for many clients at the same time (at least when XMetaL Author is installed).
We already package macros and other customizations with the application, so it'd be great if we could just put this in some configuration file/macro/registry setting and then deploy that with the other files.Sorry about the misunderstanding.
Marvin May 4, 2018 at 7:38 am
Reply to: Setting the default spellchecking language
May 4, 2018 at 7:38 amIs there some way to achieve this by editing a configuration file/registry setting, or by using a macro that would be run on startup?
Derek Read May 4, 2018 at 8:24 pm
Reply to: Setting the default spellchecking language
May 4, 2018 at 8:24 pmThese settings are tracked in the registry here (for the default spell checking engine called “Writing Tools”):
HKEY_CURRENT_USERSoftwareCorelXMetaLWritingTools10In your case you should see a registry string (REG_SZ) called “DefaultTextDialect” set to “UK” and a key named “UK” with various settings inside it.
Make the changes you need to make in the UI on a test machine then observe what is changed there. That is what you will need to set on other user's machines.
Why Corel? The default spelling engine was created by a company purchased by Corel, and Corel was the owner of XMetaL during the time this particular engine was integrated with XMetaL (around 2001/2002). When Corel sold the XMetaL product line we retained the rights to continue using this “Writing Tools” engine.
A few years ago we implemented support for “Hunspell” a popular 3rd party spell checking engine but as many “dictionaries” for that engine have specific license terms we do not bundle them. This might be of interest to you if you need detailed control over the content in the dictionary files. See: http://forums.xmetal.com/index.php/topic,3011.0.html
Marvin May 7, 2018 at 11:24 am
Reply to: Setting the default spellchecking language
May 7, 2018 at 11:24 amThank you so much!
Marvin May 7, 2018 at 12:56 pm
Reply to: Setting the default spellchecking language
May 7, 2018 at 12:56 pmJust one more question:
We'd like to maintain a wordlist for our organization.
What's the recommended way to create such a wordlist and install it on all machines? We use a centralized deployment mechanism, so it's no problem to automatically roll this out to all clients.
Thank you.Derek Read May 8, 2018 at 12:27 am
Reply to: Setting the default spellchecking language
May 8, 2018 at 12:27 amThe “user word list” used by Writing Tools is stored here:
%appdata%DocumentsCorel User FilesXMetaL
That's the default location. You can put the files anywhere on your machine and then tell Writing Tools where a particular file is by adding it to Writing Tools for a particular language using Options > User Word Lists.
That setting is stored in the registry as well.
You can point to up to 10 different files for each language. At least I think it's 10. I can't see any reason or need to go beyond 1 or 2. However, what that means is that you could have a file that all users use, different files for different groups, or a combination of multiple files where some group only needs one and another group might use that one plus additional files. I think in the vast majority of cases a single file is enough for all. However, what this does allow is to have a file you install that does not get updated by the user, and leave their own UWL set as the default so they can add their own words to it (when a user adds words to the spell checker they go into the “default” UWL file).
Marvin May 8, 2018 at 9:18 am
Reply to: Setting the default spellchecking language
May 8, 2018 at 9:18 amI guess we can also just ship a modified system word list (under C:Program Files (x86)CorelSharedXMetaLWriting Tools10.0)?
But what's the best way to modify that file?
Shall we just update the user word list on one machine and then ship that as WT10EN.UWL (or WT10UK.UWL?)?
Thank you.Derek Read May 8, 2018 at 9:59 pm
Reply to: Setting the default spellchecking language
May 8, 2018 at 9:59 pmWe don't support making modifications to the main word list files and are unable to provide any software for working with them.
So yes, adding words to a UWL and then delivering that is the best option.
…unless you wish to look into using the Hunspell dictionaries. The only true benefit to using Hunspell would be to allow you to limit the words in the main file to words you approve (ie: with the right 3rd party tools, you could create your own files from scratch or remove words from an existing file set). See: http://forums.xmetal.com/index.php/topic,3011.0.html
Marvin May 9, 2018 at 1:42 pm
Reply to: Setting the default spellchecking language
May 9, 2018 at 1:42 pmThank you very much. I really appreciate the great support you give us.
What is the DefaultUIDialect registry setting for? It doesn't seem to get updated from “EN” to “UK”.
Would it make sense to set this to “UK” as well?Derek Read May 9, 2018 at 8:40 pm
Reply to: Setting the default spellchecking language
May 9, 2018 at 8:40 pmMy recommendation would be to only make changes using the spell checker's options dialogs then copy those changes to other machines once things are configured as you want them to be.
If you make a change in the dialogs and something is not changed in the registry then leave it as is.
-
AuthorPosts
- You must be logged in to reply to this topic.