The purpose of the tool grpng is to transform the structure of a tagged document by representing explicitly groups of elements statisfying some properties. The explicit grouping of such elements eases their processing as a group in later steps of the global application. Those steps can be splitting the document according to its hierarchical structure or formatting nested lists correctly. For more details, read the introduction to the tool rtf2rdc as well as the introduction to this tool.
All element inserting and numbering actions are optional and configurable.
An optional configurable white character zapping facility is also available to normalize the XML output of the filter without modifying the input file itself. The white character zapping facility works according the same principles as the element pruning facility. The content of the configuration file will be detailled below. The decision is taken according to a current zapping state and a set of zapping rules. A zapping state specifies an action and the scope of the action.