Skip navigation
nicky615
Currently Being Moderated

custom dictionary

Aug 1, 2012 10:09 PM

Hi All,

 

         I need to create a new custom dictionary and add words to it to language as English -USA.

         I am successful in adding words to existing User Dictionary(target).

         how to set target as custom dictionary(say new dictionary i ceated is "customdict.udc").

         please help.

Thanks,

nick.

 
Replies
  • Currently Being Moderated
    Aug 5, 2012 12:47 PM   in reply to nicky615

    Hi Nick

     

    appliedLanguage:{name:"Hebrew", singleQuotes:"‘’", doubleQuotes:"“”", hyphenationVendor:"WinSoft Extended", spellingVendor:"", thesaurusVendor:"", dictionaryPaths:["C:\Users\Trevor\AppData\Roaming\Adobe\InDesign\Vers ion 7.0-ME\en_GB\Dictionaries\MindSpell\he.udc"], icuLocaleName:"he_IL", spellingVendorList:["0x11a500kMSLHunSpellServiceName"], hyphenationVendorList:["WinSoft Extended"], label:""}

     

    Is an example of the properties of a selection of a file on my (windows) computer so I think you would want something like

    app.languagesWithVendors[c].dictionaryPaths=["C:\Users\Trevor\AppData\Roaming\Adobe\InDesign\Version 7.0-ME\en_GB\Dictionaries\MindSpell\he.udc"]
    

     

    But if you type the above line as written it wont work for obvious reasons

     

    Run this script for some help

     

    for (c=0; c<app.languagesWithVendors.length;c++)
     {
    try {$.writeln(c+") "+app.languagesWithVendors[c].name+" "+app.languagesWithVendors[c].dictionaryPaths)}
    catch (d) {$.writeln(c+"] "+app.languagesWithVendors[c].name+" "+d)}
    }
    

     

    you might have to use the addDictionaryPath() command see http://jongware.mit.edu/iccs6js_html/iccs6js/pc_LanguageWithVendors.ht ml

     

    Please reply with what worked

     

    Trevor

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points