|
Use conditional text
Conditional
text is a way to create different versions of the same document.
After you create conditions, you apply them to ranges of text. You
can then create different versions of documents by showing and hiding
conditions. For example, if you’re creating a computer manual, you
can create separate conditions for Mac OS and Windows.
Before you print the Mac OS version of the user guide,
you can show all text to which the “Mac” condition is applied and
hide all text to which the “Windows” condition is applied. You can
then reverse the condition states for printing the user guide for
Windows.
 Conditional text shown - A.
- All conditions shown
- B.
- Conditional
indicators
 Conditional text hidden - A.
- “Mac” condition hidden
- B.
- Hidden
condition symbols
Conditions
can be applied only to text. You can make anchored objects conditional,
but only by selecting the anchored object marker. You can apply
conditions to text within table cells, but you cannot apply conditions
to table cells, columns, or rows. You cannot apply conditions to
text in locked InCopy stories.
For a video on using conditional
text, see www.adobe.com/go/lrvid4026_id.
Planning conditional documentsWhen planning a project with conditional text,
examine the nature of the material and look at how several people
can take turns working with it if the document is handed off. Plan
to treat conditional text consistently to make the document easier
to use and maintain. Use the following guidelines.
- Number of versions
- Define how many versions your finished project will contain.
For example, if you’re creating a manual that describes a program
that runs on both Windows and Mac OS platforms, you might want to
produce at least two versions: a Windows version and a Mac OS version.
If you want to produce these versions with editorial comments sprinkled
in the text during the review process, you’ll want even more versions:
Mac OS with comments, Mac OS without comments, Windows with comments,
and Windows without comments.
For documents with many conditions,
you can define condition sets that can be applied to the document
for quick versioning.
- Number of condition tags required
- Decide how many condition tags you need to produce the desired
versions. A version of a document is defined by a unique set of
condition tags. For example, a version of a finished Windows manual
might be defined by having a Windows condition tag showing, a Mac
OS condition tag hidden, and a Comments condition tag hidden. In
this example, you would need to decide whether to use one condition
tag for Windows comments and another for Mac OS comments, or whether
to use a single condition tag for both Windows and Mac OS comments.
- Organization of content
- Evaluate the extent to which the document can be conditional
and how you can organize the material to simplify development and maintenance.
For example, you might be able to organize a book so that conditional
text is limited to a few documents. Or you might choose to keep
versions of a particular chapter in separate files rather than in
conditional text, and then use a different book file for each version
of the book.
In some instances, such as when working with
multiple languages, you may want to create separate layers that
you can show or hide rather than using conditions, with each layer
including text from a different language.
- Tagging strategy
- Determine the smallest unit of conditional text. For example, if
a document will be translated to another language, a whole sentence
should be the smallest amount of text you make conditional. Because
word order often changes during translation, using conditional text
for part of a sentence could complicate translation.
Decide
whether to make spaces and punctuation conditional. If conditional
text begins or ends with punctuation, make the punctuation conditional
too. This makes the text easier to read when you're viewing more
than one version.
To avoid word spacing problems, such as
having an unconditional space followed by a conditional space, set
standards for handling spaces following conditional text (either
always conditional or always unconditional).
To avoid confusion,
decide the order in which conditional text will appear and use this
order throughout the document.
- Indexes and cross-references
- When
indexing a document, pay attention to whether index markers are
placed inside or outside conditional text. Keep in mind that index
markers in hidden conditional text are not included in the generated
index.
If you create a cross-reference to conditional text,
make sure that the source text has the same condition. For example,
if you add a cross-reference in a “Windows” paragraph and the text
anchor appears in a “Mac” condition, the cross-reference is unresolved
when the “Mac” condition is hidden. “HT” appears next to the cross-reference
in the Hyperlinks panel.
If you create a cross-reference to
a paragraph in which some text is conditional and then change the
visibility settings of that condition, update the cross-reference.
Create conditionsConditions you create are saved in the current
document. If no documents are open when you create a condition,
that condition appears in all new documents you create.
You
can make conditional text easy to identify by specifying condition indicators, such
as wavy red underlines.
- Choose Window > Type & Tables >
Conditional Text to display the Conditional Text panel.
- Choose New Condition from the Conditional Text panel
menu, and type a name for the condition.
- In the Indicator group, specify the appearance of the
indicator to which the condition is applied.
By default, indicators (such as wavy red lines) are set
to appear in the document but not be printed or output. You can
choose an option from the Indicators menu in the Conditional Text
panel to hide indicators or to print and output them, which can
be useful for review purposes.
- Click OK.
Apply conditions to textYou can apply multiple conditions to the same
text. By default, condition indicators identify conditional text.
However, if indicators are hidden, you can use the Conditional Text
panel to determine which conditions have been applied to the current
text. A solid check mark indicates the condition is applied to the current
text. A dim check mark indicates that the condition is applied only
to part of the selection.
- Select the text to which you want to apply the
condition.
- In the Conditional Text panel (Windows >
Type & Tables > Conditional Text), do any of the
following:
To apply a condition, click the condition,
or click the box next to the condition name.
To apply a condition and remove other conditions
applied to the text, Alt-click (Windows) or Option-click (Mac OS)
a condition.
To remove a condition, click the box next to the
condition name to remove the check mark. Or, click [Unconditional]
to remove all conditions from the selected text.
Note: You cannot apply keyboard shortcuts to specific conditions.
However, you can apply conditions using Quick Apply.
Show or hide conditionsWhen you hide a condition, all text to which
that condition is applied is hidden. Hiding conditions often causes
the page numbering to change in a document or book. You can use
the Smart Text Reflow feature to add and remove pages automatically
as you hide and show conditions.
Hidden conditional text is
generally ignored in the document. For example, hidden text is not
printed or exported, index markers in hidden conditional text are
not included in a generated index, and hidden conditional text is
not included when searching or spell-checking text.
When you
hide a condition, the hidden text is stored in a hidden condition symbol . If
you select text that contains a hidden condition symbol and try
to delete it, InDesign prompts you to
confirm that you want to delete the hidden conditional text. You
cannot apply other conditions, styles, or formatting to hidden conditional
text.
If
text has several conditions applied to it and at least one of those
conditions is shown while another is hidden, the text is not hidden.
- To show or hide individual conditions,
click the visibility box next to a condition name. The eye icon
indicates the condition is shown.
- To show or hide all conditions, choose Show All or Hide
All from the Conditional Text panel menu.
Use condition setsA condition set captures the visibility settings
for all conditions so that you can quickly apply different document
renditions. For example, suppose you have a complex document with
platform conditions for Mac OS, Windows XP, Vista, UNIX
, language conditions for English, French, German, and Spanish,
and editorial conditions such as Editorial Review and Internal Comments.
For reviewing the Vista version in French, you can create a set
that shows only the Vista, French, and Editorial Review conditions,
and hides all the rest.
While sets aren’t necessary to do
this, they help you quickly and reliably change different condition
visibility settings.
- Apply conditions to text as necessary.
- If the Set menu doesn’t appear in the Conditional Text
panel, choose Show Options from the Conditional Text panel menu.
- In the Conditional Text panel, make the conditions visible
or hidden as needed.
- Choose Create New Set from the Set menu, specify a name
for the set, and click OK.
The new set becomes the active set.
- Do any of the following:
To apply the condition set to a document,
choose the condition set name from the Set menu.
To override a condition set, select the set to make
it active, and change the visibility setting of any condition. A
plus sign (+) appears next to the condition set. Choose the condition
set again to remove overrides. Choose Redefine “[Condition Set]”
to update the condition set with the new visibility settings.
To delete a condition set, select the condition
set, and then choose Delete “[Condition Set].”
Manage conditions Do any of the following: - Delete a condition
- Select a condition and click the Delete icon at the bottom
of the Conditional Text panel. Specify a condition to replace the
deleted condition and click OK. The condition you specify is applied
to all text to which the deleted condition was applied.
To
delete multiple conditions, Shift-click to select contiguous conditions,
or Ctrl-click (Windows) or Command-click (Mac OS) to select
non-contiguous conditions, and then click the Delete icon.
- Remove a condition from text
- Removing a condition tag from text is different from
deleting a tag from a document. When you remove a tag from text,
the tag remains in the document so it can be applied again later.
To
remove a condition from text, select the text and click the box
next to the condition to remove the check mark, or click [Unconditional]
to remove all conditions from the selected text.
- Load (import) conditions
- Choose Load Conditions (to load only conditions) or Load
Conditions And Sets from the Conditional Text panel menu. Select
the InDesign document from which you want to import the conditions,
and click Open. Loaded conditions and sets replace any condition
or set that has an identical name.
You cannot load conditions
from an InCopy file in InDesign, but you can load conditions from
an InDesign file in both InDesign and InCopy.
Loaded sets
ignore the visibility settings of the conditions currently in the
Conditional Text panel.
- Synchronize conditions in a book
- To make sure you’re using the same conditions in all
documents in a book, create the conditions you want in the style source
document, select Conditional Text Settings in the Synchronize Options dialog
box, and then synchronize the book.
- Show or hide condition indicators
- Choose Show or Hide from the Indicators menu in the Conditional
Text panel to show or hide condition indicators. If you’re showing
one version and want to see which areas are conditional, show the condition
indicators. If you find the condition indicators distracting while viewing
the layout, hide the condition indicators. Choose Show And Print
if you want the condition indicators to be printed and output.
- Change a condition name
- In the Conditional Text panel, click a condition, pause,
and then click the condition name to select it. Type a different
name.
- Edit condition indicators
- In the Conditional Text panel, double-click a condition,
or select a condition and choose Condition Options from the panel menu.
Specify indicator settings, and click OK.
Find and change conditional textUse the Find/Change dialog box to find text
to which one or more conditions have been applied and replace it
with one or more other conditions.
- Show any conditional text you want included in
the search.
Hidden text is excluded from the search.
- Choose Edit > Find/Change.
- If the Find Format and Change Format boxes don’t appear
at the bottom of the dialog box, click More Options.
- Click the Find Format box to display the Find Format
Settings dialog box. Under Conditions, select [Any Condition] to
search for text in which any conditon is applied, [Unconditional]
to search for text in which no condition is applied, or select the
specific condition or conditions you want to search for. Click OK.
This feature finds text that perfectly matches the selected
conditions. For example, if you select both Condition 1 and Condition
2, text to which only one of the conditions are applied isn’t found,
nor is text found to which these two conditions and another is applied.
- Click the Change Format box to display the Change Format
Settings dialog box. Specify the different formatting option, such
as a condition or a character style, and then click OK.
If you select the Conditions section in the Change Format
Settings dialog box, the [Any Condition] makes no changes to the
found conditional text. This option is useful if you want to apply
different formatting, such as a character style. Select [Unconditional]
to remove all conditions from the found text. If you select a specific
condition, specify whether you want it to replace any condition
applied to the found text or be added to it.
- Click Find, and then use the Change, Change/Find, or
Change All buttons to replace the style.
|