Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate |
![]() Toolbox for WordPerfect |
||
Macros, tips, and
templates for Corel® WordPerfect® for Windows® |
Page updated Oct 20, 2021 |
|
SoftWrap - Prevent long web addresses (URLs) and email addresses from wrapping to the next line as a single block of text | ||
Related pages - • How to create hyperlinks (hypertext links) in WordPerfect (see left column there for additional linked pages) • Hyphens, hard hyphens, soft hyphens, hyphenation soft returns, and hard spaces ... what they are and how they work |
Web site and email addresses normally don't have spaces in them, so WordPerfect treats them as a single block of text. Wrapping such long text strings can result in a large empty space left behind in the line above. Also, if margins are narrow it can create a wrapped address that is split in the middle of a component word. To prevent this from happening, use a hyphenation soft return [Hyph SRt] after each slash mark and double slash mark in an internet address or email address. (See below for other "break" characters.) It is particularly useful for bibliographies, etc.
SoftWrap is a macro that does all this automatically and very quickly. Simply select
the entire address and play the macro. It then follows the recommendation ("A." above) to place a hyphenation soft return after
all slashes (both single and double) and ampersands (@), and before
any
period, tilde (~), hard or soft hyphen(-), underscore (_), question
mark(?), percent sign(%) or equals sign(=). [Any of these items can be
removed from processing in the redlined area of the macro code.] When the macro finishes the above step it will offer to turn the address into a hyperlink if leads with "http..." or "ftp..." or an email hyperlink if it contains an "@". Just press Yes or No to confirm your choice.[ Tip: During address selections be alert to the presence of any following leading or trailing punctuation marks (e.g., commas, periods, semi-colons, etc.) or other extraneous characters since these would also be included by the macro if you choose to turn the address into a hyperlink.] [Thanks to "peterm" for comments that led to the idea behind this macro.] |
|