Dictionary indexing
Lingvo system indexes a dictionary either when a search query is issued, or when it is directly asked to do so (for example, when a dictionary is attached). User dictionaries are indexed in the same manner as Lingvo system dictionaries are.
In order for the dictionary content to be present in search result, you have to specify indexing tags in the card body. If you don't use tags in the card body, only card heading will be used in search. Lingvo system regards entire indexing section as a single search area.
The translation section is marked in «[trn]» and «[/trn]» tags. Only words serving as direct translation equivalents should be included in this section (submeaning numbers are excluded form this).
The example section is marked in «[ex]» and «[/ex]» tags.
The comment section contains some additional information about the translation equivalents. It is marked in «[com]» and «[/com]» tags.
There can be some text in a dictionary entry which you would like to exclude from indexing (for example, citations from other entries). To exclude a portion of text from indexing use «[!trs]» and «[/!trs]» tags.
Create dictionary indexed by default (DSL Compiler dialog) option enables indexing zones to be entered in the card body automatically.
It is done in the following way - the complier, at the time of its launch, enters translation zone on-tag [trn] at the beginning of the card and translation zone off-tag at its end. If there will be other [trn] tags encountered in the card body (these entered by user) the card won’t be compiled and an error message will be issued, as embedding of indexing zones of one and the same type is forbidden in DSL language. On the contrary, if there will be comment or example tags encountered in the card, everything will be alright.
So, if the query text was found in comment or example zone, the card heading will be displayed in the respective section of the Search dialog.
For details see:
How to compile a dictionary |