ADD\_CLASSES(1) User Contributed Perl Documentation ADD\_CLASSES(1)

# [NAME](#NAME)

add\_classes - add class information to an attachment point database

# [SYNOPSIS](#SYNOPSIS)

```
  add_classes -c classes.xml infile.xml
```

For each glyph in the infile.xml attachment point database, find all the classes in classes.xml containing names that match the glyph. Ensure that the classes property contains a list of those classes that match. Print the results to stdout.

# [OPTIONS](#OPTIONS)

```
  -c classes.xml    List of classes and their contents
  -h                print manpage
  -p                Create classes for each property value
                    called property_value
```

# [DESCRIPTION](#DESCRIPTION)

Inserting a classes property in an attachment point database allows one to create context classes in the generated GDL or VOLT.

The DTD for the classes file is:

```
    <!ELEMENT classes (class, property)*>
    <!ELEMENT class (#PCDATA)>
    <!ATTLIST class
        name    CDATA #REQUIRED
        exts    CDATA #IMPLIED>
    <!ELEMENT property (#PCDATA)>
    <!ATTLIST property
        name    CDATA #REQUIRED
        value   CDATA #REQUIRED
        exts    CDATA #IMPLIED>
```

# [AUTHOR](#AUTHOR)

Martin Hosken &lt;http://scripts.sil.org/FontUtils&gt;. (see CONTRIBUTORS for other authors).

# [LICENSING](#LICENSING)

Copyright (c) 1998-2016, SIL International (http://www.sil.org)

This script is released under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.

2026-10-03 perl v5.44.0

---

Document: add_classes(1) from perl-font-ttf-scripts 1.06-r0 (Chainguard OS)
