summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/doc/tp_api/api_includes/Texinfo-Convert-DocBook.texi
blob: 5da0aacd1866eb0546b8690a758f806dbdd29151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@node Texinfo@asis{::}Convert@asis{::}DocBook
@chapter Texinfo::Convert::DocBook

@node Texinfo@asis{::}Convert@asis{::}DocBook NAME
@section Texinfo::Convert::DocBook NAME

Texinfo::Convert::DocBook - Convert Texinfo tree to DocBook

@node Texinfo@asis{::}Convert@asis{::}DocBook SYNOPSIS
@section Texinfo::Convert::DocBook SYNOPSIS

@verbatim
  my $converter
    = Texinfo::Convert::DocBook->converter({'parser' => $parser});

  $converter->output($tree);
  $converter->convert($tree);
  $converter->convert_tree($tree);
@end verbatim

@node Texinfo@asis{::}Convert@asis{::}DocBook NOTES
@section Texinfo::Convert::DocBook NOTES

The Texinfo Perl module main purpose is to be used in @code{texi2any} to convert
Texinfo to other formats.  There is no promise of API stability.

@node Texinfo@asis{::}Convert@asis{::}DocBook DESCRIPTION
@section Texinfo::Convert::DocBook DESCRIPTION

Texinfo::Convert::DocBook converts a Texinfo tree to DocBook.

@node Texinfo@asis{::}Convert@asis{::}DocBook METHODS
@section Texinfo::Convert::DocBook METHODS

@table @asis
@item $converter = Texinfo::Convert::DocBook->converter($options)
@anchor{Texinfo@asis{::}Convert@asis{::}DocBook $converter = Texinfo@asis{::}Convert@asis{::}DocBook->converter($options)}

Initialize converter from Texinfo to DocBook.

The @emph{$options} hash reference holds options for the converter.  In
this option hash reference a @ref{Texinfo@asis{::}Parser NAME,, parser object}
may be associated with the @emph{parser} key.  The other options
are Texinfo customization options and a few other options that can
be passed to the converter. Most of the customization options are described in
the Texinfo manual.  Those customization options, when appropriate, override
the document content.  The parser should not be available directly anymore
after getting the associated information.

See @ref{Texinfo@asis{::}Convert@asis{::}Converter NAME,, Texinfo::Convert::Converter} for more information.

@item $converter->output($tree)
@anchor{Texinfo@asis{::}Convert@asis{::}DocBook $converter->output($tree)}

Convert a Texinfo tree @emph{$tree} and output the result in files as
described in the Texinfo manual.

@item $result = $converter->convert($tree)
@anchor{Texinfo@asis{::}Convert@asis{::}DocBook $result = $converter->convert($tree)}

Convert a Texinfo tree @emph{$tree} and return the resulting output.

@item $result = $converter->convert_tree($tree)
@anchor{Texinfo@asis{::}Convert@asis{::}DocBook $result = $converter->convert_tree($tree)}

Convert a Texinfo tree portion @emph{$tree} and return the resulting
output.  This function does not try to output a full document but only
portions.  For a full document use @code{convert}.

@end table

@node Texinfo@asis{::}Convert@asis{::}DocBook AUTHOR
@section Texinfo::Convert::DocBook AUTHOR

Patrice Dumas, <pertusus@@free.fr>

@node Texinfo@asis{::}Convert@asis{::}DocBook COPYRIGHT AND LICENSE
@section Texinfo::Convert::DocBook COPYRIGHT AND LICENSE

Copyright 2010- Free Software Foundation, Inc.  See the source file for
all copyright years.

This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at
your option) any later version.