10.4 Converting Texinfo Trees

In some cases, it may be needed to convert a Texinfo tree rooted at any element. There is no reason to do that often, as the converter already goes through the tree calling functions to convert the elements, but it can be interesting in some cases.

This is, for example, often needed if a translated Texinfo tree is setup (see Internationalization of Strings Function). For example, here a Texinfo tree is returned by the cdt call, based on the translation of the ‘No value for @strong{{item}}’ string, and converted to HTML with convert_tree:

my $tree = $converter->cdt('No value for @strong{{item}}',
                           {'item' => $text_element});
my $no_value_converted_output = $converter->convert_tree($tree);