Skip navigation
This discussion is archived

Custom dict troubleshooting

3079 Views 8 Replies Latest reply: Nov 25, 2009 1:29 PM by etresoft RSS
Jongware Level 2 Level 2 (265 points)
Currently Being Moderated
Nov 23, 2009 2:14 PM
Is there a simple way to flush the cache of
While developing a new dictionary to add, I can (naturally) only test it by installing and starting Dictionary. However, if the new file contains some (any!) kind of error, starts behaving erratically [*], and adjusting and reinstalling the new file does not fix it. I found a small clean all systems cache program, but it clears out way too much, and (even worse!) requires a system restart... I already knew restarting sometimes made come alive again -- there must be an easier way!
Is there?

[*] Symptoms include not removing labels for already removed dictionaries, finding an entry in the index but not showing the page itself, then gradually disintegrating entirely ... (In case this sounds familiar to anyone.)
Mac OS X (10.6.2)
  • K T Level 7 Level 7 (23,220 points)
    Currently Being Moderated
    Nov 23, 2009 5:05 PM (in response to Jongware)
    Hi Jongware & welcome to the discussions...

    Delete the following file?

    Intel iMac X•VI•II, OLED 3D Pano tri-view
  • etresoft Level 7 Level 7 (23,930 points)
    Currently Being Moderated
    Nov 23, 2009 5:15 PM (in response to Jongware)
    How are you building your dictionary files? Are you using the Dictionary Development kit? If you base it on XML and XSL and you have errors, it should blow up way before you get it to
    MacBook 2007 (white), Mac OS X (10.6.2), 2.0 Ghz/4GB Ram/200 HD
  • etresoft Level 7 Level 7 (23,930 points)
    Currently Being Moderated
    Nov 24, 2009 2:34 PM (in response to Jongware)
    Jongware wrote:
    Etresoft, yes, I created it from an XML file with a custom XSLT. Unfortunately, there are a few quirky things that don't appear to be caught by the Jing Schema test Apple recommends.

    I've never heard of the Jing Schema test.

    A few of these appear to be:

    "$" is not allowed as an id label -- not flagged as an error
    ul not any containing li items -- not flagged as an error

    I wouldn't expect $ to be acceptable as an id label. I try to keep my output clean so that I wouldn't have anything like empty ul tags.

    As Dictionary troubleshooting info appears to be somewhat scarce, I'll try a few things (including aforementioned cache cleaning) and report my findings.

    Try cleaning up the cache and see if it helps. I have some scripts I could give you. I have one XSL file that emits a big HTML file for testing.

    What is your dictionary content? I created one dictionary with classical Arabic script and never complained. The Arabic gave 10.6 some problems but those were fixed in 10.6.2.
    MacBook 2007 (white), Mac OS X (10.6.2), 2.0 Ghz/4GB Ram/200 HD
  • etresoft Level 7 Level 7 (23,930 points)
    Currently Being Moderated
    Nov 24, 2009 6:15 PM (in response to Jongware)
    Jongware wrote:
    It's mentioned in the Programming Guide under Creating Dictionaries. This worked (well.. not quite) for me:
    java -jar ../../jing-20081028/bin/jing.jar ../documents/DictionarySchema/AppleDictionarySchema.rng [xml file here]

    That's why I ignored it - Java!

    InDesign JavaScript Help -- with way more hyperlinks than the original

    I'm not sure is really appropriate for this. Your HTML content looks really nice. It seems like would be a step backwards. It might be better to have a service or program that provides a single-word index into your HTML. You could define a system-level hot key for lookup - or something specific to your favorite text editor.
    MacBook 2007 (white), Mac OS X (10.6.2), 2.0 Ghz/4GB Ram/200 HD
  • etresoft Level 7 Level 7 (23,930 points)
    Currently Being Moderated
    Nov 25, 2009 1:29 PM (in response to Jongware)
    Jongware wrote:
    I have to agree on the different look-and-feel ... If you think the HTML looked good, well, the Windows CHM version looks the same but has a full index and a free text search option.

    There are a number of very nice CHM readers for the Mac too. is just so specialized to dictionaries.

    The plain HTML version is okay, but you cannot search through all pages automatically, which is why I added a manually created contents and index. For plain HTML, putting everything into a single file is just not an option.

    You might look into using Apple's help system. It is similar to CHM in many respects. It also gives you full text search. Everything is based on HTML too. You could definitely put the content into an Apple Help system. You might event be able to hack-up InDesign some way to include your help in their menu structure somewhere.

    I've got an old "generic" starter project for Apple Help somewhere. It is based on my XSL system, but that should be pretty close to your dictionary sources.

    I don't even have a favourite text editor at the mo' -- this is my 2nd week on a Mac! Any recommendations? TextWrangler is ... adequate ... but only barely, as it splutters and coughs when I edit the first line of an 8 meg document. (Now that's no problem at all with TextPad!)

    I'm quite font of Xcode's editor. It has nice features, understands lots of languages, and doesn't get in my way. I turn off all the automatic formatting though. That's useless. I don't think it would handle a very large file any better though.

    I like to use nedit (via X11) to edit really big files or files on slow sshfs links. It doesn't have all the overhead of Xcode, etc.
    MacBook 2007 (white), Mac OS X (10.6.2), 2.0 Ghz/4GB Ram/200 HD


More Like This

  • Retrieving data ...

Bookmarked By (1)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.