Text editor specific actions

<oXygen/> provides user actions common in any text editor:

Undoing and redoing user actions

  • Edit->Undo (Ctrl+Z) to reverse a maximum of 100 editing actions to return to the preceding state. Complex operations like "Replace All", "Indent selection", etc are treated as a single undo event.

  • Edit->Redo (Ctrl+Shift+Z) to recreate a maximum of 100 editing actions that were undone by the Undo function.

Copying and pasting text

  • Edit->Cut (Ctrl+X) to remove the current selected node from the document and places it in the clipboard.

  • Edit->Copy (Ctrl+C) to place a copy of the current selection in the clipboard.

  • Edit->Paste (Ctrl+V) to place the current clipboard content into the document at the cursor position.

  • Edit->Select All (Ctrl+A) selects the entire body of the current document, including whitespace preceding the first and following the last character.

Using Check Spelling

The Check Spelling option ( XML->Check Spelling (Ctrl+Shift+Q) or the toolbar button Check spelling ) enables you to perform the check spelling on the current document:

Figure 4.31.  Check Spelling Dialog

Check Spelling Dialog

Complete the dialog as follows:

Unrecognized Word

Contains the word that cannot be found in the selected dictionary. The word is also highlighted in the XML document.

Replace with

The character string which is suggested to replace the unrecognized word.

Guess

Displays a list of words suggested to replace the unknown word. Double clicking a word in this list automatically inserts it in the document and continues the spell checking process.

Dictionary

Displays a list with the available dictionaries.

Replace

Replaces the currently highlighted word in the XML document, with the selected word in the "Replace with" field.

Replace All

Replaces all occurrences of the currently highlighted word in the XML document, with the selected word in the "Replace with" field.

Ignore

Allows you to continue checking the document while ignoring the first occurrence of the unknown word. The same word will be flagged again if it appears in the document.

Ignore all

Ignores all instances of the unknown word in the whole document.

Learn

Includes the unrecognized word in the list of valid words so that the spell checker will no longer consider it for correction.

Options

Sets the configuration options of the Spell Checker.

Begin at caret position

When checked, the spell checker begins checking from the current cursor position.

OK

Closes the Spell Checker dialog.

Figure 4.32.  Options Dialog

Options Dialog

The Options dialog contains the global check spelling options:

Case sensitive

When checked, operations ignore capitalization errors.

Ignore mixed case words

When checked, operations do not check words containing case mixing (e.g. "SpellChecker").

Ignore word with digits

When checked, the Spell Checker do not check words containing digits (e.g. "b2b").

Ignore Duplicates

When checked, the Spell Checker do not signal two successive identical words as an error.

Ignore URL

When checked, ignores words looking like URL or file names (e.g. "www.oxygenxml.com" or "c:\boot.ini") .

Check punctuation

When checked, punctuation checking is enabled: misplaced white space and wrong sequences, like a dot following a comma, are detected.

Enable auto replace

Enables the "Replace Always" feature.

Allow compounds words

When checked, all words formed by concatenating two legal words with an hyphen are accepted. If the language allows it, two words concatenated without hyphen are also accepted.

Allow general prefixes

When checked, a word formed by concatenating a registered prefix and a legal word is accepted. For example if "mini-" is a registered prefix, accepts "mini-computer".

Allow file extensions

When checked, accepts any word ending with registered file extensions (e.g. "myfile.txt", "index.html" etc.).

Suggestion

This option indicates the type of spell checker accuracy, which may be: "Favour speed over quality", "Normal" and "Favour quality over speed".

<oXygen/> provides dictionaries only for the languages English (EN, GB, CA, US), French (FR, BE, CA, CH) and German in the form of .dar files located in the directory [oXygen-install-dir]/dicts. A pre-built dictionary can be added by copying the corresponding .dar archive to the same directory and restarting <oXygen/>. A dictionary can be built with the tool available at http://www.xmlmind.com/spellchecker/dictbuilder.shtml.

Learned words are stored into an persistent learned-words dictionary with the .tdi extensions located in [user-home-dir]/spell directory ([user-home-dir]/.spell directory on Mac OS X). There is one dictionary for each language-country variant combination. If the Learn button is pressed by mistake the only possibility to delete the learned word from the learned-words dictionary is to edit this dictionary manually and restart <oXygen/> because the spell-check component does not allow its editing by the user interface.

Note

The Czech check spelling dictionary may be downloaded from http://www.kosek.cz/sw/xxe/cs.dar