CONVERTR.WCM - Either delete or convert
previously "marked" draft text <<like this>> or existing
parenthetical material (like this phrase), quoted material or
BRACKETR.WCM - Bracket
the word at the cursor location, or a block of selected words, with
text characters (quote marks, parentheses, brackets, etc.) or symbols.
companion to the ConvertR macro.
CONVERTR.WCM has options to convert
marked text to redlined or highlighted text. In this instance, a
complementary macro to CONVERTR.WCM is Ron Hirsch's REPLACE CODES macro, which
can convert, augment, or remove highlights or redlines (as well as
other font attributes).
Also see NOTE2TXT,
which converts footnotes or endnotes to bracketed text -- the opposite
of what CONVERTR can do.
Also see QC,
whcih contains a macro (Convert
quote marks.wcm) to convert existing
straight quote marks to typographical quote marks (and vice versa).
This may be useful to play on your document if you are trying to use
quotation marks as bracketing markers with CONVERTR, since standard,
"straight" quote marks are identical and CONVERTR reuires that
beginning and ending markers differ -- which is true of "curly" or
"smart" typographical quotation marks. This macro will ensure that all
quote marks are typographical. (Note: Editing macros or performing some merges can turn
SmartQuotes off, resulting in straight quotes as you type in a document
in future sessions. See QC for more on this
CONVERTR.ZIP contains two macros: ConvertR and BracketR
CONVERTR.WCM (v1.05; 07/09/08)
"The Converter" is a macro that either deletes
or converts previously "marked" draft text <<like
this>> or existing parenthetical material (like this phrase),
quoted material or [bracketed text].
Marked text can be converted to
- normal body text
- WordPerrfect Comments
- italicized body text
- redlined text
- highlighted text
(Click to see the macro's menu.)
All you need to do is mark your
document's text with your own text markers -- such as <<double
beginning and ending brackets>> -- to "park" draft material or
insert quick annotations, reviewer's comments, passing ideas, etc. Play
CONVERTR at a later time to "clean up" your document by removing these
items or converting them to another form.
You can use almost any "markers" --
even typographical ("smart") quote marks (but not straight quote marks:
see sidebar) or other WordPerfect symbols. The only requirements are
that (1) the beginning and ending markers that surround a string of
text must be different in some way, and (2) the number of markers on
either side of the text be equal in terms of number of characters
(e.g., "<<<" and ">>>" and not "<<<" and
The default choice on the macro's menu
is to delete such specially marked text (after optionally prompting you
for confirmation). Alternatively, you can convert the marked text to
normal text, footnotes, endnotes, WordPerfect comments, italics,
redlined text, or highlighted text. (You can even convert all existing
WP comments to marked text before beginning so that they are treated in
the same manner as other marked text by the macro.)
After playing the macro, if the
document contained some text like this:
... the <<new product>> sample is enclosed ...
and you chose the option to delete it (the default choice), the result
will look like this:
... the sample is enclosed ... [i.e., bracketed text and markers
If you chose to convert it to normal
text, it will appear like this:
... the new product sample is enclosed ...
[that is, markers are deleted and the text is converted to body text].
WHY USE TEXT MARKERS?
Speed and convenience. While other
methods of marking up draft text in WP are available (e.g.,
highlighting, redlining) this method may be more useful if the
marked-up document is shared with non-WP users or send back and forth
as plain text across the internet.
Also, users who prefer the keyboard to
the mouse may find that typing text markers during the draft stage is
easier (and faster) than creating customary WP comments or using
Finally, some folks (like me) tend to
use parentheses more than they should. CONVERTR can delete them or
convert them to ordinary text, footnotes, etc.
See the enclosed document,
CONVERTR.WPD, or annotations at the top of the macro code for more
information, tips, etc. Also see NOTE2TXT,
which converts footnotes or endnotes to bracketed text.
- The macro does not process items
inside headers, footers, footnotes, endnotes, or text boxes. For example, WordPerfect won't let you convert material
inside a footnote into a footnote (which would be a "nested" footnote),
so the macro does not search for items inside such "substructures."
- WordPerfect does not support
footnotes in parallel columns.
(However, footnotes can be created in newspaper columns. You can change
parallel columns to newspaper columns by double-clicking the [Col Def]
code in Reveal Codes.)
- You should examine the document and
make any required changes in these areas by directly editing them.
BRACKETR (v1.02; 10/19/06)
"The Bracketer" is a macro that can
bracket or "mark" the word at the cursor location, or a block of
selected words, with text characters (quote marks, parentheses, brackets, etc.) or
To bracket the current word or a
selection of text, just play the macro. (The cursor must be in body
text, not in a header, footer, note, text box, or other substructure.)
If desired, you can modify the macro'c
code (just open it like any other document and follow the instructions
at the top) to make it insert markers of your choice. The macro uses
two simple commands to insert the brackets around the text. The
default is to use double angle brackets <<like this>>
around words. You can change this to use other text characters, quote
marks, or symbols. See the examples at the top of the macro's code.
You can assign this macro to a toolbar button or keystroke combination for quick and
Here's a macro posted by Noal Mellot
on WordPerfect Universe, which makes use of a Procedure to bracket
selected text or the text under the cursor (or at the cursor's position
if nothing was selected or the cursor is not on a word). Just assign
the text you wish to use as brackets to variables v1 and v2
(as was done below), then Save & Compile the macro. [Note the
optional segment to add Redline to the selected material. You can
delete the segment if not required.]
Define two variables:
// OPTIONAL: Add redline to the bracketed text:
PosCharNext // (move past the Redline code)
MatchSelection // (return to default)
If(StrIsChar(?LeftChar; 1; EqualTo!; AlphaNumeric! | Punctuation!) AND
StrIsChar(?RightChar; 1; EqualTo!; AlphaNumeric! | Punctuation!))
Else Type(v1; v2) Return()
PosSelectTop() SelectMode(Off!) Type(v1)
BookmarkFind ("InsertPair") BookmarkDelete("InsertPair") Type(v2)