template.pod 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # $Id$
  2. # Automatically generated from maintain/template.pod
  3. =head1 NAME
  4. Texinfo::Convert::OUTFORMAT - Convert Texinfo tree to OUTFORMAT
  5. =head1 SYNOPSIS
  6. my $converter
  7. = Texinfo::Convert::OUTFORMAT->converter({'parser' => $parser});
  8. $converter->output($tree);
  9. $converter->convert($tree);
  10. $converter->convert_tree($tree);
  11. __HTML $converter->output_internal_links(); # HTML only
  12. =head1 DESCRIPTION
  13. Texinfo::Convert::OUTFORMAT converts a Texinfo tree to OUTFORMAT.
  14. =head1 METHODS
  15. =over
  16. =item $converter = Texinfo::Convert::OUTFORMAT->converter($options)
  17. Initialize converter from Texinfo to OUTFORMAT.
  18. The I<$options> hash reference holds options for the converter. In
  19. this option hash reference a parser object may be associated with the
  20. I<parser> key. The other options should be configuration options
  21. described in the Texinfo manual. Those options, when appropriate,
  22. override the document content.
  23. See L<Texinfo::Convert::Converter> for more informations.
  24. =item $converter->output($tree)
  25. Convert a Texinfo tree I<$tree> and output the result in files as
  26. described in the Texinfo manual.
  27. =item $result = $converter->convert($tree)
  28. Convert a Texinfo tree I<$tree> or tree portion and return
  29. the resulting output.
  30. =item $result = $converter->convert_tree($tree)
  31. Convert a Texinfo tree portion I<$tree> and return the resulting
  32. output. This function does not try to output a full document but only
  33. portions. For a full document use C<convert>.
  34. __HTML =item $result = $converter->output_internal_links()
  35. __HTML
  36. __HTML Returns text representing the links in the document. The format should
  37. __HTML follow the C<--internal-links> option of the texi2any/makeinfo
  38. __HTML specification. This is only supported in (and relevant for) HTML.
  39. __HTML
  40. =back
  41. =head1 AUTHOR
  42. Patrice Dumas, E<lt>pertusus@free.frE<gt>
  43. =head1 COPYRIGHT AND LICENSE
  44. Copyright 2016 Free Software Foundation, Inc.
  45. This library is free software; you can redistribute it and/or modify
  46. it under the terms of the GNU General Public License as published by
  47. the Free Software Foundation; either version 3 of the License, or (at
  48. your option) any later version.
  49. =cut