Skip to main content

Filter Out Unused Glossary Terms

Abstract

Learn how to filter out unused glossary terms from the published PDF output.

For PDF and HTML5 outputs, you can make the Paligo Glossary filter out unused glossary terms from the published output. This is useful when you reuse the same glossary topic for different publications.

When you publish, Paligo will look for the glossary references in your publication. It will then filter the glossary so that it only includes entries for the glossary terms that are actually referenced in your publication. If there are any unused glossary terms, they are ignored and do not appear in the glossary.

To set your glossary to only include terms that appear in a publication:

  1. Create a Glossary Topic and add glossary terms and definitions.

  2. Mark up your topics with Glossary References for the filtering to work. Each glossary term needs to be referenced at least once in the publication's topics, otherwise it will be omitted when the glossary is published (as long as it has the role attribute set to auto, see step 5) .

  3. Open your glossary topic and click inside the Paligo Glossary.

  4. Select the glossary element in the Element Structure Menu and choose Go to element.

    Paligo editor shows a glossary topic is open. The glossary element is selected in the element structure menu and the go to element option is highlighted.
  5. Add the role attribute in the Element Attributes Panel and set its value to auto.

    The element attributes section shows the glossary element has a role attribute. The role attribute has its value set to auto.

    Note

    The automatic filtering of glossary terms only applies if the glossary has the role attribute set to auto.

    If you have a topic that contains multiple glossaries and some of them without the role="auto" element, you will get all their glossary terms, even if they are not used in the publication.

  • Select Save. Save icon.

  • When you publish, Paligo will filter out any unused glossary terms.

    Example 1. Range of publications for a single product

    For example, let's say you have a range of publications for a single product, such as an industrial fan:

    • A user guide aimed at customers who will use the fan controls in the factory.

    • An installation guide aimed at electricians who will fit the fan in the factory.

    • A firmware guide that is used by your service engineers who can visit the factory and apply updates to the fan.

    Rather than creating separate glossaries for these publications, you create one glossary that is reused in all three. However, the glossary will contain some terms that you do not want to appear in the user guide, as they are technical terms that are not intended for the customers.

    If you set the glossary to filter out unused glossary terms, each output will only include the terms that appear in the publication. In other words, you will get a user guide with a glossary that only contains the terms that appear in the user guide, the installation guide will only have terms that appear in the installation guide, and so on.