# edit-dictionary(3)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

edit-dictionary - Insert a dictionary in a buffer
restore-dictionary - Save dictionary user changes

## SYNOPSIS

edit-dictionary "dictionary"
restore-dictionary

## DESCRIPTION

edit-dictionary dumps the contents of "dictionary" into the temporary buffer "*dictionary*", if this buffer already exists then edit-dictionary simply swaps to this buffer. This enables the user to correct and prune the words in any dictionary. The given dictionary must have already been added as a main dictionary using add-dictionary(2).

The format of the created buffer is one word on each line, each word takes one of the following 3 forms:

`xxxx` - Good word `xxxx` with no spell rules allowed
`xxxx/abc` - Good word `xxxx` with spell rules `abc` allowed
`xxxx>yyyy` - Erroneous word with an auto-replace to `yyyy`

Executing restore-dictionary in a buffer created by edit-dictionary will first call delete-dictionary(2) to remove the original dictionary from memory. It then uses add-dictionary(2) to create a new dictionary with the same name and then uses spell-add-word(3) to add all the words in the current buffer into the new dictionary.

restore-dictionary does not save the new dictionary.

## NOTES

edit-dictionary and restore-dictionary are macros defined in file `spellutl.emf`. They are not defined by default so spellutl.emf must be executed first using execute-file(2).

## SEE ALSO

spell-add-word(3), add-dictionary(2), save-dictionary(2), delete-dictionary(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>