General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Check for the difference between dictionary files
-
biswajitsr December 14, 2010 at 8:41 am
Check for the difference between dictionary files
December 14, 2010 at 8:41 amParticipants 6Replies 7Last Activity 12 years, 3 months agoThere is use of dictionary files (.UWL) in XMetal. I need to give the client the customization build for XMetal. That build will include dictionary files. The admin user of the client will make changes to the dictionary files by adding or deleting to those files. And after chages done will provide me the changed .UWL files. I need to include those files with my build. Users of client will run the batch file to install the customization. And the .UWL files modified by the admin user of the client will be deployed to all users of client. Upto this point I know the process.
Now the new thing is that, if any user of client has modified the .UWL files then by running batch file, those changes will also be there in that user's machine with the changes by admin user of client. So will you please let me know, whether this is possible or not. If possible then give the sample code please. Thanks in advance.
gcrews December 14, 2010 at 5:00 pm
Reply to: Check for the difference between dictionary files
December 14, 2010 at 5:00 pmI came across the same issue a while ago. In the Xmetal you can specify more than one main word list or user list.
http://na.justsystems.com/webhelp/en/xmetalauthor/enterprise/6.0/XMEE.html#User%20word%20lists
The trick is modifying these items programmatically. I found that the settings are stored in HKEY_CURRENT_USERSoftwareCorelXMetaLWritingTools10. Initially I also ran into the issue with modifying the UWL in the my documents folder because some people changed their my documents folder mapping. You have to find the my documents location from a registry (HKEY_CURRENT_USERSoftwareMicrosoftWindows CurrentVersionExplorerUser Shell Folders) as well if any users may have changed the default my documents path as it is not any environmental variables.biswajitsr December 15, 2010 at 2:36 pm
Reply to: Check for the difference between dictionary files
December 15, 2010 at 2:36 pmI think this is what I need, as you described. But it is not completely clear to me. My confusion is if I can manage multiple .uwl files in same folder then what is the use of the registry here. What those indicates.
Will you please tell the steps to follow to keep 2 wordlists one for client user edit and one changed by admin user of client. And how I shall deploy the second one only and the first one will not be replaced. If I am not wrong, this is the way you suggested to follow.
gcrews December 15, 2010 at 7:33 pm
Reply to: Check for the difference between dictionary files
December 15, 2010 at 7:33 pmThe first registry item is just where I found that you can programmatically configure Xmetal to use a second list. Without that you would have to go around to each writer’s computer and configure Xmetal to use the new file initially.
The second registry is just where you can find the target for the “my documents” folder. If you right click on my documents and go to properties there is a target folder location that can be customized if the user has permissions. Most likely everyone’s “my documents” folder will be in the documents and settings under the user folder but I was just pointing out that may not always be the case.biswajitsr December 16, 2010 at 7:51 am
Reply to: Check for the difference between dictionary files
December 16, 2010 at 7:51 amThanks a lot for your valuable guidance. I got the idea upto some extent from your previous descriptions. I copied the current dictionary file within my “My DocumentsCorel User FilesXMetaL 4” folder named “WT10US.UWL” and created a new one there with name “WT11US.UWL”. Left the default file as it was. Now I need to change the new file “WT11US.UWL” with XMetal author and deploy with .bat file to users' machine. But XMetal is not checking from the new dictionary.
See the screens from my machine. from registry “WritingTools/10/Main Word Lists/US/Word List 0” I got the path “C:Program FilesCorelSharedXMetaLWriting Tools10.0WT10EN.MOR” what it indicates here? Do I need it, or only 2 user word lists will work for me?
Derek Read December 16, 2010 at 10:41 am
Reply to: Check for the difference between dictionary files
December 16, 2010 at 10:41 amYou should not alter any files in this folder otherwise the software may become unstable or break:
C:Program FilesCorelSharedXMetaLWriting Tools10.0That folder contains core spell checking files necessary for the proper operation of the spell checker (ie: the default built-in lists of words and other functionality needed to spell check all the languages that are supported).
The files that are located inside My DocumentsCorel User FilesXMetaL 4 are saved when you use the Add button inside the spell checker. By default they are empty until you add a word. It is these files that you may share between users if you like. The filename is not important in this case if you are creating your own UWL file or duplicating an existing one to modify and share. What is important is that you add it to the list of User Word List files. This should normally be done by using the standard interface inside the spell checker by selecting: Options > User Word Lists…
We understand that you are attempting to deploy the same files to multiple machines, so if you need to make modifications to the Windows Registry in order to aid with deployment of these UWL files I would suggest you obtain a registry monitoring tool and interact with the spell checker in the usual way (as noted above) and then duplicate the settings that are made on your other user's machines. Note that the dialog you interact with here does not limit you to using the My DocumentsCorel User FilesXMetaL 4 folder if you wish to select another location.
I believe the questions you have been asking on the forum were previously answered quite a while ago in a very detailed message sent as part of the partner support being provided to you, and then resent again yesterday. You may wish to check with your colleagues to coordinate your efforts in this area so that you are not duplicating the work they are doing. From what I understand you are not in the same location so perhaps that is why there is lack of communication occuring? If you need a copy of the same message please let us know so we can send it directly to you as well.
biswajitsr December 17, 2010 at 11:21 am
Reply to: Check for the difference between dictionary files
December 17, 2010 at 11:21 amI talked to my coleagues. But the scenario is something new here. The use of multiple dictionary files for same language is new here. Please let me know whether it is possible to use 2 .uwl in same time? If yes then how? I am not able to make it working. I described above how. Am I missing something to do here?
Derek Read December 17, 2010 at 10:49 pm
Reply to: Check for the difference between dictionary files
December 17, 2010 at 10:49 pmThis is a standard feature. You can include up to 10 UWL files for a particular language.
1. Launch XMetaL Author and open any document.
2. Press F7 to spell check. If asked to close the spell checker answer “no”.
3. Select Options > User Word Lists…
4. In the dialog that appears select “Add List” then browse to and select your UWL file.
5. The file you select will be listed along with any others you have added, plus “Document Word List” and the default UWL file for the current language (in the screenshot I've attached it is “WT10US.UWL” which is for US English).
6. Dismiss the dialog to save your options.See screenshot called CustomUWL.jpg for an example of what you should see in step 5.
The “Document Word List” includes words that you selected “Skip” or “Skip All” for during the current session. These are temporary and are not added to the UWL file. They are lost when you shut down XMetaL. Words are added to the UWL file when you select the Add option during spell checking or if you use the “Add Entry” button in the “User Word List” dialog.
Everything listed in the “User Word List” dialog will be used for spell checking that language on top of the standard spell checking (defined in a MOR file). Files you add to the list can be enabled / disabled using the box with the x in it to the left of the UWL file, or you can simply remove them using the “Remove List” button if you wish to permanently disable their usage.
-
AuthorPosts
- You must be logged in to reply to this topic.