Mike
McBride

# Detailed Guides: Editing your Document

This section of the guide will cover more advanced features of data editing. This section focuses entirely on text data. For working with other types of data, please see the section entitled More than just text.

## Selecting Text

For many editing and formatting functions in &kword;, certain actions (bold face, underline,&etc;) should be applied to a certain section of text, not the document as a whole. You specify which text should be altered by selecting (or highlighting) the text you want changed.

Selected text has a colored background to separate it from unselected text.

Select text by designating a start and an end point. All the text in between the start and end point is selected text.

Text can be selected with either the mouse or the keyboard.

### Using The Mouse

To select text with the mouse, place the mouse pointer at the start point. Click and hold down the &LMB; and drag the mouse pointer. This selects all text between the initial click of &LMB; and the current position of the mouse cursor. When the mouse pointer is at the desired end point, release the button. The start and endpoints will become fixed.

### Using The Keyboard

To use the keyboard, &kword; takes the initial position of the text cursor as the start point. Use the following key combinations to move the endpoint to the desired location.

Key Combination | Function
--- | ---
&Shift;Left Arrow | Moves the endpoint one character to the left.
&Ctrl;&Shift;Left Arrow | Moves the endpoint one word to the left.
&Shift;Right Arrow | Moves the endpoint one character to the Right.
&Ctrl;&Shift;Right Arrow | Moves the endpoint one word to the Right.
&Shift;Up Arrow | Selects all characters from the start of the selection, to the character directly up one line.
&Ctrl;&Shift;Up Arrow | Selects all characters from the start of the selection, to the first character of the line directly above.
&Shift;Down Arrow | Selects all characters from the start of the selection, to the character directly down one line.
&Ctrl;&Shift;Down Arrow | Selects all characters from the start of the selection, to the last character of the line directly below.
&Shift;Home | Selects all characters from the start of the selection, to the beginning of the line.
&Ctrl;&Shift;Home | Selects all characters from the start of the selection, to the beginning of the document.
&Shift;End | Selects all characters from the start of the selection, to the end of the line.
&Ctrl;&Shift;End | Selects all characters from the start of the selection, to the end of the document.
&Shift;Page-Up | Moves the current endpoint one screen up.
&Ctrl;&Shift;Page-Up | Moves the current endpoint one page up. The endpoint is located at the first character of this page.
&Shift;Page-Down | Moves the current endpoint down one screen.
&Ctrl;&Shift;Page-Down | Moves the current endpoint down one page. The endpoint is locate at the first character of this page.
&Ctrl;A | Select all text in the current frameset.

Once the start and endpoints have been defined, all text between the startpoint and endpoint is selected.

## Using Multiple Views

### Introduction

When editing very large documents, there will be times when it is helpful to edit two parts of the document. In a situation such as this, &kword; can open additional windows to edit the same document.

These new windows are called Views, since they provide a different viewpoint of the the same document.

Views are very important tools when working with large documents. Set one view to edit one part of the document, and using the other view, freely move through the document making updates and changes. These changes are automatically revealed in all views.

### Creating a new view

Creating a new view creates an entirely new window, with toolbars, menubars etc. Compare this with the Split View command.

To create a new view select View New View from the menubar.

A new window will be created. Alterations to your document can be made in either view. Updates in one window will be immediately visible in the other.

### Splitting the current view into two separate views.

It is also possible to split one view into two views. Both views are contained within one window, and use the same toolbars, menubars, etc. Contrast this to the effect of the New View command.

To split the current view, select View Split View from the menubar.

The current document area will be split into two views. Alterations to your document can be made in either view. Updates in one view will be immediately visible in the other.

The views can either be split horizontally or vertically. See the next section for instructions.

### Changing the split view orientation

To change the direction that the views are split, simply select View Splitter Orientation from the menubar. This will show a submenu. Select either Horizontal or Vertical.

All views in the current window will immediately change to the new orientation.

### Changing the size of views

The relative sizes of each view can be adjusted with your mouse.

To adjust the view size, look at the border between the scrollbar of one view (the upper or right view) and the ruler of the other view (the lower or left view). There is a solid border which appears raised between the scrollbar and the ruler. As the mouse pointer passes over this bar, it changes from an arrow to double lines with double arrows.

Screen shot

When the mouse pointer changes, click once with the &LMB; and hold the button down. Drag that border to the new location. When the mouse button is released, the views will change to the new proportions.

### Remove View

To remove a view, simply place the mouse pointer in the view to be deleted and click with the &LMB;. Then select View Remove View from the menubar.

### Close all views

To close all views, select
View Close All Views from the menubar.

## Undo/Redo

It happens all the time. While working on a document, a change is made. The change was wrong, now you want to back out of your changes.

Fortunately, &kword; has a solution.

Each time a change is made to a document, &kword; remembers what the change was. &kword; can Undo each change once a time.

As an example, you are writing a business letter and type in the following sentence:

It is a pleasure for me to give you this letter of introduction to your newest employee.

But that doesn't seem right, so you change it:

It is a joy for me to give you this letter of introduction to your newest employee.

You decide it was better the first time and you want to change it back.

Simply select Edit Undo from the menubar.

The text now reads pleasure again.

It is a pleasure for me to give you this letter of introduction to your newest employee.

If, after you Undo a change, and then want to reverse that decision, select Edit Redo and the Undo is reversed.

Sometimes it is not possible for &kword; to undo an edit. In these instances, &kword; will display the Undo function gray and the function is not accessible.

Othertimes, &kword; will only perform a partial undo of the previous task. This is because &kword; processes changes to documents differently then might initially be expected. Simply select Edit Undo again, and more of the edits will be undone.

By default, &kword; keeps track of the last 30 edits to the document. This number can be adjusted up or down. For details, see Configuring &kword;.

The Undo and Redo commands can be accessed from the menubar (as in the examples above), by using keyboard shortcuts or from the toolbar.

Command | Toolbar Button | Keyboard Shortcut
--- | --- | ---
Undo |  | &Ctrl;Z
Redo |  | &Ctrl;&Shift;Z

## Cut/Copy/Paste and the Clipboard

The clipboard is a concept familiar to most people who have used modern word processors. It is a piece of your computers memory which is set aside as a temporary storage space. Text can be Cut or Copied from your document into the clipboard. You can move to another part of the document or to another application entirely, and Paste this text at the new location.

The most common use for the clipboard is to move or copy text which has already entered into one part of the document to another part of the same document or to another document entirely.

This concept is probably best described with an example.

To do this, we begin with a test sentence

The big, red fox jumped over the lazy dog.

Using the mouse or keyboard, select the phrase big, red (notice the space before big is selected).

Now select Edit Copy from the menubar.

This has moved a copy of the selected text to the clipboard.

Now place the mouse cursor directly behind the word lazy and click once.

Now select Edit Paste from the menubar.

The resulting sentence is:

The big, red fox jumped over the lazy big, red dog

The clipboard is not limited to text. The clipboard can contain tables, pictures, spreadsheets or any other type of information.

### The Copy Command

The Copy command can be invoked 4 ways:

- By selecting Edit Copy from the menubar

- By clicking on the toolbar.

- Using the keyboard shortcut: &Ctrl;C or the alternate keyboard shortcut: &Ctrl;Insert

- After the text is selected, click once with the &RMB; and hold the button down. A small popup menu will appear. Simply select Copy

The Copy command moves a copy of the selected data to the clipboard. The original data is unaffected.

### The Cut Command

The Cut command can be invoked 4 ways:

- By selecting Edit Cut from the menubar

- By clicking on the toolbar.

- Using the keyboard shortcut: &Ctrl;X or the alternate keyboard shortcut: &Shift;Delete

- After the text is selected, click once with the &RMB; and hold the button down. A small popup menu will appear. Simply select Cut

The Cut command moves a copy of the selected data to the clipboard. The selected data is then deleted from the document.

### The Paste Command

The Paste command can be invoked 4 ways:

- By selecting Edit Paste from the menubar

- By clicking on the toolbar.

- Using the keyboard shortcut: &Ctrl;V or the alternate keyboard shortcut: &Shift;Insert

- Place the cursor where the contents of the clipboard should be inserted. Click once with the &RMB; and hold the button down. A small popup menu will appear. Simply select Paste

The Paste command inserts a copy of all the data in the clipboard at the current position of the cursor. The clipboard is unaffected. (So another paste command will produce yet another copy of the data in the document.)

If no text in the document is currently highlighted, the Paste command inserts the data at the current position of the cursor.

If there is selected text when the Paste command is executed, the selected text is replaced with the contents of the clipboard.

The clipboard is not limited to the bounds of the current document. If text is copied (or cut) from a document, this text can be pasted into another open document, or another application entirely.

## Finding and Replacing Text

### The Find Command

The Find command can be invoked 3 ways:

- By selecting Edit Find... from the menubar

- You can use the keyboard shortcut:&Ctrl;F

- By clicking on the toolbar.

When the Find Command is invoked, a dialog appears.

#### Basic Text Search

The combo box labelled Text to find, provides a place for you to enter the text of your search command. (In the screenshot, that box is currently filled with KDE).

If you click on Find, then &kword; will search the document until it finds a match to your text. If &kword; cannot find a match, a dialog box will appear that says No matches found for "Text to find".

If you want to repeat a recent search, simply select the arrow in the drop-down box and a list of your most recent searches will appear. Simply select your search from the list and click Find.

#### Refining Your Search

&kword;'s find feature is much more sophisticated than we discussed above. Using the options in the dialog box, you can narrow down your search to find exactly what you want.

##### Regular Expressions in &kword;

The default action for &kword; is to search for an exact match of the text. &kword; has the ability to match text that follows a pattern or a set of rules.

To enable patterns, place a mark in the box labeled Regular expression.

This will enable the Edit button. This button can be a quick way to create regular expressions for people unfamiliar with &UNIX; regular expressions.

A more thourough discussion of regular expressions in KDE can be found in the help manual for &kregexpeditor;, which can be found in the &khelpcenter;.

##### Formatting options

&kword; also has the ability to search your document for text that matches certain formatting options as well as the text itself.

To include formatting options in your search, click the button labeled Show Formatting Options.

Once Show Formatting Options has been clicked, a new dialog will appear.

You can use this dialog to select the options you want to include in your search.

The left column consists of 13 check boxes. If there is a mark in the check box, then &kword; will evaluate any searchable text for that property. If no mark is in the check box, &kword; does not consider that property when performing a search.

Family:

  Use this combo box to select the font family you want to include in your search text.

Size:

  Use this spin box to set the font size you want &kword; to search for.

Color: and Background color:

  Clicking on either of these two buttons allows you to select the font color and/or background color respectively, you want &kword; to search for. For more information on selecting a color, see the section on Selecting Colors from the Color Dialog.

Bold: and Italic:

  Use these Yes/No radio boxes to determine whether you want &kword; to include boldface or italicized fonts in the search text.

Strikeout:

  You can select None, Single, Double or Simple Bold to modify your search.

Underline:

  You can select None, Single, Double, Simple Bold or Wave to modify your search.

Vertical alignment:

  You can select Normal, Subscript or Superscript to determine what font alignment you want &kword; to search for.

Shadow: and Word by word:

  Use these Yes/No radio boxes to determine whether you want &kword; to include shadow text in the search text and whether to search for word by word underlining and strikethrough text.

Capitalization:

  You can select Normal, Uppercase, Lowercase, or Small Caps to determine what capitalization you want &kword; to search for.

Language:

  You can select the language of the text you want &kword; to search for using this dropdown box.

Once you have selected your options, click OK to accept your search options.

Click Cancel to ignore all changes.

Click Reset to restore the options dialog box to the default values.

Click Clear to remove all marks from the checked options.

##### Other Search options

In addition to pattern matching, you can limit the search results with a few useful options.

Case sensitive

  When this option is selected, &kword; will not only search for the string of letters, but will verify that the case of the letters is the same. For example. Searching for: KDE

  will match: KDE and hiddenKDEinwords

  but not: Kde, kde or hiddenkdeinwords.

Find backwards

  This option changes the direction of the search. This can be useful when you only want to search for a string of text before the current cursor position, not after. This option is usually used in conjunction with From cursor, but if that option is not specified, &kword; will start searching from the end of the document backwards.

Whole words only

  When this option is selected, &kword; will only return search items that are surrounded by spaces, paragraph marks or punctuation. For example. Searching for: KDE

  will match: KDE

  but not: hiddenKDEinwords or KDElike.

Selected Text

  If you want to limit your search to a specific part of the document (a few paragraphs, for example), you can select the part of the document you want to search prior to selecting the Find command. When text is selected, &kword; will default to only searching the selected text. You can use this option to enable or disable this restriction.

  This option will not be available if you have not selected text prior to selecting the Find command.

From cursor

  By default, &kword; begins searching at the beginning of the document. If this option is selected, &kword; begins its search from the current position of the cursor. The direction that &kword; searches is, by default forward in the document, but can be changed with the Find backwards option.

### The Replace Command

The Replace command is an extension of the Find command. If you are familiar with the Find command, you will see many similarities.

The Replace command can be invoked 2 ways:

- By selecting Edit Replace... from the menubar

- You can use the keyboard shortcut: &Ctrl;R

When the Replace command is invoked, a dialog appears.

#### Basic Search and Replace

The combo box labeled Text to find:, provides a place for you to enter the text of your search command. (In the screenshot, that box is currently filled with KDE)

You can enter your replacement text in the text box labeled Replacement text:. You can now click OK to replace all occurrences in the document, or you can further refine your search.

#### Refining Your Search

&kword;'s find feature is much more sophisticated than we discussed above. Using the options in the dialog box, you can narrow down your search to find exactly what you want.

##### Regular Expressions in &kword;

The default action for &kword; is to search for an exact match of the text. &kword; has the ability to match text that follows a pattern or a set of rules.

To enable patterns, place a mark in the box labeled Regular expression.

This will enable the Edit button. This button can be a quick way to create regular expressions for people unfamiliar with &UNIX; regular expressions.

A more thourough discussion of regular expressions in KDE can be found in the help manual for &kregexpeditor;, which can be found in the &khelpcenter;.

##### Formatting options

&kword; also has the ability to search your document for text that matches certain formatting options as well as the text itself.

To include formatting options in your search, click the button labeled Show Formatting Options.

Once Show Formatting Options has been clicked, a new dialog will appear.

You can use this dialog to select the options you want to include in your search.

The left column consists of 13 check boxes. If there is a mark in the check box, then &kword; will evaluate any searchable text for that property. If no mark is in the check box, &kword; does not consider that property when performing a search.

Family:

  Use this combo box to select the font family you want to include in your search text.

Size:

  Use this spin box to set the font size you want &kword; to search for.

Color: and Background color:

  Clicking on either of these two buttons allows you to select the font color and/or background color respectively, you want &kword; to search for. For more information on selecting a color, see the section on Selecting Colors from the Color Dialog.

Bold: and Italic:

  Use these Yes/No radio boxes to determine whether you want &kword; to include boldface or italicized fonts in the search text.

Strikeout:

  You can select None, Single, Double or Simple Bold to modify your search.

Underline:

  You can select None, Single, Double, Simple Bold or Wave to modify your search.

Vertical alignment:

  You can select Normal, Subscript or Superscript to determine what font alignment you want &kword; to search for.

Shadow: and Word by word:

  Use these Yes/No radio boxes to determine whether you want &kword; to include shadow text in the search text and whether to search for word by word underlining and strikethrough text.

Capitalization:

  You can select Normal, Uppercase, Lowercase, or Small Caps to determine what capitalization you want &kword; to search for.

Language:

  You can select the language of the text you want &kword; to search for using this dropdown box.

Once you have selected your options, click OK to accept your search options.

Click Cancel to ignore all changes.

Click Reset to restore the options dialog box to the default values.

Click Clear to remove all marks from the checked options.

##### Other Search options

In addition to pattern matching, you can limit the search results with a few useful options.

Case sensitive

  When this option is selected, &kword; will not only search for the string of letters, but will verify that the case of the letters is the same. For example. Searching for: KDE

  will match: KDE and hiddenKDEinwords

  but not: Kde, kde or hiddenkdeinwords.

Find backwards

  This option changes the direction of the search. This can be useful when you only want to search for a string of text before the current cursor position, not after. This option is usually used in conjunction with From cursor, but if that option is not specified, &kword; will start searching from the end of the document backwards.

Whole words only

  When this option is selected, &kword; will only return search items that are surrounded by spaces, paragraph marks or punctuation. For example. Searching for: KDE

  will match: KDE

  but not: hiddenKDEinwords or KDElike.

Selected Text

  If you want to limit your search to a specific part of the document (a few paragraphs, for example), you can select the part of the document you want to search prior to selecting the Find command. When text is selected, &kword; will default to only searching the selected text. You can use this option to enable or disable this restriction.

  This option will not be available if you have not selected text prior to selecting the Find command.

From cursor

  By default, &kword; begins searching at the beginning of the document. If this option is selected, &kword; begins its search from the current position of the cursor. The direction that &kword; searches is, by default forward in the document, but can be changed with the Find backwards option.

Once you have selected your options, click OK to accept your search options.

Click Cancel to ignore all changes.

Click Reset to restore the options dialog box to the default values.

Click Clear to remove all marks from the checked options.

##### Replace with formatted text

&kword; also has the ability to replace the found text with formatted text.

To include formatting options in your search, click the button labeled Show Formatting Options in the Replace With section.

Once Show Formatting Options has been clicked, a new dialog will appear.

You can use this dialog to select the format of the replaced text.

The left column consists of 13 check boxes. If there is a mark in the check box, then &kword; will change any replaced text to match the property selected. If no mark is in the check box, &kword; does not consider that property when replacing text.

Family:

  Use this combo box to select the font family you want your replacement text to use.

Size:

  Use this spin box to set the font size you want &kword; to use for your replaced text.

Color: and Background color:

  Clicking on either of these two buttons allows you to select the font color and/or background color respectively, you want &kword; to use. For more information on selecting a color, see the section on Selecting Colors from the Color Dialog.

Bold: and Italic:

  Use these Yes/No radio boxes to determine whether you want &kword; to change the fonts to boldface or italicized fonts.

Strikeout:

  You can select None, Single, Double or Simple Bold to use for the replacement text.

Underline:

  You can select None, Single, Double, Simple Bold or Wave to use for the replacement text.

Vertical alignment:

  You can select Normal, Subscript or Superscript to determine what font alignment you want &kword; to use.

Shadow: and Word by word:

  Use these Yes/No radio boxes to determine whether you want &kword; to use shadow text and/or word by word underlining and strikethrough in the replacement text.

Capitalization:

  You can select Normal, Uppercase, Lowercase, or Small Caps to determine what capitalization to use for the replacement text.

Language:

  You can select the language of the text you will use to replace the found text.

Once you have selected your options, click OK to accept your text options.

Click Cancel to ignore all changes.

Click Reset to restore the options dialog box to the initial values prior to making any changes.

Click Clear to remove all marks from the checked options.

##### Using placeholders

Placeholders are useful when you want to add text to complex search strings. Currently &kword; has only one placeholder: Complete text string.

This placeholder will contain the entire text string matched by the Find command.

For example:

You create a search string, using regular expressions: Reference \d

In order for this string example to work, a mark must be placed in the check box labeled Regular expression

Regular expressions are available by placing a mark in this checkbox. The use of regular expressions is beyond the scope of this manual. For more information see the KDE Regular Expression Manual (Available in the &kde; help center).

Now in the Replace With section of the replace dialog, you place a mark in the check box labeled Use placeholders. Click the Insert Placeholder button and select Complete Match. &kword; will insert a \0 in the Replacement text: text box.

Now surround the placeholder with parentheses, so your text string is: (\0)

When this is executed, whenever &kword; encounters the find text (ie. Reference 0, Reference 1, Reference 2, etc) it will surround the text in parenthesis ((Reference 0), (Reference 1), (Reference 2), respectively).

As you can see, the placeholder will maintain a copy of the search text. You can use this placeholder to add text to the ends of any search string you can imagine.

##### Other Replace Options

Additional options in the dialog are:

Case sensitive

  When this option is selected, &kword; will not only search for the string of letters, but will verify that the case of the letters is the same. For example. Searching for: KDE

  will match: KDE and hiddenKDEinwords but not: Kde, kde or hiddenkdeinwords.

Find backwards

  This option changes the direction of the search. This can be useful when you only want to search for a string of text before the current cursor position, not after. This option is usually used in conjunction with From cursor, but if that option is not specified, &kword; will start searching from the end of the document backwards.

Whole words only

  When this option is selected, &kword; will only return search items that are surrounded by spaces, paragraph marks or punctuation. For example. Searching for: KDE

  will match: KDE

  but not: hiddenKDEinwords or KDElike.

Selected Text

  If you want to limit your search to a specific part of the document (a few paragraphs, for example), you can select the part of the document you want to search prior to selecting the Find command. When text is selected, &kword; will default to only searching the selected text. You can use this option to enable or disable this restriction.

  This option will not be available if you have not selected text prior to selecting the Find command.

From cursor

  By default, &kword; begins searching at the beginning of the document. If this option is selected, &kword; begins its search from the current position of the cursor. The direction that &kword; searches is, by default forward in the document, but can be changed with the Find backwards option.

Prompt on replace

  If this option is selected, &kword; will prompt the user before each replacement. This allows you to approve or disapprove each replacement.

## Spellchecking

&kword; can compare each word in your document to several commonly available dictionaries. It will offer you the opportunity to change any words it believes are misspelled.

By default, if any text in the document is selected, &kword; only checks the spelling of currently selected text.

If you want to check the spelling of a specific part of your document, simply select the text you want to check the spelling of.

To check the entire document, leave all text in the document unsellected, and &kword; will check the entire document.

You can check the spelling of text 2 ways:

- By selecting Tools Spellcheck Spelling... from the menubar

- By clicking on the toolbar.

Spellchecking your document is controlled through a dialog box.

In this example, the misspelled word &kword; found, was youve. The currently suggested replacement word is listed in the text box labeled Replace with:. In the list box labeled Suggested Words is a list of words the spelling program has determined as possible correct spellings.

From here you have eight options:

Replace

  Replaces the current word with the suggested word. Only replaces this occurrence.

Replace All

  Replaces all occurrences of the current word with the suggested word through the entire document.

Ignore

  Do not make any changes to this occurrence. Ask again if this word appears further down in the document.

Ignore All

  Do not make any changes to this or any other occurrence of this word. Do not ask about this word again.

Add

  Add the current word to the dictionary.

Stop

  Keep the current changes, but stop any further checking.

Cancel

  Stop spellchecking.

Help

  Loads a help file for the spellchecker.

When the entire document has been checked, &kword; will return the cursor to the same spot in the document that the spellchecking was begun.

If the document does not have any spelling errors, &kword; does not show a dialog box informing you there were no spelling errors.

When spellchecking is started, it will proceed to check all of the document against the dictionary, and if there are no spelling errors it will close the spellcheck dialog box. With short documents, this may happen quickly. &kword; has spellchecked the document!

There are several options for configuring the spelling application used. For more details, please see the section entitled Configure Spelling.

### Automatically mark misspelled words

&kword; can check the spelling of your document as you edit it. It will underline in red any word which it cannot find in the dictionary. This behavior can be turned on and off by the user. By selecting Tools Spellcheck Autospellcheck from the menubar you can toggle autospellchecking on and off.

## Finding related word (Thesaurus)

&kword; comes with a small thesaurus based on the Wordnet project. For more information on Wordnet, visit the Wordnet homepage.

You can invoke the thesaurus two ways:

- Simply click on the desired word with the &RMB;. A popup menu will appear. Select Show Related Words from the menu and a dialog will appear.

- By selecting Tools Show Related Words from the menubar

Which ever method you choose, &kword; opens the &kthesaurus; dialog box.

The word you selected from your document appears in the combo box labeled Search for:.

There are three columns of alternate words: Synonyms, More General words (hypernyms), More Specific Words (hyponyms).

If you find an appropriate alternate word, simply click on the word in the list, and this word will now be listed in the text box labeled Replace With:.

To finalize the replacement click Replace.

To keep your original word, click Cancel.

To obtain more specific help, or for help on using the full version of Wordnet, click the Help button for help with &kthesaurus; (including additional thesauri for non-english languages).

## Autocorrection

Auto correction is a system for correcting common typing errors, converting abbreviations to their full spelling and adjusting capitalization. As you could guess from its name, this all occurs automatically, while you are editing your document.

### Enabling/Disabling Autocorrection

To toggle autocorrection on, select Tools Autocorrection Enable Autocorrection from the menubar. When enabled, autocorrection makes changes to your document as you type. You can determine which changes to make by configuring autocorrection.

To toggle autocorrection off, select Tools Autocorrection Disable Autocorrection from the menubar. When disabled, autocorrection changes are not made. You can, however, apply autocorrection manually.

### Configuring Autocorrection Options

To adjust the options for autocorrection, select Settings Configure Autocorrection... from the menubar.

A dialog window appears to help you set your options.

#### Simple Autocorrection

Convert first letter of a sentence automatically to uppercase

  When selected, &kword; will automatically capitalize the first letter after a period. You can tell &kword; when not to alter capitalization in certain instances (ie Sr. or Jr.. For more details, see the section entitled Autocorrection Exceptions.

Convert two uppercase letters to one uppercase and one lowercase letter

  When selected, &kword; will automatically convert a double capital letter (a common typographical error), into a single capital letter. You can tell &kword; when not to alter capitalization in certain instances. For more details, see the section entitled Autocorrection Exceptions.

Autoformat URLs

  When selected, &kword; will scan text for patterns which suggest a certain section of text is a URL and automatically creates a link.

  For more details on links, see the section entitled Document Links.

Suppress double spaces

  When checked, &kword; will ignore the second space typed. This prevents users from adding double spaces between words or sentences

Remove spaces at the beginning and end of paragraphs

  When selected, &kword; will automatically remove spaces at the beginning and/or the end of a line of text.

Automatically do bold and underline formatting

  When selected, &kword; will look for words surrounded by asterisks ( * ). It will remove the asterisks and change the font of all words in between the two asterisks to bold face.

  &kword; will also look for words surrounded by underscores ( _ ). It will remove the underscores and underline all words in between the two underscores.

Replace 1/2... with ½...

  When selected, &kword; will automatically change 1/2, 1/3 and 3/4 to their single character equivalents.

Use autonumbering for numbered paragraphs

  If you start a paragraph with a number and a symbol ( 1) for example). &kword; will automatically convert that paragraph to a numbered paragraph. All future paragraphs will be consecutively numbered.

