GiellaLT

GiellaLT provides an infrastructure for rule-based language technology aimed at minority and indigenous languages, and streamlines building anything from keyboards to speech technology. Read more about Why. See also How to get started and our Privacy document.

View GiellaLT on GitHub

Using XMLMind XM Editor (XXE) to edit dictionary files

This is a brief guide for using XMLMind XML Editor (XXE) to edit xml-based dictionaries.

Preferences

To avoid unneccessary noise in our commits, it is important that we use identical settings for whitespace handling. Choose Options > Preferences > Save, and make sure that the following settings are as in the picture below:

XXE Whitespace settings

This is the basic setup to make things work good enough wrt our svn repository. Open a file and start editing (details below). When done, check in, and the commit will only contain your changes - no changes in the whitespace of the document.

If you don’t have write access to the repository, you can instead make a patch and send it to us.

XXE configuration for dictionary files

If you are going to do more substantial editing, it is very helpful to install the XXE configuration for our dictionaries. To do that, first add the following URL to the Install add-ons section in the XXE preferences (once). Then install the add-on.

http://divvun.no/static_files/list.xxe_addon

Add config URL to the XXE preferences

Install/update the dictionary config

Open the menu Options > Install Add-ons…, and click in the check box in front of the Giellatekno/Divvun dictionary configuration:

images/xxe-update-dictconfig.png

The two arrows in a circle in front of the check box indicates that there is an update available. If this is the first time you install the configuration, there are no such arrows there.

When done, click OK, and restart XXE.

Editing

You can do almost all editing using point and click (demo, including showing the xpath path).

But to work efficiently, you should switch to the keyboard. Here are the most important keyboard shortcuts (shown for Mac / Windows-Linux; ^ = ctrl):

Specific points:

The dictionary configuration automatically opens two views, one resembling a traditional dictionary article, and another with most elements on a line by itself. These are just views of the same underlying xml document, which means that changes in one view is immediately visible in the other. The same goes for selections.

It is also possible to open a third view (and a fourth, and fifth) to the right (or top / bottom) e.g. with the regular tree view, but that should normally not be necessary. Most, if not all, tree structure operations can be done without that view, by clicking on the appropriate places, or using command+up arrow.

Clicking the appropriate places means:

The official quickstart guide is available at the xmlmind site.

Editing guideline