TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Here's are a few ways to fake "conditional text" if your
software doesn't explicitly support this feature but does
support "nonprinting text" or style-based search and
replace:
[Warning: These are kludges. Use at your own risk!]
Start by creating different style names for the parts you
don't want to print in each version. For example, let's say
you're doing English and French in the same file, but only
want to output one of the two languages. Create a style
called "body text English" and another called "body text
French", and do the same for any other styles you'll need
(e.g., headings). Then, to create a French-only document,
edit the properties of all the styles with English names so
that they are defined as nonprinting. Voila! You'll have to
test this for each software package you use, since there
are likely to be different implementations of this feature
in each package.
Another possible solution is to make a backup copy of the
file, then do a global search and replace based on
paragraph styles: replace the English styles with a single
space, or with nothing (thus doing a "global search and
delete"). You can even do this manually by scrolling
through the file with the style names visible and deleting
the ones that don't belong.
On the whole, you're better off with something like Frame
that explicitly and automatically supports conditional
text, but if you don't have Frame, you can probably fake it
well enough to get by in a pinch.
--Geoff Hart @8^{)} geoff-h -at- mtl -dot- feric -dot- ca
Disclaimer: Speaking for myself, not FERIC.
TECHWR-L (Technical Communication) List Information: To send a message
to 2500+ readers, e-mail to TECHWR-L -at- LISTSERV -dot- OKSTATE -dot- EDU -dot- Send commands
to LISTSERV -at- LISTSERV -dot- OKSTATE -dot- EDU (e.g. HELP or SIGNOFF TECHWR-L).
Search the archives at http://www.documentation.com/ or search and
browse the archives at http://listserv.okstate.edu/archives/techwr-l.html