KEY2HTML MANUAL

For questions and feedback please contact Alexander N. Schmidt-Lebuhn.

Purpose of Key2html

The Key2html tool was written to convert plain text dichotomous analytical keys into interactive HTML-based keys which can then be made available on the internet. The idea was not only to facilitate the conversion into HTML - which can be tiresome for a large number of taxa - but also to allow the navigation from couplet to couplet with hyperlinks, and eventually the navigation from terminal taxa of the current key to subkeys and database entries.

The program is made available for other researchers who would like to convert long, multiple, and/or interrelated keys. It has been tested successfully on keys of various formats and on Windows and Macintosh systems. Please note, however, that it is provided without any warranty or guarantee for its performance on your system. To use the advanced features (custom links), a basic understanding of URLs is needed.

This is how the converted key works and looks like:

1.

Leaves ovate

... question 2.

Leaves obovate

Planta sylvatica

2.

Corolla yellow

Planta arvensis

Corolla white

Planta vulgaris

... back to question 1

Note, however, that details like background colour, font type etc. are determined by the HTML file the table is inserted into, and also in part by the environment under which the page is shown, so that your results might differ from what you see here.

Terminology and introduction to scientific keys

Analytical determination keys work like "choose your own adventure" stories, i.e., the reader has to answer a series of questions, taking a certain route through the key depending on the answers he gives, until he finally arrives at the taxon name or is given a reference to another (sub-)key. They are usually dichotomous, meaning that the questions have exactly two possible answers which should be direct opposites (good example: "leaves less than 10 mm long" vs. "leaves more than 10 mm long", bad example: "leaves less than 10 mm long" vs. "leaves serrate"). A pair of alternatives is called a couplet, each of the two alternatives a lead. The information provided after the leads, which can be either the name of a taxon, a reference to a subkey, or (most often) the number of the next couplet, is here called a direction.

There are two main types of keys: indented (yoked) and bracketed (parallel). Indented keys have the two leads of each couplet separated by the couplets following the first lead, so that it is easier to find the next "question". On the other hand, that makes it harder to compare the alternatives, especially in the first couplets of large keys. Bracketed keys keep the two leads of every couplet together, allowing for an easier comparison of the alternatives, but that means that only one of the next couplets follows in the text. It is also obvious that, in this case, the key cannot be navigated if the couplets are unnumbered, which would be possible in indented keys.

The keys produced by Key2html are always bracketed, for obvious reasons: only that format assures that both leads are displayed on the monitor at the same time, and the one disadvantage of bracketed keys - having to search for the following couplet - is taken care of by the HTML hyperlinks.

Format of your submitted key

Your key has to conform to the following format if it is to be processed correctly:

Submitting keys not conforming to these rules will yield strange results or none at all.

How to use

Make sure that JavaScript is activated in your browser. Copy and paste your key into the main text window of the Key2html form, set the correct options for your type of key (see below), click submit. A popup window should appear containing the HTML code for your navigatable key. You can select this code using your mouse pointer, copy and paste it into a text editor, and save it as an .html-file, or copy the part "<table ... </table>" into the appropriate position in the body of an existing .html file of your choice. If you want, you can now edit the layout in your text editor or in an HTML editor.

It is not recommended to place two interactive keys generated with Key2html in the same .html file because they will use the same identifiers for their couplets.

Options

Unfortunately, it is rather difficult to program a computer so that it can reliably distinguish between all different types of keys. It is therefore not only necessary but also essential to set all options correctly, so that the program knows what to expect. Setting options not fitting the key will yield strange results or none at all.