Replace 1st with 1^st

  When selected, &kword; will automatically change 1st to 1st.

Capitalize name of days

  Automatically capitalize the days of the week (Sunday, Monday, Tuesday, etc...).

Use list-formatting for bulleted paragraphs

  When selected, &kword; will look for lines that begin with - , and automatically convert the paragraph style to a bulleted list. The bullet is selected with the left button below this option.

#### Custom Quotes

Select the tab labeled Custom Quotes

Replace double quotes with typographical quotes

  When selected, this option will replace the standard keyboard double quotes, with typographical quotation marks. If you want to change the quotation character, click on one of the buttons. Clicking on Default, restores the default paragraph marks.

Replace single quotes with typographical quotes

  When selected, this option will replace the standard keyboard single quotes, with typographical quotation marks. If you want to change the quotation character, click on one of the buttons. Clicking on Default, restores the default paragraph marks.

#### Advanced Autocorrection

To switch to the Advanced Autocorrection, click on the tab labeled Advanced Autocorrection.

This allows you to automatically have &kword; replace one string of text with another. This can be useful for special symbols, commonly used abbreviations that you want spelled out, or abbreviations.

&kword; uses different autocorrection strings depending on the language. Set the correct language using the combo box labeled Replacements and exceptions for language:.

The check box labeled Enable word replacement is used to toggle on and off the autoreplacement features of &kword;. If there is no mark in the check box, then &kword; will not perform any autoreplacements from the list in this dialog.

If there is a mark in the check box labeled Replace text with format &kword; will not only change the text when it finds a match, but it will change the formatting of the new text. If there is no mark in this check box, then &kword; uses the same formatting options for the replaced text as it found in the search text. For more information on setting the format options for replacement text, see the section on Changing the format of the autocorrection string.

##### Adding an autocorrection string

To add an autocorrection string, simply type the text you want &kword; to check for in the text box labeled Find, then enter the text you want &kword; to substitute in the text box labeled Replace.

If you want to insert symbols or special characters not available on your keyboard, you can click the buttons with three periods on them and select a special character from the table provided.

When these are entered, click Add. Your text strings are now added to the table.

##### Editing an autocorrection string

Changing the text you want to find.

&kword; does not allow you to change the text to search for. This is to prevent disastrous mistakes.

Instead, you must delete the current autocorrection rule and add a new text string with the corrected text to find.

Changing the text you want to replace.

Begin by clicking once on the string you want to edit. It will be highlighted and the find and replace text will be listed in the text boxes above. You can alter the replacement text. When you are done, simply select Modify.

##### Deleting an autocorrection string.

Simply click on the string you want to delete. Now click the Remove button. The string is removed.

Be aware that &kword; does not give you a chance to back out once you have deleted a string. Be sure you have selected the correct string before you click the Remove button.

##### Changing the format of the autocorrection string.

Currently, you must create the autocorrection string before you can format it.

Once the autocorrection string has been created, simply click on it once with the &LMB;.

Now click on the Change Format... button. A small dialog will appear:

You can use this dialog to select the format of the replaced text.

The left column consists of 13 check boxes. If there is a mark in the check box, then &kword; will change any replaced text to match the property selected. If no mark is in the check box, &kword; does not consider that property when replacing text.

Family:

  Use this combo box to select the font family you want your replacement text to use.

Size:

  Use this spin box to set the font size you want &kword; to use for your replaced text.

Color: and Background Color:

  Clicking on either of these two buttons allows you to select the font color and/or background color respectively, you want &kword; to use. For more information on selecting a color, see the section on Selecting Colors from the Color Dialog.

Bold: and Italic:

  Use these Yes/No radio boxes to determine whether you want &kword; to change the fonts to boldface or italicized fonts.

Strikeout:

  You can select None, Single, Double or Simple Bold to use for the replacement text.

Underline

  You can select None, Single, Double, Simple Bold or Wave to use for the replacement text.

Vertical alignment:

  You can select Normal, Subscript or Superscript to determine what font alignment you want &kword; to use.

Shadow: and Word by word:

  Use these Yes/No radio boxes to determine whether you want &kword; to use shadow text and/or word by word underlining and strikethrough in the replacement text.

