Rules Editor Home | Documentation Home | Stilo
Guide to
Migrate 5.0.0 Rules Editor
Stilo
Glossary - paragraph annotations
Syntax
p.glossary.entry(level)
level
nesting level for the entry, any integer
p.glossary.term(level)
level
nesting level for the term, any integer
p.glossary.def
Purpose

Both glossentry and glossterm are topics, so they have nesting levels as topics do. A glossterm can have multiple definitions; in such cases, a separate glossentry should be made for each definition.

Use with

Use with a target-filename annotation for those that start a new topic.

Here is a sample glossary with a title:

Glossary - paragraphs Hepatitis Inflammation of the liver X-ray1 Electromagnetic radiation of short wavelength, able to pass through opaque bodies X-ray2 Picture made by effect of X-rays on photographic plate, especially showing position of bones etc. by their greater absorption of the rays Yurt Mongolian nomads’ circular skin- or felt-covered tent, with collapsible frame

Since the terms and definitions are in different paragraphs, you will need to use the annotations p.glossary.term() and p.glossary.def to mark up the paragraphs.

Here is what your rules may look like.

Rules for paragraph-level glossary terms and definitions

Your output may look like this. This is one topic, so just one of the term/defintion pairs.

<glossentry> <glossterm>Hepatitis</glossterm> <glossdef> <p>Inflammation of the liver</p> </glossdef> </glossentry>