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

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 Dec 15, 2015

Macros to:

1) Toggle QuickCorrect, SmartQuotes, and other QC settings
2) Convert existing regular double or single quote marks to typographical quote marks, or vice versa

Download QC.ZIP (v1.04a, 12/13/06; 21,831 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 

More macros in the Library...

 

Two separate macros are included in the download file (see box at left):

•  QC.wcm and
•  Convert quote marks.wcm.

QC.wcm (v1.04a) - Toggle QuickCorrect, SmartQuotes, and other QC settings

Purpose

This is a WordPerfect macro that toggles the state of various QuickCorrect, QuickWord, Format-As-You-Go, SpeedLinks, and SmartQuote settings. (See WordPerfect's Tools, QuickCorrect for your current settings.)

In general, this macro has a couple of practical purposes.

•  Some people often find they need to toggle QuickCorrect (and SmartQuotes) on and off, usually to temporarily get rid of smart quotes (a.k.a. "curved," "curly," or "typographical" quotes).

•  When creating or editing a macro, or creating or loading a merge document, WordPerfect will temporarily turn off some QuickCorrect settings, even in other open documents. This is by design.


For example, jumping back and forth between a macro or merge document and a "normal" document may require enabling/disabling SmartQuotes. Often, WordPerfect's changes "stick," and you may find that quote marks are no longer "curly," or QuickCorrect doesn't replace "incorrect" words in its list with correct ones, or QuickWord abbreviations don't expand.
Operation

This macro toggles these QuickCorrect and QuickWords settings on and off. It also sets certain other QC settings to your preferred defaults. You may want to assign it to a toolbar button for easy access.

If QuickCorrect, QuickWord, Format-As-You-Go, SpeedLinks, and/or SmartQuote settings are off when you play it, it will turn them on (i.e., the ones you have specified -- see below); if these settings are on, it will turn certain ones off (i.e.,, the ones you specified).

A brief message appears in either event to tell you which way the toggle is working.

New in version 1.04:

The macro (optionally) restores the four Smart ("curly") quote marks found under QuickCorrect's SmartQuotes tab

Sometimes these four items are accidentally deleted (some users deliberately do this to turn them off) or they are changed to a different set of marks in the SmartQuotes dialog. This macro can restore them to their default or preferred values.

If you use Smart ("curly") quote marks other than the WordPerfect defaults, you will want to EITHER toggle this function off OR enter your own quote mark values for the four items. You can do this by personalizing the macro's operation (see next section).

To personalize the macro's operation

A WordPerfect macro is a document with a .WCM filename extension. Just open it as you would any other document (or use Tools, Macro, Edit) and follow the instructions at the top of the code and the redlined User Modification Area, then -- when you are finished making changes -- click the Save & Compile on the Macro Toolbar that should be displayed at the top of the screen.

Even while you are editing the macro, you can view your current settings by clicking Tools, QuickCorrect. Just jot down your preferences. The macro's User Modification Area is laid out in sections that correspond to the five tabs in QuickCorrect.

The settings the macro can change are:

  • QuickCorrect - "Replace words as you type" (On/Off) 
  • QuickCorrect - "Correct other mis-typed words when possible" (On/Off) 
  • Expand QuickWords when you type them
  • Format words as hyperlinks as you type them (SpeedLinks)
  • Capitalize next letter after end-of-sentence punctuation
  • Correct two irregular capitals
  • Change two spaces to one space between words
  • Change two spaces to one space between sentences
  • CapsFix - correct accidental usage of cAPS LOCK key
  • QuickBullets
  • QuickIndent
  • QuickLines
  • QuickOrdinals
  • QuickSymbols
  • SmartQuotes (several settings) 

Notes

Generally, there is no need to customize the first setting above. The macro's default "On" setting is to replace words when you type, and its default "off" setting is to not replace them when QuickCorrect is turned off. Most users will want to keep these defaults.

Many if not most users probably will not want to customize the second setting, either.

From WordPerfect's Help <F1>:] When the "Correct other mistyped words when possible" check box is enabled, WordPerfect replaces typographical errors that have only one possible correction without notifying you of the change. Use this option only if you are confident that a document uses words found in a standard word list. Unusual spellings and proper nouns might be changed automatically when you enable this option. (Most power users disable this setting. They don't want strange "corrections" slipping into important documents unnoticed. In any case, see the next note.)

"Note that in the original release of WPX3, correct words were flagged as spelling errors if the option "Correct other mistyped words when possible" was active. This has been remedied with Service Pack 1."

Tips

For additional tips about QuickCorrect, see here.

Tip

You can assign any macro to a menu, toolbar, or keyboard shortcut ("hot key"). See http://wptoolbox.com/tips/EasyPlay.html.

Convert quote marks.wcm (v1.0) - Convert existing regular double or single quote marks to typographical quote marks, or vice versa

Purpose

This macro (included in the download QC.ZIP file above) -

  • converts existing regular ("straight") double or single quote marks to typographical quote marks (a/k/a 'smart' quotes or 'curly' quotes),
  • or the opposite: it converts existing typographical ("curved" or "curly" or "smart") quote marks to regular quote marks.

Several options are available from a pop-up menu dialog.

Note: WordPerfect's Tools, QuickCorrect, SmartQuotes options -- if enabled -- can automatically convert existing regular ("straight") double or single quote marks to typographical quote marks (a/k/a 'smart' quotes or 'curly' quotes): Use Edit, Find and Replace and insert the quote marks in the "Find:" and "Replace with:" fields using your keyboard (i.e., do not insert WordPerfect symbols for these items). Then, with the cursor at the top of the document, click Replace All. There is no need for a macro in this case, but you may prefer to use the Convert quote marks macro for its convenience and added functions.

Instructions

Once the macro is located in your default or supplemental macro folder (as shown in Tools, Settings, Files, Merge/Macro) you can just play it with Tools, Macro, Play.

A menu pops up [image] to let you choose which conversion, where to start converting, etc. A menu option also lets you use regular (straight) quote marks with numbers (e.g., 10'5").

If text is selected before you play the macro, it will convert only quote marks that are inside the selected text.

Notes
  • You can set default values for the macro's menu at the top of the macro code.
  • The macro takes advantage of WordPerfect's QuickCorrect feature ("SmartQuotes") to convert the quote marks. See the macro's code for the technique.
  • Note that if you have edited a macro during the session the macro editor will turn SmartQuotes off -- and they may remain off even after rebooting. If you then use quote marks, you may find that you are entering straight, non-typographical quote marks into the current document instead of typographical quotes. If this happens, you can use the QC.wcm macro above to turn SmartQuotes (and other QuickCorrect settings) back on, then play Convert quote markks.wcm to convert all quote marks to typographical quotes.
Tip

You can assign any macro to a menu, toolbar, or keyboard shortcut ("hot key"). See http://wptoolbox.com/tips/EasyPlay.html.