Pages: 1
Print
Author Topic: Check for the difference between dictionary files  (Read 6506 times)
biswajitsr
Member

Posts: 44


« on: December 14, 2010, 02:41:32 AM »

There 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.
« Last Edit: December 14, 2010, 02:51:54 AM by biswajitsr » Logged
gcrews
Member

Posts: 265


« Reply #1 on: December 14, 2010, 11:00:17 AM »

I 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_USER\Software\Corel\XMetaL\WritingTools\10. 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_USER\Software\Microsoft\Windows\ CurrentVersion\Explorer\User Shell Folders) as well if any users may have changed the default my documents path as it is not any environmental variables.
Logged
biswajitsr
Member

Posts: 44


« Reply #2 on: December 15, 2010, 08:36:08 AM »

I 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.
Logged
gcrews
Member

Posts: 265


« Reply #3 on: December 15, 2010, 01:33:57 PM »

The 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. 
Logged
biswajitsr
Member

Posts: 44


« Reply #4 on: December 16, 2010, 01:51:55 AM »

Thanks 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 Documents\Corel User Files\XMetaL 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 Files\Corel\Shared\XMetaL\Writing Tools\10.0\WT10EN.MOR" what it indicates here? Do I need it, or only 2 user word lists will work for me?


* screen.JPG (70.04 KB, 769x738 - viewed 561 times.)

* screen2.JPG (22.77 KB, 916x189 - viewed 552 times.)
« Last Edit: December 16, 2010, 01:53:39 AM by biswajitsr » Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2606



WWW
« Reply #5 on: December 16, 2010, 04:41:11 AM »

You should not alter any files in this folder otherwise the software may become unstable or break:
C:\Program Files\Corel\Shared\XMetaL\Writing Tools\10.0

That 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 Documents\Corel User Files\XMetaL 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 Documents\Corel User Files\XMetaL 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.
« Last Edit: December 16, 2010, 04:46:16 AM by Derek Read » Logged
biswajitsr
Member

Posts: 44


« Reply #6 on: December 17, 2010, 05:21:28 AM »

I 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?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2606



WWW
« Reply #7 on: December 17, 2010, 04:49:21 PM »

This 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.


* CustomUWL.jpg (68.76 KB, 380x401 - viewed 538 times.)
« Last Edit: December 17, 2010, 04:59:21 PM by Derek Read » Logged
Pages: 1
Print
Jump to: