If this guide is distributed with software that includes an end user agreement, this guide, as well as the software described in it, is furnished under license and
may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part of this guide may be reproduced, stored
in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of Adobe
Systems Incorporated. Please note that the content in this guide is protected under copyright law even if it is not distributed with software that includes an end
user license agreement.
The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe
Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in the informational
content contained in this guide.
Please remember that existing artwork or images that you may want to include in your project may be protected under copyright law. The unauthorized
incorporation of such material into your new work could be a violation of the rights of the copyright owner. Please be sure to obtain any permission required
from the copyright owner.
Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual organization.
This work is licensed under the Creative Commons Attribution Non-Commercial 3.0 License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-nc/3.0/us/
Adobe, the Adobe logo, InCopy, and InDesign are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other
countries.
Mac OS is a trademark of Apple Inc., registered in the United States and other countries. Windows is a trademark of Microsoft Corporation registered in the
U.S and/or other countries. All other trademarks are the property of their respective owners.
Portions copyrighted by Trumatch, Inc. and used under license.
PANTONE® Colors displayed in the software application or in the user documentation may not match PANTONE-identified standards. Consult current
PANTONE Color Publications for accurate color. PANTONE
This product may include software developed by the OpenSymphony Group. (http://www.opensymphony.com)
Portions may be licensed from Nellymoser, Inc. (http://www.nellymoser.com)
Sorenson Spark™ video compression and decompression technology licensed from Sorenson Media, Inc.
MPEG Layer-3 audio compression technology licensed by Fraunhofer IIS and THOMSON multimedia. (http://www.iis.fhg.de/amm/)
Notice to U.S. Government End Users: The Software and Documentation are “Commercial Items,” as that term is defined at 48 C.F.R. §2.101, consisting of
“Commercial Computer Software” and “Commercial Computer Software Documentation,” as such terms are used in 48 C.F.R. §12.212 or 48 C.F.R. §227.7202,
as applicable. Consistent with 48 C.F.R. §12.212 or 48 C.F.R. §§227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software and
Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as Commercial Items and (b) with only those rights
as are granted to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright laws of the United States.
Adobe agrees to comply with all applicable equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended, Section 402
of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the
regulations at 41 CFR Parts 60-1 through 60-60, 60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be
incorporated by reference.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA.
You can use tags in Adobe® InDesign® or Adobe InCopy® to import and export formatting attributes with text-only
files. These tags, or codes, indicate style and list definitions as well as the character- and paragraph-level attributes you
want to apply to text.
Tagged text
When you import a tagged text file, InDesign or InCopy reads the tag codes and applies the attributes automatically.
When you export formatted text, you can generate the tag codes so that you can later edit the tags and import the
information with formatting intact.
1
Formatted InDesign document (left) and exported tagged text file (right), with tags shown in red
Only InDesign and InCopy can read InDesign tags. InDesign cannot read tagged text files formatted in Adobe
PageMaker® and QuarkXPress®.
Import and export tags
All tags begin with the less-than character (<) and end with the greater-than character (>). Type the tag immediately
before the text you want to format. For paragraph-level attributes, type the tag at the start of the paragraph. For
character-level attributes, type the tag at the start of the text you want to change. Most type attributes you specify
remain in effect until you use codes to cancel them or until you apply other attributes. For example, to apply
underlining to one word in a paragraph, you type <cUnderline:1> before the word and <cUnderline:> after the word.
To learn about using tag codes, export text with tags from a formatted document. Then view the exported text in a
word-processing application or text editor to see how the attributes are transformed into tag codes. You can then edit
and add tags before you import the tagged text file.
Export InDesign text as tagged text
1 Using the Type tool, click an insertion point in the story you want to export, or select the range of text you want to
export.
2 Choose File > Export.
3 For Save As Type (Microsoft® Windows®) or Format (Apple® Mac OS®), select Adobe InDesign Tagged Text.
Last updated 4/21/2010
4 Specify a name and location for the file, and click Save. (If you’re saving the file using Mac OS, add a .txt extension
USING INDESIGN TAGGED TEXT
Adobe InDesign CS5 Tagged Text
to the end of the filename if you want to open the file in Windows.)
5 In the Adobe InDesign Tagged Text Export Options dialog box, specify the following options:
• Select Verbose to show the tags in long form, such as <cStrokeColor:Green> or Abbreviated to show the tags in
short form, such as <csc:Green>.
• Select the encoding format, such as ASCII (the most common format for representing English characters as
numbers), ANSI (a collection of many international characters and special punctuation marks that can be inserted
using the Alt/Option key), Unicode (a standard that supports most language characters, including non-European
languages), Shift-JIS (MS-Kanji for Japanese characters), GB 18030 (the official character set of the People’s
Republic of China), Big 5 (encoding for Traditional Chinese characters), and KSC5601 (encoding for Korean
characters).
6 Click OK.
The story text is exported as a text file. You can use a word-processing application or a text editor to open and edit the
tagged text file.
Import tagged text
1 Open the document into which you will place the tagged text, and choose File > Place.
2 Locate and select the text-only tagged file.
3 If desired, select Show Import Options.
4 Click Open.
5 If you selected Show Import Options in the Place dialog box, select any of the following:
Use Typographer’s Quotes Ensures that imported text includes left and right quotation marks (“ ”) and apostrophes
(’) instead of straight quotation marks ("
") and apostrophes (').
2
Remove Text Formatting Removes formatting such as typeface, type color, and type style from the imported text.
Resolve Text Style Conflicts Using Lets you specify which character or paragraph style is applied when there is a
conflict between the style in the tagged text file and the style in your document. Select Publication Definition to use
the definition that already exists for that style name in the document. Select Tagged File Definition to use the style as
defined in the tagged text. This option creates another instance of the style with “copy” appended to its name in the
Character Style or Paragraph Style panel.
Show List Of Problem Tags Before Place Displays a list of unrecognized tags. If a list appears, you can choose to cancel
or continue the import. If you continue, the file may not look as expected.
6 Click OK.
The text appears at the insertion point or replaces selected text. If there is no text selection or insertion point, a loaded
text icon appears. You can click inside an existing frame to place the text inside it, or you can click or drag to create a
new text frame.
Last updated 4/21/2010
USING INDESIGN TAGGED TEXT
Adobe InDesign CS5 Tagged Text
Specifying numeric values in tags
Note the following tips for specifying numeric values or text within a tag:
• In the Tag Name column for the following tables, each tag includes the value type. String includes a list of
characters, such as the name of a color. (When the information is a text string, the case of the characters doesn’t
matter, unless you’re typing a specific color or style name.) Integer includes only whole numbers for values, such as
the number of drop-cap characters. Real can include any number, such as “23.578.” Boolean includes on/off toggle
values: “0” for off and “1” for on. Enum includes only specific string values, such as “Small Caps.” Definition
includes valid names of defined styles and lists.
• Numeric measurements are expressed as points.
• If you create a tagged text file in a word-processing application or text editor, any characters, tabs, and spaces you
type outside the angle brackets (<
no paragraph style assigned, type <ParaStyle:> on a new line.
>) appear in the document when the file is placed. To begin a new paragraph with
• To return an attribute to its default state, type the attribute name followed by a colon (:). For example, to return to
the default leading value, type <cLeading:>.
InDesign tags
3
Start file and definition tags
When you export text as tagged text, the text file includes a start tag that describes the encoding format (such as
<ASCII-WIN>) and a color table tag (<ColorTable>) that defines the colors, tints, and gradients in your document. If
you use paragraph and character styles, variables, table and cell styles, or defined lists in exported text, definition tags
for those items appear.
Note: If you create a tagged text file from scratch, you must include a tag that describes the encoding format (such as
<ASCII-MAC>) at the beginning of the text file. You must type the following text at the top of a text file you want InCopy
to treat as tagged: <ASCII-WIN> for files created in Windows or <ASCII-MAC> for files created in Mac
an encoding format other than ASCII, insert the name of that format in place of ASCII (for example, <UNICODE-MAC>).
Specify the encoding format (ASCII, ANSI, UNICODE, SJIS,
CGB18030, BIG5, or KSC5601) followed by the platform
(MAC or WIN).
USING INDESIGN TAGGED TEXT
Adobe InDesign CS5 Tagged Text
4
Color table<ColorTable:=<Swatch name 1:Swatch Type (COLOR,
Paragraph style
definition
Paragraph style
applied
Character style
definition
TINT, GRAD, or MIXED):Color Type (CMYK, RGB, LAB, or
MIXED):Color Mode (Process, Spot, or Mixed):Values of color, tint, or gradient> <Swatch name 2>...>
A COLOR swatch requires 4 values for CMYK and 3 values
for RGB and LAB.
<DefineParaStyle:Style group name::Paragraph style
name= <attr1><attr2>...>
A paragraph style definition includes the character- and
paragraph-level attributes listed later in this document,
as well as <Nextstyle:style name> and <BasedOn:style name>
A table style definition includes the table attributes listed
later in this document followed by the cell styles used in
the table style. The <BasedOn:style name> attributes can
also be included.
The <TableStyle> tag appears before the <TableStart>
tag.
The tag <CharStyle:> ends the character style definition.
<DefineTableStyle:Style Group 1:Income
Table=<tBeforeSpace:6> <tLastColCellStyle::Blue Fill>
<tLastColUseBodyCellStyle:0>>
For information on hyperlink tags, see “Table tags” on
page 15.
<TableStyle:Income Table>
Last updated 4/21/2010
AttributeFormatExamples and notes
USING INDESIGN TAGGED TEXT
Adobe InDesign CS5 Tagged Text
5
Cell style definition<DefineCellStyle:Style group name:cell style name=<cell
Valid values for <ConditionIndicatorMethod> include
Highlight and Underline. Valid values for
<ConditionIndicatorAppearance> include Wavy, Solid,
and Dashed. For <ConditionVisibility>, 1 is displayed and
0 is hidden.
A cross-reference format definition includes the format
name, the name of the character style that’s applied to
the cross-reference source, the number of building
blocks used, and building block tags.