Faq/General/104/en

How to create a personal dictionary from a list of words?
To quickly create a dictionary, there must be words in a list, with one word per line. Use the following procedure:
 * Open the list in Writer and select the  menu to get the number of words in the file.
 * Insert the number at the beginning of the file on a new line.
 * Sort the list:
 * Select all ().
 * Select the  menu.
 * Leave the default options and press OK.
 * Save the file as  and NOT   and close the file.
 * Rename the file MyDic.dic or a meaningful name, such as chemical.dic for names of chemical compounds for example.
 * Create another file with the same name as the dictionary, and an extension AFF, containing at least:

SET UTF-8

This file may also contain rules for word suggestions when the word is unknown.

Adding dictionaries is done with the help of an extension. You can build a more or less sophisticated extension.

Create a directory  , in which you need to add:

 <!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">          %origin%/chimie.aff %origin%/chimie.dic  DICT_SPELL  fr-FR fr-BE fr-CA fr-CH fr-LU fr-MC 
 * The two files mentioned above:   and  
 * A sub directory  containing a file  
 * A file  , in which you customize the dictionary name (!must be unique), the names of the files and possibly the local:

 
 * A file   with the following information:
 * Mandatory header:
 * An identifier that must be unique (it is advisable to follow the reverse domain name scheme)


 * Version of the extension (!not of LibreOffice)

<driver_version> value="1.0" />
 * The name of the extension in LibreOffice

<display-name> <name lang="">Dictionary of chemical molecules </display-name>
 * OS on which the extension is valid


 * Versions of LibreOffice for which the extension is valid

<OpenOffice.org-minimal-version Value="3.0" d:name="OpenOffice.org 3.0" />
 * [Optional] the license that applies (add the corresponding file)

<simple-license accept-by="admin" suppress-on-update="false" > <license-text xlink:href="LICENCES-fr.txt" lang="fr" /> </simple-license>
 * [Optional] the name of the publisher of the extension

<name xlink:href="http://www.myorganization/myname" lang="en">ChemicalDict
 * [Optional] an icon that appears in the Extension Manager (do not forget to add the files)

<default xlink:href="icon.png" /> <high-contrast xlink:href="icon_hc.png" />
 * [Optional] descriptive text that appears in the Extension Manager (do not forget the files)

<extension-description> <src xlink:href="desc_en.txt" lang="en" /> </extension-description>
 * * A mandatory final file

Additional files (licenses, images, ...) can be grouped into subdirectories.

Then, assemble the entire content of the directory   in a ZIP file and change the extension to OXT. That is, your extension is ready, you can install it as any extensions by the  menu.

The Creating an extension for dictionaries contains more details.