1 # $Cambridge: exim/doc/doc-docbook/MyAsciidoc.conf,v 1.2 2005/11/10 12:30:13 ph10 Exp $
3 # Asciidoc configuration customization for creating the DocBook XML sources
4 # of the Exim specification and the filter document.
19 strong=<emphasis role="bold">|</emphasis>
21 filename=<filename>|</filename>
22 varname=<varname>$|</varname>
23 option=<option>|</option>
24 command=<command>|</command>
25 function=<function>|</function>
26 parameter=<parameter>|</parameter>
27 quoted=<quote>|</quote>
31 # Nothing - this is for disambiguating markup
35 (^|[^-])--($|[^-])=\1–\2
38 (^|\s+)---($|\s+)=\1舒\2
43 # ' automatic apostrophe
44 ([A-Za-z0-9])'([A-Za-z\s])=\1’\2
50 # The default markup recognizes subscripts and superscripts using tilde and
51 # circumflex. We don't want this. These settings manage to turn off the
52 # effect, while still allowing tilde to be recognized as a hard space.
58 # Manual apostrophe: needed for an apostrophe after something quoted, because
59 # I can't get the automatic one to work in that situation
62 # Manual tilde: tilde is defined as a hard space, and it doesn't seem possible
63 # to quote is using a backslash.
66 # Two hyphens, to stop them being treated as an en dash
69 # Percent: causes confusion with the quote otherwise
72 # Colon: there's a case where this causes trouble
75 # The sequence "[]" for use in index terms
79 # We need to add extra stuff to the <bookinfo> element
83 <!DOCTYPE book {dtddecl}>
87 <title>{doctitle}</title>
88 <titleabbrev>{doctitleabbrev}</titleabbrev>
91 <firstname>{firstname}</firstname>
92 <othername>{middlename}</othername>
93 <surname>{lastname}</surname>
95 <authorinitials>{authorinitials}</authorinitials>
96 {revisionhistory%}<revhistory><revision><revnumber>{revision}</revnumber><date>{date}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
97 <corpname>{companyname}</corpname>
98 <othercredit><contrib>{othercredit},</contrib></othercredit>
99 {copyright#}<copyright><year>{cpyear}</year><holder>{copyright}</holder></copyright>
100 <abstract><para>{abstract}</para></abstract>
101 {doctitle#}</bookinfo>
104 # Define a new kind of block that maps to <literallayout> so as not to
105 # insist on a monospaced font. Delimiter is &&&.
107 [blockdef-literallayout]
108 delimiter=^&{3,}(\[(?P<args>.*)\])?=*$
109 template=literallayoutblock
110 presubs=specialcharacters,quotes,replacements,macros,callouts
112 # The template for my non-monospaced literal layout block
115 <literallayout{revisionflag? revisionflag="{revisionflag}"}>|</literallayout>
117 # Replace the template for normal literal blocks so as to support the
118 # revisionflag feature.
121 <example><title>{title}</title>
122 <literallayout{id? id="{id}"} {revisionflag? revisionflag="{revisionflag}"} class="monospaced">
127 # Paragraph substitution - use <para> rather than <simplepara>
130 {title#}<formalpara{id? id="{id}"{revisionflag? revisionflag="{revisionflag}"}}><title>{title}</title><para>
131 {title%}<para{id? id="{id}"}{revisionflag? revisionflag="{revisionflag}"}>
134 {title#}</para></formalpara>
138 # Define a special table for left-centre-right lines, filling the whole page
139 # width, with a border but no separators, for Exim configuration options. It
140 # would be nice if this could call the default [table] template, forcing the
141 # appropriate attributes, but I have not found a way of doing this.
147 colspec=<colspec align="{colalign}"/>
149 bodydata=<entry>|</entry>
152 <{title?table}{title!informaltable}{id? id="{id}"} pgwide="1" frame="all" colsep="0" rowsep="0">
153 <title>{title}</title>
154 <tgroup cols="{cols}">
155 <colspec align="left" colwidth="8*"/>
156 <colspec align="center" colwidth = "5*"/>
157 <colspec align="center" colwidth = "5*"/>
158 <colspec align="right" colwidth = "6*"/>
169 </{title?table}{title!informaltable}>
171 # The default indexterm macro generates primary index entries for the
172 # secondary and tertiary terms as well, which does not make sense
173 # in the context of the way I write indexes. As well as a replacement
174 # that does the simple, straightforward thing, we actually want to have
175 # two different macros: one for concepts and one for options.
178 # Inline index term for concepts.
179 <indexterm role="concept">
180 <primary>{1}</primary>
181 <secondary>{2}</secondary>
182 <tertiary>{3}</tertiary>
186 # Inline index term for options.
187 <indexterm role="option">
188 <primary>{1}</primary>
189 <secondary>{2}</secondary>
190 <tertiary>{3}</tertiary>
193 # Allow for the "role" attribute for an index.
196 <index{id? id="{id}"}{role? role="{role}"}>
197 <title>{title}</title>
202 # Allow for the "titleabbrev" attribute for chapters.
205 <chapter{id? id="{id}"}>
206 <title>{title}</title>
207 <titleabbrev>{titleabbrev}</titleabbrev>