iconv: Bail out of the loop when an illegal sequence of bytes occurs.
[elinks/elinks-j605.git] / doc / asciidoc.conf
blob358700d3262edc12ef26db91385f021f7a25eaa9
1 # AsciiDoc configuration file
2 # Copyright (c) Jonas Fonseca <fonseca@diku.dk>, 2006
4 # This file sets the following ELinks specific AsciiDoc macros:
6 # General purpose:
7 # - man:page[section]: which is used for linking between ELinks manpages.
9 [replacements]
10 (^|[^-])--($|[^-])=\1--\2
12 # Some macros can have optional {0} value, that is what
13 # the {0%...} and {0#...} handles.
15 #############################################################################
16 # DocBook
18 ifdef::backend-docbook[]
20 # To be replaced later
21 [attributes]
22 squote='
24 # No interlinking between elinks manpages
25 [man-inlinemacro]
26 {0%{target}}
27 {0#<citerefentry>}
28 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
29 {0#</citerefentry>}
31 # No interlinking between elinks manpages
32 [otherman-inlinemacro]
33 {0%{target}}
34 {0#<citerefentry>}
35 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
36 {0#</citerefentry>}
38 # For manpages use less verbose linking
39 ifdef::doctype-manpage[]
40 [link-inlinemacro]
41 {0%&lt;{target}&gt;}
42 {0#{0} &lt;{target}&gt;}
44 [http-inlinemacro]
45 {0%&lt;http:{target}&gt;}
46 {0#{0} &lt;http:{target}&gt;}
48 [mailto-inlinemacro]
49 &lt;{target}&gt;
51 [header]
52 template::[header-declarations]
53 <refentry>
54 <refmeta>
55 <refentrytitle>{mantitle}</refentrytitle>
56 <manvolnum>{manvolnum}</manvolnum>
57 <refmiscinfo class="source">ELinks</refmiscinfo>
58 <refmiscinfo class="version">{elinks_version}</refmiscinfo>
59 <refmiscinfo class="manual">{description}</refmiscinfo>
60 </refmeta>
61 <refnamediv>
62   <refname>{manname}</refname>
63   <refpurpose>{manpurpose}</refpurpose>
64 </refnamediv>
66 endif::doctype-manpage[]
67 endif::backend-docbook[]
69 #############################################################################
70 # XHTML11
72 ifdef::backend-xhtml11[]
74 [attributes]
75 squote='
77 # Use the man:[] macro to link between elinks manpages
78 [man-inlinemacro]
79 <a href="{target}.{0}.html">{target}({0})</a>
81 [otherman-inlinemacro]
82 <b>{target}({0})</b>
84 endif::backend-xhtml11[]