Skip to content

Language Archiving Technology

Sections
Personal tools
You are here: Home » Tools » Lexus » toolbox_to_lexus » 2.3. Double defining markers

2.3. Double defining markers

Document Actions

2.3. Double defining markers

A final step in making sure you get the most out of your .typ file when importing it into LEXUS is to be aware of the possibility of double-defining markers. In Toolbox every marker can be defined only under one other marker. What happens often however is that a certain data category seems to appear consistently in more than one place in the data file. Most often this is the case for part of speech, ps. In the MDF file, it is defined under subentry. However, except for appearing under subentry marker, it will be found throughout many lexica also under lexeme. The structure is actually in each case the same: part of speech appears under subentry which is under lexeme. However, in those cases, where it is found under lexeme in the data file, the subentry marker - which is in the structure between lexeme and part of speech, is simply not expressed explicitly. For Toolbox, as we already know this is not a problem.

LEXUS however will have to create an empty subentry group between every lexeme and part of speech in this case. Importantly however part of speech in this place is very consistent throughout lexica and it is desirable to have it there. To solve this problem, LEXUS allows to double define markers manually by simply copying the definition of ps in the .typ file and changing in the copy of that definition the node under which it is defined from subentry to lexeme. In that way in the structure file we have two definitions of the marker ps - under lexeme and under subentry. This double definition will not be recognized by Toolbox, but LEXUS can cope with it perfectly. The only limitation is that there should be no more than three double-defined elements in your .typ file, and the general rule is the fewer the better.

Double defined markers in the .typ file.

Figure 2.3. Double defined markers in the .typ file.


Often there are more than three markers that you would like to double-define. The only solution here is to first order them in a hierarchy and to double define only the very top marker of that hierarchy. The markers that are defined under it will automatically appear under the double-defined markers, both under lexeme and subentry for instance.

Created by latadmin
Last modified 2009-05-28 10:46
 

Powered by Plone

This site conforms to the following standards: