InDesign 2.0: Automating Adding Words to the Dictionary


InDesign 2.0: Automating Adding Words to the Dictionary

Updated for InDesign CS: Import Words into InDesign CS Dictionary

A question from a customer: how do you import dictionaries into InDesign 2.0?

There are two real axioms about working for Adobe. (a) there is always someone smarter than you who can help (b) InDesign is scriptable.

By doing a Euclidean join of these axioms, I was able to solve the problem. Thanks to Olav from Adobe in Seattle for the coding. What Olav turned around in hours would have taken me days. Essentially what he has created is a little Visual Basic application that will import a text file of words into the exception dictionary of InDesign. This dictionary is attached to a specific language dictonary.

Download the ZIP file containing the IDAddWords application: InDesign 2.0 Dictionary Script

[1102] 01 addwords zip contents

This .zip file contains the source code (frm) and Visual Basic Project (vbp) If you do not have Visual Basic, it is also supplied as a .exe. Just Unzip the contents anywhere.

Double clicking on the .exe, you will see the following screen:

[1103] 02 initial screen

The Language: popup allows you to select which language dictionary you would like to insert the words into.

The Add Words button allows you to select a text file that contains a word per line, this file contains the extra words you would like to add to the currently selected Language: InDesign dictionary. It will prompt you for a text file, and the words inside this file will be inserted as exceptions into the Language: InDesign dictionary.

The text file would look like the following in Notepad or similar:

[1104] 03 text file in notepad

Remove All removes all exception words (not the original words supplied by InDesign in the Dictionary).

View Word List allows you to view the exception words in the current Language: InDesign dictionary in the scrolling panel.

Save Word List will save a text file; a word per line, of the current exception words in the dictionary.

Please note (from the InDesign 2.0 Online Help Files:)

By default, hyphenation and spelling rules are based on the dictionary for the language specified for the text. When you customize the words in a dictionary, you actually create exception lists of added words (words that aren’t already in the dictionary) and removed words (existing dictionary words you want InDesign to ignore).

By default, hyphenation and spelling exceptions are located only in user dictionary files stored outside the document on the computer where InDesign is installed (dictionary filenames end with the extensions .udc and .not). However, you can also store exception lists inside any InDesign document. In addition, you can specify that the text-composition engine composes text using the word list stored in the external user dictionary, the word list stored in the current document, or both. Specify storage and composition settings in the Dictionary panel of the Preferences dialog box.

InDesign 2.0 Add Dictionary

InDesign 2.0: Automating Adding Words to the Dictionary

One of the furphies (misstatements, lies, errors) is that a composite PDF cannot hold spot colours. Wrong. InDesign 2.0 and Illustrator 10 change the rules here too somewhat: both can create composite, trapped PDF with transparency. Before these applications, doing this relied on high end, “prepress” systems. Will need to write more about this soon…

PDFs for Onscreen Presentations


On Screen Presentations with Adobe PDF.

Adobe Acrobat (including the free Reader) has the capability of taking any PDF and displaying it “full screen” In this mode, a black background is drawn to the screen, and then each page of the PDF is displayed.

Using the arrow keys or mouse button, the next page of the PDF can be displayed.

By making PDF files that fix the scale of the screen (a ratio of 1.3 to 1; ie: 1024 x 768 pixels) – the onscreen presentation can match a presentation made in an application such as Microsoft PowerPoint. In Adobe InDesign, you would create a document where its measurement is in this ratio.

In fact, you can create presentations in PowerPoint, and using the PDFMaker plugin (comes as a part of Acrobat 4 and 5) PDFs for onscreen presentation.

By using PDF, the fonts are embedded into the PDF (no need to send them along with the PPT file)

Displaying Fullscreen

From the View>Full Screen option, a PDF will be displayed in full screen. It is also worthwhile remembering the keyboard commands for zooming in (control +) or zooming out (control -) — all the keyboard shortcuts still work in Full Screen mode.

In Edit>Preferences>General, and specifically in the Full Screen section of Acrobat you are able to customise:

– auto advance of slides every n seconds
– keyboard/mouse advancing of slides
– background colour

In File>Document Properties>Open Options you can specify that when a PDF is opened, it defaults to Full Screen mode.

3DAP

The 3DAP (PDF Guidelines for Magazine Advertising Delivery) (Digital Advertising Delivery for Australian Publications) has been updated.

Now this is way Cool.Online Lego. Now I’ll never get anything done at work. At least it won’t be as noisy as the real stuff.

And speaking of coolness in toys, The Propellerheads have announced an updated to Reason. For music makers, this has to be one of the greatest, simplest yet most powerful computer music creation around.

Scripting Spot Colour Changes in Illustrator 10


Scripting Spot/Special Colors in Illustrator 10

A question from an Adobe Systems collegue- how do you script changing a named spot or special colour to a CMYK colour in Illustrator 10?

In this piece of AppleScript, it assumes that the first document is the one we are interested in. Change to suit your own purposes.

The object new_definition contains a record detailing the new CMYK object’s colour definition.

The variable change_swatch is the named swatch we are looking for.

Finally, the line starting set color... does the changing. It gets the named colour and changes it to the new colour definition.

tell application "Adobe Illustrator 10"

tell document 1

set new_definition to {cyan:0.0, magenta:75.0, yellow:10.0, black:50.0}
set change_swatch to swatch "changing_this_colour"
set color of spot of color of change_swatch to new_definition

end tell

end tell

I hope this helps someone out