16 Replies Latest reply on Apr 4, 2013 1:50 AM by jesseg7681

    I don't understand the documentation about spell.removeWord

    jesseg7681

      According to the documentation here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?href=JavaScript_SectionPage.70.1.html&accessible=true

       

      Words cannot be removed from user dictionaries that were created using either customDictionaryCreate or customDictionaryExport.

       

      The above does not make sense to me, take the following example I made:

       

      spell.available;

      spell.customDictionaryCreate("mydictionary");

      spell.addWord("someword", "mydictionary");

      var word = spell.userWords("mydictionary");

      console.println(word[0]);

      spell.removeWord("someword", "mydictionary");

      word = spell.userWords("mydictionary");

      if(word !== null)

      {

          console.println(word[0]);

      }

      else

      {

      console.println("null");

      }

       

      Run through the console, I get:

      someword

      null

       

      Copy and paste snippet to try it yourself:

      spell.available;spell.customDictionaryCreate("mydictionary");spell.addWord("someword", "mydictionary");var word = spell.userWords("mydictionary");console.println("\n" + word[0]);spell.removeWord("someword", "mydictionary");word = spell.userWords("mydictionary");if(word !== null){console.println(word[0]);}else{console.println("null");}

       

      QUESTION:

      Is the documentation wrong? Or is there something I am missing? AFAICT, you *can* remove words from user dictionaries created with customDictionaryCreate as shown in my example.