Customizing AutoCorrect Dictionary
includes an AutoCorrect feature to automatically correct misspelled words as you type. There is a default list of commonly misspelled words and symbols for each supported language, but you can modify the list to suit your needs.
Customizing the AutoCorrect Terms List Using Oxygen XML Editor/Author
- Copy or move that patch file to the options/autocorrect folder
that is located inside your Oxygen Data
Directory (
oxygen.data.dir/options/autocorrect
).
Alternate Method (Without Using Oxygen XML Editor/Author)
- Create a patch file called en_patch.xml with
content like
this:
<?xml version="1.0" encoding="UTF-8"?> <replacements> <deletion match="i" substitution="I"/> <addition match="OXWA" substitution="Oxygen XML Web Author"/> </replacements>
- Save it in the options/autocorrect folder that is located inside
your Oxygen Data Directory
(
oxygen.data.dir/options/autocorrect
).
Text-to-Markup AutoCorrrect Conversions
Some built-in frameworks include a configuration file that defines shortcut patterns that
can be used to automatically insert a certain XML structure. More specifically, the XML
structure (fragment) automatically replaces a specific prefix pattern. For example, if you
are editing a DITA document using the built-in DITA framework, entering a hyphen (-)
followed by a space at the beginning of a paragraph would automatically replace them with an
unordered list element (<ul>
) with a child list item element
(<li>
). This is made possible by the AutoCorrect
mechanism.
It is possible to customize the particular configuration file (structureAutocorrect.xml) to define your own markup insertion shortcut patterns for your (document type). For more information, see Customizing Text-to-Markup Automatic Conversions.