### 14.8.2 Defining macros to process index content

You will need to parse each index entry to divide it into levels, because the content of each level becomes a separate XML <index N> element. Mif2Go macro [ProcIXtext] handles this chore. Those parts of the macro that actually end up in output are highlighted in color: green for element content, magenta for element tags. Lines are numbered for reference.

In this section:

§14.8.2.1 Configuring macro definitions for easier reading

§14.8.2.2 Generating XML tags for each level

§14.8.2.3 Detecting colons used as text or punctuation

§14.8.2.4 Using an alternate macro to generate XML tags

§14.8.2.5 Stripping character formats from index entries

| 14.8.1 Configuring index markers for conversion to XML |  | 14.8.2.1 Configuring macro definitions for easier reading |