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 giellalt/giellalt.github.io

Using XMLMind XML Editor (XXE) to edit dictionary files

This is a brief guide for using XMLMind XML Editor (XXE) to edit xml-based dictionaries. It documents use for Neahttádigisánit dictionaries in the giellalt infrastructure, but the editor can be used for any xml document.

Preferences

To avoid unneccessary noise in our commits, it is important that we use identical settings for whitespace handling. Choose 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 the git repository. Open a dictionary 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.

XXE configuration for dictionary files

NOTE! the location of the add-on files has changed. Stay tuned.

If you are going to do more substantial editing, it is very helpful to install the XXE configuration for the 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

First click the Add… button:

XXE Add-on preferences

Then paste the URL into the URL dialog:

XXE Add-on preferences

The resulting preference pane should look like this:

XXE Add-on 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 (the commands marked with the Macintosh command key (⌘), the corresponding key on Windows and Linux is control):

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 for dictionaries

Sitemap