# $Cambridge: exim/doc/doc-docbook/MyAsciidoc.conf,v 1.2 2005/11/10 12:30:13 ph10 Exp $ # Asciidoc configuration customization for creating the DocBook XML sources # of the Exim specification and the filter document. [miscellaneous] newline=\n [quotes] _=filename $=varname %=option ^=command ^^=function ^%|%^=parameter ``|''=quoted [tags] strong=| filename=| varname=$| option= command=| function=| parameter=| quoted=| [replacements] # Nothing - this is for disambiguating markup "##"= # -- En dash (^|[^-])--($|[^-])=\1–\2 # --- Em dash (^|\s+)---($|\s+)=\1舒\2 # -- Hard space ~=  # ' automatic apostrophe ([A-Za-z0-9])'([A-Za-z\s])=\1’\2 # daggers !!=† !\?=‡ # The default markup recognizes subscripts and superscripts using tilde and # circumflex. We don't want this. These settings manage to turn off the # effect, while still allowing tilde to be recognized as a hard space. \^(.+?)\^=^\1^ ~(.+?)~=~\1~ [attributes] # Manual apostrophe: needed for an apostrophe after something quoted, because # I can't get the automatic one to work in that situation ap=’ # Manual tilde: tilde is defined as a hard space, and it doesn't seem possible # to quote is using a backslash. tl=~ # Two hyphens, to stop them being treated as an en dash hh=-- # Percent: causes confusion with the quote otherwise pc=% # Colon: there's a case where this causes trouble co=: # The sequence "[]" for use in index terms bk=[] # We need to add extra stuff to the element [header] {doctitle#} {doctitle} {doctitleabbrev} {date} {authored#} {firstname} {middlename} {lastname} {authored#} {authorinitials} {revisionhistory%}{revision}{date}{authorinitials?{authorinitials}}{revremark?{revremark}} {companyname} {othercredit}, {copyright#}{cpyear}{copyright} {abstract} {doctitle#} # Define a new kind of block that maps to so as not to # insist on a monospaced font. Delimiter is &&&. [blockdef-literallayout] delimiter=^&{3,}(\[(?P.*)\])?=*$ template=literallayoutblock presubs=specialcharacters,quotes,replacements,macros,callouts # The template for my non-monospaced literal layout block [literallayoutblock] | # Replace the template for normal literal blocks so as to support the # revisionflag feature. [literalblock] {title} | {title#} # Paragraph substitution - use rather than [paragraph] {title#}{title} {title%} | {title%} {title#} {empty} # Define a special table for left-centre-right lines, filling the whole page # width, with a border but no separators, for Exim configuration options. It # would be nice if this could call the default [table] template, forcing the # appropriate attributes, but I have not found a way of doing this. [tabledef-conf] fillchar== format=csv template=conf-table colspec= bodyrow=| bodydata=| [conf-table] <{title?table}{title!informaltable}{id? id="{id}"} pgwide="1" frame="all" colsep="0" rowsep="0"> {title} {headrows#} {headrows} {headrows#} {footrows#} {footrows} {footrows#} {bodyrows} # The default indexterm macro generates primary index entries for the # secondary and tertiary terms as well, which does not make sense # in the context of the way I write indexes. As well as a replacement # that does the simple, straightforward thing, we actually want to have # two different macros: one for concepts and one for options. [cindex-inlinemacro] # Inline index term for concepts. {1} {2} {3} [oindex-inlinemacro] # Inline index term for options. {1} {2} {3} # Allow for the "role" attribute for an index. [sect-index] {title} | # Allow for the "titleabbrev" attribute for chapters. [sect1] {title} {titleabbrev} | #### End ####