Attributes are additional information about an entry. Each attribute type has its own a sub types, and optionally takes a name.
There are three types of attributes each serves different function:
feature: // to add an output feature to the entry.
cond: // to require an extra condition to be met for that entry.
generalize: // to enable matching of a variety of text snippets based on generalized forms (for example, pluralization).
All text snippets marked up by the generalized entry inherit the same set of attributes.
Attributes are written in this syntax:
Attributes can be used within columns or directly as a command.
To use an attribute as a command, add a # symbol in front and put it at the beginning of a line in the Dictionary. Subsequent entries in the Dictionary will have that attribute.
This allows you to add the attribute globally to all entries forward until the end of the Dictionary.
To clear a command attribute, use
An an extended example (distributed with ETA as a demonstration Dictionary):
// setup attributes and columns to be cleared later
this is an example phrase
#cols text, feature:a
// clear a single global feature
// reset the columns to entry "text" only
back to one column // feature "f2" remains
// clear context condition
// clear plural form generation
// clear everything, except refname
#cols text, feature:b
// when #wordlist is used, everything is cleared
back to one column // text column only, features "a" and "b" are gone
Dictionaries allow two forms of conditional matching of word list entries:
Use the command: