Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Toolbox image Barry MacDonnell's
Toolbox for WordPerfect


Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2017 by Barry MacDonnell. All Rights Reserved.
Page updated Aug 23, 2016

Overstrike (a.k.a. "overtype"; "type over") a block of text characters with any character or symbol

Download Overstrike.zip (v1.01; 02/17/10; 6,005 bytes)

Compatible with WordPerfect 8 and later versions

WordPerfect 11 users: See important information about using macros in the first release of WP11 (11.0.0.233) at the top of this page.

Downloading, Documentation, Modifications, and Support


Note

WordPerfect menu choices refer to the <WordPerfect> menu (right-click on the top menu bar for a choice of menus). If you use a <Microsoft Word> menu, the choices might be absent from your menu (but not from the program), or they might be found under another menu selection. See here for more.








Purpose

This small macro overstrikes every character in a selection of text, similar to the WordPerfect Format, Font, Strikeout function, but with the option of using any character or symbol as the overstrike character.

It also can overstrike many blocks of text at once, not just single characters.

See this sample screen shot after using a slash mark on the keyboard as the overstrike character.

Tips

•  To overstrike a single character you can simply use WordPerfect's built-in function: Format, Typesetting, Overstrike. [See an example in the tip below that uses a horizontal bar above a character.]

•  A simple one-line macro can provide an overstrike for a frequently needed character. For example, to overstrike a zero ("slash zero") use OverstrikeCreate (OvrStrkStrg: "/0"). You can then assign the macro to a toolbar button, keyboard shortcut, or menu. See here. [Thanks to Joe Fox for this tip. However, note that using such overstruck numerals in a WordPerfect table will prevent them from being calculated correctly, since they will be codes and not true numbers.]

Instructions

Download the macro and place it on your system. See the left sidebar for the download link and also the "Downloading..." instructions (if you need help).

Play the macro (Tools, Macro, Play). A small dialog opens to let you choose the overstrike character or symbol (use Ctrl+W to access symbols to insert in the dialog).

Notes

¤  The macro first deletes all underlying characters in the selected block of text and then replaces them with a code (i.e., with WordPerfect's Overstrike code (Format, Typesetting, Overstrike)). As noted, it can overstrike many blocks of text at once, not just single characters; however, a whole document might take a few seconds or a minute or two to process (you should see its progress in the WordPerfect status bar.)

¤  The overstrike code displays as the original character with the overstrike character or symbol superimposed on it. [Sample screen shot.]

¤  Also, any bookmarks inside the selection are moved outside it. This should let you delete the selection without deleting the bookmark. (Use Reveal Codes to be sure.)
 
¤  You can usually undo any changes to your document with Edit>Undo or Ctrl+Z.

¤  You can also save the changed document under a different name to preserve your original. (Recommended.)

¤  See also Redactor, which can "block out" text.

Tips

☼  Slashes ("/"), pipes ("|"), or asterisks ("*") as overstrike characters help reveal the text underneath. (If you really want to obliterate the underlying text in a printout, use Redactor.)

Some characters (e.g., slash; pipe) do a better job of maintaining the original length of the selected text when using proportional fonts.

Also experiment with WordPerfect symbols as overstrike characters, which can be entered in the dialog with <Ctrl+W>.

For example:

•  Symbol 3,19 in the Box Drawing set might make a good replacement for an equals sign ("=") since it doesn't seem to leave gaps between each character, but it does stretch the selection of text a bit.

•  Symbol 6,231 in the Math/Scientific set is a double slash symbol ("//") and often does a good job in both striking out the text so it is still readable and maintaining the length of the selected text. [See this sample screen shot after using the double slash mark symbol as the overstrike character.]

☼  To modify the macro, open it like any other document (or use Tools, Macro, Edit). See the redlined comments in the macro's code to (1) change the default overstrike character or symbol; (2) remove the dialog to speed operation; or (3) remove the informational message that appears at the end of processing. You can also add redline or other text attributes to the over-struck stext.

☼  Need to create a horizontal bar symbol (an "over bar" or "overline") or other symbol over a single letter, such as an "X-bar"? Use WordPerfect's built-in Overstrike feature.

•  Click Format, Typesetting, Overstrike and type the letter in the field (e.g., "x").
•  Then press <Ctrl+W>. Look for symbol 1,21 and choose it.
•  Click Insert & Close, then OK.

The symbol should appear in your document, something like this:
Overstrike X
Note that you can double-click on the [OvrStk] code later in Reveal Codes to edit these items.  In Reveal Codes you'll see an [Ovrstk] code which can be selected and turned into a QuickWord for easy access later.

Related tips:

☼  For another method to create a horizontal bar over more than one letter, see "Continuous Overbar on Multiple Characters" in this thread on WordPerfect Universe.

☼  Using the WordPerfect Overstrike feature you can also apply some text format codes (bold, superscript, Large, etc.) with the Codes button on the Overstrike dialog. (These are paired "On/Off" codes.)

This might be useful to emphasize, elevate, or depress the symbol in a vertical relation to the letter. For example, to put a small right arrow symbol above a letter:

• 
Click Format, Typesetting, Overstrike and type the letter in the field (e.g., "x").
•  Optionally click the Codes button on the Overstrike dialog and choose (e.g.) Bold. Repeat this step for other attributes such as Large and Superscript.
• 
Then press <Ctrl+W>. Look for the arrow symbol 6,21 and choose it. [It should appear between any optional "On" format codes and "Off" format codes.]
•  Click Insert & Close, then OK.

Here's a screen shot of the result.
Note that you can double-click on the [OvrStk] code later in Reveal Codes to edit these items.  In Reveal Codes you'll see an [Ovrstk] code which can be selected and turned into a QuickWord for easy access later.

☼  Need to create check boxes? See here.