ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Clipboard Help+Spell

Sharing a custom spelling dictionary between applications

<< < (2/3) > >>

mouser:

for all of my programs, if you edit a file called ConfigDir.ini in the application directory, you can override the default configuration directory of any of my programs.  So if you want them somewhere else, just copy the sample ConfigDir and make a ConfigDir.ini with the config directory you want.

superticker:
For all of my programs, if you edit a file called ConfigDir.ini in the application directory, you can override the default configuration directory of any of my programs.
-mouser (August 22, 2013, 04:56 PM)
--- End quote ---
I edited ConfigDir.ini so
  CONFIGDIR = %MYDOCUMENTS%

but I may change it to
  CONFIGDIR = %APPDATA%
later so my setting roam between different computers in my domain. At any rate, everything is working as it should. Thanks a bunch.

Let me know if it becomes possible to share the same custom.adu dictionary across applications. If it's not (say due to constant write locking), then has anyone setup file mirroring between several custom.adu files (say with synctoy.exe) so they automatically synchronize upon logging off?

mouser:
If you want to experiment (and i emphasize "experiment") because i'm not sure this will work, try adding a line to your ConfigDir.ini that says:
DICTIONARYDIR = put_full_path_to_another_app_directory_containing_your_other_custom.adu

and then see if it shows up in your chs spell configuration list of dictionaries available.

superticker:
If you want to "experiment" because I'm not sure this will work, try adding a line to your ConfigDir.ini that says:
DICTIONARYDIR = put_full_path_to_another_app_directory_containing_your_other_custom.adu

and then see if it shows up in your chs spell configuration list of dictionaries available.
-mouser (August 23, 2013, 01:17 AM)
--- End quote ---
I'm assuming DICTIONARYDIR is providing read-only access to third-party custom.adu files, correct? After all, if it write locks them, that will hang any third-party applications when they try to update their private copy of custom.adu. Of course, if a program only briefly write locked custom.adu, that may circumvent this problem.  After all, end-users wouldn't be updating several custom.adu spell dictionaries at once.

Can I specify several directories in DICTIONARYDIR separated by semicolons?

What we really need is a Windows dictionary service that provide "write arbitration" for dictionary resources across the OS, but writing a monitor for doing that is another problem. :-\

mouser:
I just don't know enough about using multiple dictionary files to talk intelligently about them.
I use the Addict Spell Check library to manage all of the spelling stuff.  You can read more about it's use of multiple dictionaries here:
http://www.addictivesoftware.com/ed-dictionaries.htm

So the DICTIONARYDIR variable i just added to the ConfigDir.ini tells the spell checker to look in this directory for additional dictionaries.  I think that means it should show them in the Spelling Options as "Additional Dictionaries" that are now available.

Now it may only make those available for read-access as additional dictionaries, and insist that the actually modifications be done in an exclusive dictionary file -- or it may let you then choose a dictionary in that directory to use as the one to add to, i'm just not sure.  And I also don't know if it locks it during changes -- but I would not be surprised if it does not lock it, and if it will let you share it and modify it and only lock it during short periods of changes.  But I don't know for sure.

I also don't know what other programs you might have that also use this dictionary format (while this library can READ the Microsoft Office dictionary, it will not modify it).

I will add support for specifying multiple ; separated directories with DICTIONARYDIR.  But you will still have to go to spell options in CHS to enable the dictionaries you want to use i believe.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version