AutoCorrect Preferences
Oxygen XML Author includes an option to automatically correct misspelled words as you type in Author mode. To enable and configure this AutoCorrect feature, open the Preferences dialog box and go to .
- Enable AutoCorrect
- When selected (default state), while editing in Author mode, if
you type anything that is listed in the Replace column of the
Replacements table displayed in this preferences page, Oxygen XML Author will
automatically replace it with the value listed in the With column.
- Use additional suggestions from the spell checker
- If selected, in addition to anything listed in the Replacements table
displayed in this preferences page, Oxygen XML Author will also use
suggestions from the Spell Checker to automatically correct misspelled words.
Suggestions from the Spell Checker will only be used if the misspelled word is
not found in the Replacements table.Note: The AutoCorrect feature shares the same options configured in the Language options and Ignore elements sections in the Spell Check preferences page.
- Include text-to-markup corrections based on the current document type
-
If selected, in addition to anything listed in the Replacements table displayed in this preferences page, the AutoCorrect mechanism will also include XML markup insertion rules specified in a configuration file for each document type. For example, for default DITA, DocBook, and TEI documents, entering a hyphen (-) followed by a space in an empty paragraph will automatically insert a list element with an empty list item element inside. The configuration file is located at: [OXYGEN_INSTALL_DIR]/frameworks/[DOC_TYPE]/resources/structureAutocorrect.xml.
Tip: By default, the structureAutocorrect.xml file only exists for DITA, DocBook, and TEI frameworks, but it is possible to customize your own markup correction rules for your particular document type. For details, see Customizing Text-to-Markup Shortcut Patterns.
- Spell Check options link
- Use this link to navigate to the Spell Check Preferences page.
- Replacements Table section
-
The AutoCorrect feature uses the Replacements table to automatically replace anything that is listed in the Replace column with the value listed in the With column for each language.
- Replacements for language drop-down menu
- You can specify the language for the Replacements table, and for each language, you can configure the items listed in the table. The language selected in this page is not the language that will be used by the AutoCorrect feature. It is simply the language for the Replacements table.
- Replacements Table
- You can double-click on cells in either column to edit the listed items. Use
the Add button to insert new items and the
Remove button to delete rows from the table. Note: Any changes, additions, or deletions you make to this table are saved to a path that is specified in the AutoCorrect Dictionaries preferences page.
- Smart quotes section
- You can also choose to automatically convert double and single quotes to a quotation
character of your choice by using the following options in the Smart
quotes section:
- Replace "Single quotes" - Replaces single quotes with the quotation symbols you select with the Start quote and End quote buttons.
- Replace "Double quotes" - Replaces double quotes with the quotation symbols you select with the Start quote and End quote buttons.
Note: These Smart quotes options are ignored for content inside any element listed in the Ignore elements section of the Spell Check preferences page. - Global Options
- If this option is selected, the options are stored on your local computer, in a folder that is not accessible to other users.
- Project Options
- If this option is selected, the options are stored in the project file and can be shared with other users. Selecting Project Options will only save your selections in Enable AutoCorrect, Use additional suggestions from the spell checker, and the options in the Smart quotes section. Changes to the Replacements table are not saved in this page. To save changes to the Replacements table at project level you need to specify a custom location in the User-defined replacements section of the AutoCorrect Dictionaries preferences page and select Project Options from that preferences page instead.
- Restore Defaults
- Restores the options in this preferences page to their default values and also deletes any changes you have made to the Replacements table.