• Keine Ergebnisse gefunden

Control Characters (General Information)

Im Dokument THE PROFESSIONAL WORD PROCESSOR (Seite 62-66)

Keystrokes

Function

Alt-C (or F10, Customize), Screen, Codes Alt-I (or F10, Insert), Control Character

Alt-Z (displays the hidden control codes in your file) Ctrl-Q (inserts control character in Search menu prompts only)

Lets you display, insert, or search for control characters.

Viewing Control Characters

The Codes command (or Alt-Z) instructs the editor to display the control codes it normally hides from view.

Instead of a ruler line, for example, you'll see the control codes that comprise the ruler. Where you've pressed the Tab key, you'll see /\ I.

Note to two-floppy system users: Sprint may have to prompt you to insert the correct Program Disk into Drive A in order to use the Custonlize/Screen/Codes command.

Inserting Control Characters

To enter control characters, go to the Insert menu and choose Control Character. Sprint prompts for the character. Type it in, and Sprint inserts it at the current cursor position. You cannot simply press Ctrl-F to insert that control character into your document. That's because Sprint tries to interpret a control character entered in this way (to Sprint, Ctrl-F means to move the

Control Characters (General Information)

cursor one word to the right). (Note: You will not see the control code unless Codes is set to On. Also, the control character you insert in this manner will affect the text following it.)

Warning: Don't insert a Ctr/-Z into your file because it is used as an end-of-file mark by many programs!

Searching for Control Characters

To search for control characters, you can use the special keystroke Ctr/-Q. For example, let's say that you created a 20-page proposal and put your company name in bold type throughout the text. After printing, your boss decides the company name should be in italics instead.

You could use the Find command for each occurrence of your company name, select the name as a block, choose Italic from the Typestyle menu, and then edit out the control codes from the Bold command-but what a job!

Here's a far better approach:

1. Assuming you're at the top of your file, choose Search & Replace from the Search-Replace menu.

Sprint displays the prompt Search for:

2. Press Ctr/-Q and then enter Ctr/-B, followed by your company name. For example,

Search for: Ctr/-Q Ctr/-B Borland

When you press Ctr/-Q, nothing happens, but when you type Ctr/-B, Sprint displays the code AB in the status line.

3. When Sprint prompts for the replacement string, enter Ctr/-Q, followed by Ctr/-E (the control code that represents italics), followed by your company name.

For example,

Replace with: Ctr/-Q Ctr/-E Borland

Sprint begins its search for the first occurrence and displays the usual Replace prompts: Yes, No, And the rest.

You can use this example as a guide to search for all nonprinting characters, such as AI (Tab) and AJ (hard return), as well as the control codes Sprint inserts as part

Control Characters (General Information)

See Also

of a formatting command, such as AU (start underline) and AF (wide space).

Table 1.1 lists all the Sprint-defined control codes and their functions.

Table 1.1: Control Codes (Standard User Interface) Onscreen Function

/\/\

/\

Begins large type Begins bola type

Places the current word in the index Begins italic type

Inserts wide space Indents a region Backspace

Inserts tab (go to next tab) Hard return (paragraph mark) Starts a ruler line

Starts a hard or soft page break (not used mid-line) Carriage return

Ends most-recent open delimiter Begins a named formatting command Begins subscript

Begins Roman Begins superscript Begins typewriter font Begins underline

Begins a Variable command Begins word underline type Begins strikethrough Inserts non-breaking space

Hyphen line break (never displayed, always results in a hyphen)

Discretionary (soft) hyphen

Soft return (never displayed, always results in a newline)

Note: The caret (/\) stands for the control character.

Codes, Hard and Soft Returns, Searching, Typestyle Menu

Copy

Keystrokes

Function

How To

See Also

Alt-E (or F10, Edit), Copy F4

GtrI-KG

Gtrl-KK, and type

c

Copies a marked block.

Copy

This command works on a marked (highlighted) block of text (one that you have selected using the Block Select menu). When you copy a block to Sprint's Clipboard, you are instructing Sprint to leave the block in its present location and to also copy it to Sprint's Clipboard.

You can then move to another area in your file, or another file, and paste this block into the desired location.

A word of caution: Sprint's Clipboard can ordinarily hold only one copied block at a time. This means that when you copy a block of text to the Clipboard, you should quickly paste the block into the desired location.

If you don't and then enter another command to move, copy, or delete text, Sprint will replace your previous block. If this happens, you'll have to mark and copy your block again.

To copy a block to Sprint's Clipboard, you must first select the block you want to copy (press F3 and use the cursor keys). After you have done this, press F4, or choose Edit/ Copy. The text remains in its present location, but is also now in the Clipboard. Move the cursor to the place you want to paste the copied text, and press F6. (You could also press AIt-E and choose Insert-Paste.) Sprint pastes the block in the current location. This block remains in the Clipboard, too, so you can paste it elsewhere if you like. It stays in the Clipboard until you move or copy another block of text.

Block Select Menu, Clipboard, Deleting

Criteria

Criteria

Refer to the Merge entry for details.

Im Dokument THE PROFESSIONAL WORD PROCESSOR (Seite 62-66)