Capitalization:

  You can select Normal, Uppercase, Lowercase, or Small Caps to determine what capitalization to use for the replacement text.

Language:

  You can select the language of the text you will use to replace the found text.

Once you have selected your options, click OK to accept your text options.

Click Cancel to ignore all changes.

Click Reset to restore the options dialog box to the initial values prior to making any changes.

Click Clear to remove all marks from the checked options.

#### Autocorrection Exceptions

There are instances where &kword; will make autocorrection changes that are inappropriate. You can use the fourth tab of this dialog to define exceptions to the rules previously discussed.

The dialog for exceptions is shown below:

To prevent &kword; from deciding an abbreviation or other text is the end of a sentence, simply enter the text fragment in the text box below Do not treat as the end of a sentence:. Then click Add.

As an example: Adding Jr. to this dialog prevents

Robert Jones Jr. is a friend of the family.

from being changed to:

Robert Jones Jr. Is a friend of the family.

To remove an erroneous entry, simply click once on the wrong entry with the &LMB; and click on the Remove button.

The second set of boxes performs a similar function to the first except text entered in these boxes will allow two capital letters in a word if it is entered in this text box.

Simply enter the word in the text box below Accept two uppercase letters in:. Then click Add.

As an example: Adding CD to this dialog prevents

CD

from being changed to:

Cd

To remove an erroneous entry, simply click once on the wrong entry with the &LMB; and click on the Remove button.

### Manually applying autocorrection

If autocorrection is turned off in your document, you can manually enable autocorrection.

To manually apply autocorrection, first configure your options by using the autocorrection dialogs.

Then select Tools Autocorrection Apply Autocorrection from the menubar.

&kword; will start at the beginning of the document and apply all selected autocorrection options to the entire document.

When &kword; is finished, it will return you to your document for further editing.

For more information on enabling and disabling autocorrection, see Enabling/Disabling Autocorrection.

## Autocompletion

Autocompletion allows you to type the first few letters of a commonly used word (often technical or job specific), and tell &kword; to finish typing the word for you. This is often very useful when you have lengthy technical words.

### Using autocompletion

Using autocompletion could not be easier. Simply type the first few letters of the word you want &kword; to finish, and press &Ctrl;E. &kword; will look through the list of autocompletion words and if it finds a word which begins with those letters, it will finish entering the remainder of the word.

#### Adding words to autocompletion

&kword; maintains a list of words for each user that will be used for autocompletion.

You can add words to this list one of two ways:

- &kword; can automatically add new words to the completion list for later approval. This is selected using the dialog.

- Individual words can be added to the list by using the dialog.

### Configuring autocomplete

To configure autocompletion, select Settings Configure Completion... from the menubar. This will bring up a dialog.

Enable word completion

  It is used to toggle autocompletion on and off.

Add

  By clicking this button you can manually add an individual word to the completion list.

Remove

  To remove words from the completion list, select the word with the &LMB; from the list, then click this button.

Automatically add new words to suggestion list

  This option will add any word equal to or longer than the Characters needed: to the list of proposed autocompletion words.

  The large listbox in the center of the dialog contains the current proposed list of autocompletion words.

  Not all words listed in the list box will be immediatly affected by autocompletion when entered into this dialog.

Show words in tooltip

  If this option is enabled, a tool tip box will appear when you type the beginning of a word that exists in the completion list. To complete the word, press the key you set to accept suggestions in the Key to accept suggestion: drop-down list.

Characters needed:

  Use this spinbox/slider combination to prevent &kword; from automatically adding short words to the completion list. You can select any value from 5-100 and the words will need to be at least the number of characters set here to be added in the list.

Suggest words:

  This spinbox/slider combination can be adjusted to allow more or less words into the autocompletion list. This option is most important when Automatically add new words to suggestion list is enabled. This option keeps the list from becoming too cumbersome. You can select any value from 1 to 500.

Append space

  If checked, it adds a single space to the end of a word after autocompletion, this means it is not necessary to add the space manually for the next word.

Key to accept suggestion:

  Set the key you want to use when an autocompleted word is suggested to you and you want to accept it. You can choose Enter, Tab, Space, End or Right.

Make Default

  A word is not part of autocompletion until the list is saved to disk. At that moment, &kword; will use that saved list for all autocompletion, until the list is replaced with another saved list.

  Some of the words in the autocompletion list may not have been saved yet.

  To save the current list to disk and have &kword; begin using this new list for autocompletion, click this button.

Click OK to save your options. Click Cancel to abort all changes. Click Reset to reset to the state after you clicked on the Make Default button.