Automating the Tagging Process
The process of creating tags and then going through an entire InCopy document and manually applying tags to each part of the content could take as long as a TV awards show. Doesn't this seem a bit tedious? Fortunately, there are ways to streamline and automate the process.
Saving XML Tags
If you regularly create the same types of documents, it's quite possible that you will be using the same tags in those documents. In the same way that your publication might regularly use the same swatches or the same styles, you might have a standard set of XML tags, which is easily saved as an XML file. If you manually created a set of tags in the Tags palette, as we described earlier, choose Save Tags from the Tags palette menu. In the Save Tags as XML dialog (Figure 7.5), navigate to where you'd like to save them and give your file a name. We find it's particularly helpful to name your set of tags in a way that makes it clear that this is the source file for tags, because there's nothing unique about the file format of a set of saved tags. It's an XML file much like any other, so an appropriate name, such as StandardXMLTags.xml, can be quite helpful.
Figure 7.5. Save your XML tags with an intuitive filename and in a location that your coworkers can locate easily.
[View full size image]

Loading XML Tags
As we mentioned earlier, someone may have previously saved an XML tag file from InCopy for you to load into your current InCopy document. From the Tags palette menu, choose Load Tags (Figure 7.6), navigate to the .xml file, click open, and your Tags palette is populated with the tags from the XML file you've loaded.
Figure 7.6. You can load tags from an XML file into an InCopy file.

Opening XML Files
InCopy does not allow you to import XML files into an existing InCopy document. On the other hand, you can open an XML file in InCopy the same way you would open any other file, by clicking File > Open. Your XML file will open in InCopy with all its tags intact and the structure available in your Structure pane, ready for you to go to work.
Autotagging Content
Autotag is a feature new to InCopy CS2 that automatically attaches default tags to newly created content in InCopy. Configure Autotag from the Tags palette menu by selecting Tagging Preset Options, which opens the Tagging Preset Options dialog where you specify the default tags. Using the three pull-downs in the Tagging Preset Options dialog, you can set InCopy to pre-assign an XML tag to each newly created text frame, table, or table cell in InCopy. Click the pull-down menu for Text Frames and you'll see a list of tags currently available in your Tags palette (Figure 7.7). Choose the tag you want to associate with text frames by default. If you choose the body tag, anytime you invoke the Autotag feature, a new text frame will automatically be tagged body. You should also choose a preset tag for tables and table cells.
Figure 7.7. Assign default tags for text frames, tables, and table cells for the Autotag feature.


Mapping styles to tags
Odds are you've already used paragraph styles and character styles throughout the story. You can take advantage of those styles by Chapter 4).When you map styles to tags, you're telling InCopy that a given style (or even several styles) in InCopy always corresponds to a given tag. For instance, you might have a style called headline that corresponds to a tag called headline. From InCopy's Tags palette menu, choose Map Styles to Tags. In the Map Styles to Tags dialog, the left column lists styles available in your InCopy document (even ones that are not in use), and the right column lists available tags. The initial view of this dialog lists everything as Not Mapped. Just click on any of the Not Mapped tags (Figure 7.8) and use the pull-down menu to choose a tag to associate with the paragraph style or character style to its left. Run through your entire list of styles and map them each to a tag. It's fast and far less work than reading through an entire InCopy document and manually tagging each piece of text.
Figure 7.8. Map styles to tags to automate the tagging process.
[View full size image]

Figure 7.9. May By Name maps styles to tags with identical names.

Mapping tags to styles
On the other hand, maybe you have XML in your InCopy document, either because you've opened it directly or because it came from an InDesign document that was already tagged. Instead of manually applying all the corresponding paragraph and character styles, you can save lots of time by automatically formatting the story based on the XML structure in the file. In this case, it's nearly the same as mapping styles to tags, but what you'll do is map tags to styles.Mapping tags to styles tells InCopy to apply a particular style to an existing tag. From InCopy's Tags palette menu, choose Map Tags to Styles. In the Map Tags to Styles dialog, the left column lists available tags in alphabetical order, and the right column lists character and paragraph styles. The initial view of this dialog lists everything as Not Mapped. Just click on any of the Not Mapped styles (Figure 7.10) and use the pull-down menu to choose a paragraph style or character style to associate with the tag to its left. Run through your entire list of tags and map them each to a style. It's fast and far less work than reading through an entire InCopy document and manually styling each piece of text.
Figure 7.10. Map tags to styles the same way you map styles to tags.

Deleting Tags
Want to remove a tag from a document that's in use? Maybe you've decided it's too similar to another tag in your document; for instance, you have used both head and headline tags in your document. Select the tag you want to remove in the Tags palette and either click on the Delete Tag button

Figure 7.11. When you delete a tag you must replace it with another tag.

Figure 7.12. Select Unused Tags and delete them if you want to keep your files neat and tidy.
