Initial commit.
This commit is contained in:
648
asciidoc/asciidoc.conf
Normal file
648
asciidoc/asciidoc.conf
Normal file
@@ -0,0 +1,648 @@
|
||||
#
|
||||
# asciidoc.conf
|
||||
#
|
||||
# Asciidoc global configuration file.
|
||||
# Contains backend independent configuration settings that are applied to all
|
||||
# AsciiDoc documents.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
tabsize=8
|
||||
textwidth=70
|
||||
newline=\r\n
|
||||
|
||||
[attributes]
|
||||
backend-alias-html=xhtml11
|
||||
backend-alias-docbook=docbook45
|
||||
toclevels=2
|
||||
toc-placement=auto
|
||||
sectids=
|
||||
iconsdir=./images/icons
|
||||
encoding=UTF-8
|
||||
# Uncomment to use xhtml11 quirks mode CSS.
|
||||
#quirks=
|
||||
# HTML source code highlighter (source-highlight, pygments or highlight).
|
||||
source-highlighter=source-highlight
|
||||
# Uncomment to use deprecated quote attributes.
|
||||
#deprecated-quotes=
|
||||
empty=
|
||||
sp=" "
|
||||
# Attribute and AttributeList element patterns.
|
||||
attributeentry-pattern=^:(?P<attrname>\w[^.]*?)(\.(?P<attrname2>.*?))?:(\s+(?P<attrvalue>.*))?$
|
||||
attributelist-pattern=(^\[\[(?P<id>[\w_:][\w_:.-]*)(,(?P<reftext>.*?))?\]\]$)|(^\[(?P<attrlist>.*)\]$)
|
||||
# Substitution attributes for escaping AsciiDoc processing.
|
||||
amp=&
|
||||
lt=<
|
||||
gt=>
|
||||
brvbar=|
|
||||
nbsp= 
|
||||
zwsp=​
|
||||
wj=⁠
|
||||
deg=°
|
||||
backslash=\
|
||||
two-colons=::
|
||||
two-semicolons=;;
|
||||
plus=+
|
||||
# DEPRECATED: underscore attribute names.
|
||||
two_colons=::
|
||||
two_semicolons=;;
|
||||
# Left and right single and double quote characters.
|
||||
# See http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks
|
||||
lsquo=‘
|
||||
rsquo=’
|
||||
ldquo=“
|
||||
rdquo=”
|
||||
|
||||
[titles]
|
||||
subs=specialcharacters,quotes,replacements,macros,attributes,replacements2
|
||||
# Double-line title pattern and underlines.
|
||||
sectiontitle=^(?P<title>.*?)$
|
||||
underlines="==","--","~~","^^","++"
|
||||
# Single-line title patterns.
|
||||
sect0=^= +(?P<title>[\S].*?)( +=)?$
|
||||
sect1=^== +(?P<title>[\S].*?)( +==)?$
|
||||
sect2=^=== +(?P<title>[\S].*?)( +===)?$
|
||||
sect3=^==== +(?P<title>[\S].*?)( +====)?$
|
||||
sect4=^===== +(?P<title>[\S].*?)( +=====)?$
|
||||
blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$
|
||||
|
||||
[specialcharacters]
|
||||
&=&
|
||||
<=<
|
||||
>=>
|
||||
|
||||
[quotes]
|
||||
# The order is important, quotes are processed in conf file order.
|
||||
**=#strong
|
||||
*=strong
|
||||
``|''=doublequoted
|
||||
'=emphasis
|
||||
`|'=singlequoted
|
||||
ifdef::no-inline-literal[]
|
||||
`=monospaced
|
||||
endif::no-inline-literal[]
|
||||
# +++ and $$ quoting is applied to the +++ and $$ inline passthrough
|
||||
# macros to allow quoted attributes to be used.
|
||||
# This trick only works with inline passthrough macros.
|
||||
+++=#unquoted
|
||||
$$=#unquoted
|
||||
++=#monospaced
|
||||
+=monospaced
|
||||
__=#emphasis
|
||||
_=emphasis
|
||||
\##=#unquoted
|
||||
\#=unquoted
|
||||
^=#superscript
|
||||
~=#subscript
|
||||
|
||||
[specialwords]
|
||||
emphasizedwords=
|
||||
strongwords=
|
||||
monospacedwords=
|
||||
|
||||
[replacements]
|
||||
# Replacements performed in order of configuration file entry. The first entry
|
||||
# of each replacement pair performs the (non-escaped) replacement, the second
|
||||
# strips the backslash from the escaped replacement.
|
||||
|
||||
# (C) Copyright (entity reference ©)
|
||||
(?<!\\)\(C\)=©
|
||||
\\\(C\)=(C)
|
||||
|
||||
# (R) registered trade mark (entity reference ®
|
||||
(?<!\\)\(R\)=®
|
||||
\\\(R\)=(R)
|
||||
|
||||
# (TM) Trademark (entity reference ™)
|
||||
(?<!\\)\(TM\)=™
|
||||
\\\(TM\)=(TM)
|
||||
|
||||
# -- Spaced and unspaced em dashes (entity reference —).
|
||||
# Space on both sides is translated to thin space characters.
|
||||
(^-- )=— 
|
||||
(\n-- )|( -- )|( --\n)= — 
|
||||
(\w)--(\w)=\1—\2
|
||||
\\--(?!-)=--
|
||||
|
||||
# Replace vertical typewriter apostrophe with punctuation apostrophe.
|
||||
(\w)'(\w)=\1’\2
|
||||
(\w)\\'(\w)=\1'\2
|
||||
|
||||
# ... Ellipsis (entity reference …)
|
||||
(?<!\\)\.\.\.=…
|
||||
\\\.\.\.=...
|
||||
|
||||
# Arrows from the Arrows block of Unicode.
|
||||
# -> right arrow
|
||||
(?<!\\)->=→
|
||||
\\->=->
|
||||
# => right double arrow
|
||||
(?<!\\)\=>=⇒
|
||||
\\\=>==>
|
||||
# <- left arrow
|
||||
(?<!\\)<-=←
|
||||
\\<-=<-
|
||||
# <= left double arrow
|
||||
(?<!\\)<\==⇐
|
||||
\\<\==<=
|
||||
|
||||
# Arbitrary entity references.
|
||||
(?<!\\)&([:_#a-zA-Z][:_.\-\w]*?;)=&\1
|
||||
\\(&[:_#a-zA-Z][:_.\-\w]*?;)=\1
|
||||
|
||||
#-----------
|
||||
# Paragraphs
|
||||
#-----------
|
||||
[paradef-default]
|
||||
delimiter=(?s)(?P<text>\S.*)
|
||||
posattrs=style
|
||||
style=normal
|
||||
template::[paragraph-styles]
|
||||
|
||||
[paradef-literal]
|
||||
delimiter=(?s)(?P<text>\s+.*)
|
||||
options=listelement
|
||||
posattrs=style
|
||||
style=literal
|
||||
template::[paragraph-styles]
|
||||
|
||||
[paradef-admonition]
|
||||
delimiter=(?s)^\s*(?P<style>NOTE|TIP|IMPORTANT|WARNING|CAUTION):\s+(?P<text>.+)
|
||||
template::[paragraph-styles]
|
||||
|
||||
[paragraph-styles]
|
||||
normal-style=template="paragraph"
|
||||
comment-style=template="paragraph",options=('skip',)
|
||||
verse-style=template="verseparagraph",posattrs=("style","attribution","citetitle")
|
||||
quote-style=template="quoteparagraph",posattrs=("style","attribution","citetitle")
|
||||
literal-style=template="literalparagraph",subs=("verbatim",)
|
||||
listing-style=template="listingparagraph",subs=("verbatim",)
|
||||
example-style=template="exampleparagraph"
|
||||
sidebar-style=template="sidebarparagraph"
|
||||
abstract-style=template="abstractparagraph"
|
||||
partintro-style=template="partintroparagraph"
|
||||
NOTE-style=template="admonitionparagraph",name="note",caption="{note-caption}"
|
||||
TIP-style=template="admonitionparagraph",name="tip",caption="{tip-caption}"
|
||||
IMPORTANT-style=template="admonitionparagraph",name="important",caption="{important-caption}"
|
||||
WARNING-style=template="admonitionparagraph",name="warning",caption="{warning-caption}"
|
||||
CAUTION-style=template="admonitionparagraph",name="caution",caption="{caution-caption}"
|
||||
|
||||
[literalparagraph]
|
||||
template::[literalblock]
|
||||
|
||||
[verseparagraph]
|
||||
template::[verseblock]
|
||||
|
||||
[quoteparagraph]
|
||||
template::[quoteblock]
|
||||
|
||||
[listingparagraph]
|
||||
template::[listingblock]
|
||||
|
||||
[exampleparagraph]
|
||||
template::[exampleblock]
|
||||
|
||||
[sidebarparagraph]
|
||||
template::[sidebarblock]
|
||||
|
||||
[abstractparagraph]
|
||||
template::[abstractblock]
|
||||
|
||||
[partintroparagraph]
|
||||
template::[partintroblock]
|
||||
|
||||
|
||||
[macros]
|
||||
#--------------
|
||||
# Inline macros
|
||||
#--------------
|
||||
# Backslash prefix required for escape processing.
|
||||
# (?s) re flag for line spanning.
|
||||
|
||||
# Macros using default syntax.
|
||||
(?su)(?<!\w)[\\]?(?P<name>http|https|ftp|file|irc|mailto|callto|image|link|anchor|xref|indexterm|indexterm2):(?P<target>\S*?)\[(?P<attrlist>.*?)(?<!\\)\]=
|
||||
|
||||
# These URL types don't require any special attribute list formatting.
|
||||
(?su)(?<!\S)[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
|
||||
# Allow a leading parenthesis and square bracket.
|
||||
(?su)(?<\=[([])[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])=
|
||||
# Allow <> brackets.
|
||||
(?su)[\\]?<(?P<name>http|https|ftp|file|irc):(?P<target>//[^\s<>]*[\w/])>=
|
||||
|
||||
# Email addresses don't require special attribute list formatting.
|
||||
# The before ">: and after "< character exclusions stop multiple substitution.
|
||||
(?su)(?<![">:\w._/-])[\\]?(?P<target>\w[\w._-]*@[\w._-]*\w)(?!["<\w_-])=mailto
|
||||
|
||||
# Allow footnote macros hard up against the preceding word so the footnote mark
|
||||
# can be placed against the noted text without an intervening space
|
||||
# (http://groups.google.com/group/asciidoc/browse_frm/thread/e1dcb7ee0efc17b5).
|
||||
(?su)[\\]?(?P<name>footnote|footnoteref):(?P<target>\S*?)\[(?P<attrlist>.*?)(?<!\\)\]=
|
||||
|
||||
# Anchor: [[[id]]]. Bibliographic anchor.
|
||||
(?su)[\\]?\[\[\[(?P<attrlist>[\w_:][\w_:.-]*?)\]\]\]=anchor3
|
||||
# Anchor: [[id,xreflabel]]
|
||||
(?su)[\\]?\[\[(?P<attrlist>[\w"_:].*?)\]\]=anchor2
|
||||
# Link: <<id,text>>
|
||||
(?su)[\\]?<<(?P<attrlist>[\w"_:].*?)>>=xref2
|
||||
|
||||
ifdef::asciidoc7compatible[]
|
||||
# Index term: ++primary,secondary,tertiary++
|
||||
(?su)(?<!\S)[\\]?\+\+(?P<attrlist>[^+].*?)\+\+(?!\+)=indexterm
|
||||
# Index term: +primary+
|
||||
# Follows ++...++ macro otherwise it will match them.
|
||||
(?<!\S)[\\]?\+(?P<attrlist>[^\s\+][^+].*?)\+(?!\+)=indexterm2
|
||||
endif::asciidoc7compatible[]
|
||||
|
||||
ifndef::asciidoc7compatible[]
|
||||
# Index term: (((primary,secondary,tertiary)))
|
||||
(?su)(?<!\()[\\]?\(\(\((?P<attrlist>[^(].*?)\)\)\)(?!\))=indexterm
|
||||
# Index term: ((primary))
|
||||
# Follows (((...))) macro otherwise it will match them.
|
||||
(?<!\()[\\]?\(\((?P<attrlist>[^\s\(].*?)\)\)(?!\))=indexterm2
|
||||
endif::asciidoc7compatible[]
|
||||
|
||||
# Callout
|
||||
[\\]?<(?P<index>\d+)>=callout
|
||||
|
||||
# Passthrough macros.
|
||||
(?su)[\\]?(?P<name>pass):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[]
|
||||
|
||||
# Triple-plus and double-dollar inline passthroughs.
|
||||
(?su)[\\]?\+\+\+(?P<passtext>.*?)\+\+\+=pass[]
|
||||
(?su)[\\]?\$\$(?P<passtext>.*?)\$\$=pass[specialcharacters]
|
||||
|
||||
# Inline literal.
|
||||
ifndef::no-inline-literal[]
|
||||
(?su)(?<![`\w])([\\]?`(?P<passtext>[^`\s]|[^`\s].*?\S)`)(?![`\w])=literal[specialcharacters]
|
||||
endif::no-inline-literal[]
|
||||
|
||||
# Inline comment.
|
||||
(?mu)^[\\]?//(?P<passtext>[^/].*|)$=comment[specialcharacters]
|
||||
|
||||
# Default (catchall) inline macro is not implemented so there is no ambiguity
|
||||
# with previous definition that could result in double substitution of escaped
|
||||
# references.
|
||||
#(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=
|
||||
|
||||
#-------------
|
||||
# Block macros
|
||||
#-------------
|
||||
# Macros using default syntax.
|
||||
^(?P<name>image|unfloat|toc)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
|
||||
|
||||
# Passthrough macros.
|
||||
^(?P<name>pass)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#
|
||||
|
||||
^'{3,}$=#ruler
|
||||
^<{3,}$=#pagebreak
|
||||
^//(?P<passtext>[^/].*|)$=#comment[specialcharacters]
|
||||
|
||||
# Implemented in HTML backends.
|
||||
[unfloat-blockmacro]
|
||||
[toc-blockmacro]
|
||||
|
||||
#-----------------
|
||||
# Delimited blocks
|
||||
#-----------------
|
||||
[blockdef-comment]
|
||||
delimiter=^/{4,}$
|
||||
options=skip
|
||||
posattrs=style
|
||||
|
||||
[blockdef-sidebar]
|
||||
delimiter=^\*{4,}$
|
||||
template=sidebarblock
|
||||
options=sectionbody
|
||||
posattrs=style
|
||||
# DEPRECATED: Use Openblock instead.
|
||||
abstract-style=template="abstractblock"
|
||||
|
||||
[blockdef-open]
|
||||
# A block without opening or closing tags.
|
||||
delimiter=^--$
|
||||
posattrs=style
|
||||
style=default
|
||||
default-style=template="openblock",options=("sectionbody",)
|
||||
comment-style=template="openblock",options=("skip",)
|
||||
abstract-style=template="abstractblock",options=("sectionbody",)
|
||||
partintro-style=template="partintroblock",options=("sectionbody",)
|
||||
example-style=template="exampleblock",options=("sectionbody",)
|
||||
sidebar-style=template="sidebarblock",options=("sectionbody",)
|
||||
verse-style=template="verseblock",posattrs=("style","attribution","citetitle")
|
||||
quote-style=template="quoteblock",posattrs=("style","attribution","citetitle"),options=("sectionbody",)
|
||||
literal-style=template="literalparagraph",subs=("verbatim",)
|
||||
listing-style=template="listingparagraph",subs=("verbatim",)
|
||||
NOTE-style=template="admonitionblock",name="note",caption="{note-caption}",options=("sectionbody",)
|
||||
TIP-style=template="admonitionblock",name="tip",caption="{tip-caption}",options=("sectionbody",)
|
||||
IMPORTANT-style=template="admonitionblock",name="important",caption="{important-caption}",options=("sectionbody",)
|
||||
WARNING-style=template="admonitionblock",name="warning",caption="{warning-caption}",options=("sectionbody",)
|
||||
CAUTION-style=template="admonitionblock",name="caution",caption="{caution-caption}",options=("sectionbody",)
|
||||
|
||||
[blockdef-pass]
|
||||
delimiter=^\+{4,}$
|
||||
template=passblock
|
||||
# Default subs choosen for backward compatibility.
|
||||
subs=attributes,macros
|
||||
posattrs=style
|
||||
pass-style=template="passblock",subs=()
|
||||
|
||||
[blockdef-listing]
|
||||
delimiter=^-{4,}$
|
||||
template=listingblock
|
||||
subs=verbatim
|
||||
posattrs=style
|
||||
|
||||
[blockdef-literal]
|
||||
delimiter=^\.{4,}$
|
||||
template=literalblock
|
||||
subs=verbatim
|
||||
posattrs=style
|
||||
listing-style=template="listingblock"
|
||||
# DEPRECATED: Use verse style on quote blocks instead.
|
||||
verse-style=template="verseblock",subs="normal"
|
||||
|
||||
[blockdef-quote]
|
||||
delimiter=^_{4,}$
|
||||
subs=normal
|
||||
style=quote
|
||||
posattrs=style,attribution,citetitle
|
||||
quote-style=template="quoteblock",options=("sectionbody",)
|
||||
verse-style=template="verseblock"
|
||||
|
||||
[blockdef-example]
|
||||
delimiter=^={4,}$
|
||||
template=exampleblock
|
||||
options=sectionbody
|
||||
posattrs=style
|
||||
NOTE-style=template="admonitionblock",name="note",caption="{note-caption}"
|
||||
TIP-style=template="admonitionblock",name="tip",caption="{tip-caption}"
|
||||
IMPORTANT-style=template="admonitionblock",name="important",caption="{important-caption}"
|
||||
WARNING-style=template="admonitionblock",name="warning",caption="{warning-caption}"
|
||||
CAUTION-style=template="admonitionblock",name="caution",caption="{caution-caption}"
|
||||
|
||||
# For use by custom filters.
|
||||
# DEPRECATED: No longer used, a styled listing block (blockdef-listing) is preferable.
|
||||
[blockdef-filter]
|
||||
delimiter=^~{4,}$
|
||||
template=listingblock
|
||||
subs=none
|
||||
posattrs=style
|
||||
|
||||
#-------
|
||||
# Lists
|
||||
#-------
|
||||
[listdef-bulleted]
|
||||
# - bullets.
|
||||
delimiter=^\s*- +(?P<text>.+)$
|
||||
posattrs=style
|
||||
type=bulleted
|
||||
tags=bulleted
|
||||
callout-style=tags="callout"
|
||||
bibliography-style=tags="bibliography"
|
||||
|
||||
[listdef-bulleted1]
|
||||
# * bullets.
|
||||
template::[listdef-bulleted]
|
||||
delimiter=^\s*\* +(?P<text>.+)$
|
||||
|
||||
[listdef-bulleted2]
|
||||
# ** bullets.
|
||||
template::[listdef-bulleted]
|
||||
delimiter=^\s*\*{2} +(?P<text>.+)$
|
||||
|
||||
[listdef-bulleted3]
|
||||
# *** bullets.
|
||||
template::[listdef-bulleted]
|
||||
delimiter=^\s*\*{3} +(?P<text>.+)$
|
||||
|
||||
[listdef-bulleted4]
|
||||
# **** bullets.
|
||||
template::[listdef-bulleted]
|
||||
delimiter=^\s*\*{4} +(?P<text>.+)$
|
||||
|
||||
[listdef-bulleted5]
|
||||
# ***** bullets.
|
||||
template::[listdef-bulleted]
|
||||
delimiter=^\s*\*{5} +(?P<text>.+)$
|
||||
|
||||
[listdef-arabic]
|
||||
# Arabic numbering.
|
||||
delimiter=^\s*(?P<index>\d+\.) +(?P<text>.+)$
|
||||
posattrs=style
|
||||
type=numbered
|
||||
tags=numbered
|
||||
style=arabic
|
||||
|
||||
[listdef-loweralpha]
|
||||
# Lower alpha numbering.
|
||||
template::[listdef-arabic]
|
||||
delimiter=^\s*(?P<index>[a-z]\.) +(?P<text>.+)$
|
||||
style=loweralpha
|
||||
|
||||
[listdef-upperalpha]
|
||||
# Upper alpha numbering.
|
||||
template::[listdef-arabic]
|
||||
delimiter=^\s*(?P<index>[A-Z]\.) +(?P<text>.+)$
|
||||
style=upperalpha
|
||||
|
||||
[listdef-lowerroman]
|
||||
# Lower roman numbering.
|
||||
template::[listdef-arabic]
|
||||
delimiter=^\s*(?P<index>[ivx]+\)) +(?P<text>.+)$
|
||||
style=lowerroman
|
||||
|
||||
[listdef-upperroman]
|
||||
# Upper roman numbering.
|
||||
template::[listdef-arabic]
|
||||
delimiter=^\s*(?P<index>[IVX]+\)) +(?P<text>.+)$
|
||||
style=upperroman
|
||||
|
||||
[listdef-numbered1]
|
||||
# . numbering.
|
||||
template::[listdef-arabic]
|
||||
delimiter=^\s*\. +(?P<text>.+)$
|
||||
|
||||
[listdef-numbered2]
|
||||
# .. numbering.
|
||||
template::[listdef-loweralpha]
|
||||
delimiter=^\s*\.{2} +(?P<text>.+)$
|
||||
|
||||
[listdef-numbered3]
|
||||
# ... numbering.
|
||||
template::[listdef-lowerroman]
|
||||
delimiter=^\s*\.{3} +(?P<text>.+)$
|
||||
|
||||
[listdef-numbered4]
|
||||
# .... numbering.
|
||||
template::[listdef-upperalpha]
|
||||
delimiter=^\s*\.{4} +(?P<text>.+)$
|
||||
|
||||
[listdef-numbered5]
|
||||
# ..... numbering.
|
||||
template::[listdef-upperroman]
|
||||
delimiter=^\s*\.{5} +(?P<text>.+)$
|
||||
|
||||
[listdef-labeled]
|
||||
# label:: item.
|
||||
delimiter=^\s*(?P<label>.*[^:])::(\s+(?P<text>.+))?$
|
||||
posattrs=style
|
||||
type=labeled
|
||||
tags=labeled
|
||||
vertical-style=tags="labeled"
|
||||
horizontal-style=tags="horizontal"
|
||||
glossary-style=tags="glossary"
|
||||
qanda-style=tags="qanda"
|
||||
|
||||
[listdef-labeled2]
|
||||
# label;; item.
|
||||
template::[listdef-labeled]
|
||||
delimiter=^\s*(?P<label>.*[^;]);;(\s+(?P<text>.+))?$
|
||||
|
||||
[listdef-labeled3]
|
||||
# label::: item.
|
||||
template::[listdef-labeled]
|
||||
delimiter=^\s*(?P<label>.*[^:]):{3}(\s+(?P<text>.+))?$
|
||||
|
||||
[listdef-labeled4]
|
||||
# label:::: item.
|
||||
template::[listdef-labeled]
|
||||
delimiter=^\s*(?P<label>.*[^:]):{4}(\s+(?P<text>.+))?$
|
||||
|
||||
[listdef-callout]
|
||||
posattrs=style
|
||||
delimiter=^<?(?P<index>\d*>) +(?P<text>.+)$
|
||||
type=callout
|
||||
tags=callout
|
||||
style=arabic
|
||||
|
||||
# DEPRECATED: Old list syntax.
|
||||
[listdef-qanda]
|
||||
posattrs=style
|
||||
delimiter=^\s*(?P<label>.*\S)\?\?$
|
||||
type=labeled
|
||||
tags=qanda
|
||||
|
||||
# DEPRECATED: Old list syntax.
|
||||
[listdef-bibliography]
|
||||
posattrs=style
|
||||
delimiter=^\+ +(?P<text>.+)$
|
||||
type=bulleted
|
||||
tags=bibliography
|
||||
|
||||
# DEPRECATED: Old list syntax.
|
||||
[listdef-glossary]
|
||||
delimiter=^(?P<label>.*\S):-$
|
||||
posattrs=style
|
||||
type=labeled
|
||||
tags=glossary
|
||||
|
||||
#-------
|
||||
# Tables
|
||||
#-------
|
||||
[tabledef-default]
|
||||
delimiter=^\|={3,}$
|
||||
posattrs=style
|
||||
template=table
|
||||
default-style=tags="default"
|
||||
verse-style=tags="verse"
|
||||
literal-style=tags="literal",subs=("specialcharacters",)
|
||||
emphasis-style=tags="emphasis"
|
||||
strong-style=tags="strong"
|
||||
monospaced-style=tags="monospaced"
|
||||
header-style=tags="header"
|
||||
asciidoc-style=tags="asciidoc",subs=(),filter='"{python}" "{asciidoc-file}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"}{icons? -a icons -a "iconsdir={iconsdir}"}{imagesdir? -a "imagesdir={imagesdir}"}{data-uri? -a data-uri} -a "indir={indir}"{trace? -a "trace={trace}"}{blockname? -a "blockname={blockname}"} -s -'
|
||||
|
||||
[tabledef-nested]
|
||||
# Same as [tabledef-default] but with different delimiter and separator.
|
||||
delimiter=^!={3,}$
|
||||
separator=((?<!\S)((?P<span>[\d.]+)(?P<op>[*+]))?(?P<align>[<\^>.]{,3})?(?P<style>[a-z])?)?!
|
||||
posattrs=style
|
||||
template=table
|
||||
verse-style=tags="verse"
|
||||
literal-style=tags="literal",subs=("specialcharacters",)
|
||||
emphasis-style=tags="emphasis"
|
||||
strong-style=tags="strong"
|
||||
monospaced-style=tags="monospaced"
|
||||
header-style=tags="header"
|
||||
asciidoc-style=tags="asciidoc",subs=(),filter='"{python}" "{asciidoc-file}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"}{icons? -a icons -a "iconsdir={iconsdir}"}{imagesdir? -a "imagesdir={imagesdir}"}{data-uri? -a data-uri} -a "indir={indir}"{trace? -a "trace={trace}"}{blockname? -a "blockname={blockname}"} -s -'
|
||||
|
||||
#----------------------------------------
|
||||
# Common block and macro markup templates
|
||||
#----------------------------------------
|
||||
[comment-inlinemacro]
|
||||
# Outputs nothing.
|
||||
|
||||
[comment-blockmacro]
|
||||
# Outputs nothing.
|
||||
|
||||
[pass-blockmacro]
|
||||
{passtext}
|
||||
|
||||
[pass-inlinemacro]
|
||||
template::[pass-blockmacro]
|
||||
|
||||
[passblock]
|
||||
|
|
||||
|
||||
[filter-image-blockmacro]
|
||||
# Synthesize missing target attribute for filter generated file names.
|
||||
# The tag split | ensures missing target file names are auto-generated
|
||||
# before the filter is executed, the remainder (the [image-blockmacro])
|
||||
# is excuted after the filter to ensure data URI encoding comes after
|
||||
# the image is created.
|
||||
{target%}{counter2:target-number}
|
||||
{target%}{set2:target:{docname}__{target-number}.png}
|
||||
|
|
||||
template::[image-blockmacro]
|
||||
|
||||
[+docinfo]
|
||||
# Blank section to suppress missing template warning.
|
||||
|
||||
#----------------------------------
|
||||
# Default special section templates
|
||||
#----------------------------------
|
||||
[abstract]
|
||||
template::[sect1]
|
||||
|
||||
[colophon]
|
||||
template::[sect1]
|
||||
|
||||
[dedication]
|
||||
template::[sect1]
|
||||
|
||||
[preface]
|
||||
template::[sect1]
|
||||
|
||||
[appendix]
|
||||
template::[sect1]
|
||||
|
||||
[glossary]
|
||||
template::[sect1]
|
||||
|
||||
[bibliography]
|
||||
template::[sect1]
|
||||
|
||||
[index]
|
||||
template::[sect1]
|
||||
|
||||
[synopsis]
|
||||
template::[sect1]
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Deprecated old table definitions.
|
||||
#
|
||||
|
||||
[old_tabledef-default]
|
||||
fillchar=-
|
||||
format=fixed
|
||||
|
||||
[old_tabledef-csv]
|
||||
fillchar=~
|
||||
format=csv
|
||||
|
||||
[old_tabledef-dsv]
|
||||
fillchar=_
|
||||
format=dsv
|
||||
|
||||
# End of deprecated old table definitions.
|
||||
#--------------------------------------------------------------------
|
||||
1
asciidoc/dblatex
Symbolic link
1
asciidoc/dblatex
Symbolic link
@@ -0,0 +1 @@
|
||||
../../usr/share/asciidoc/dblatex
|
||||
1
asciidoc/docbook-xsl
Symbolic link
1
asciidoc/docbook-xsl
Symbolic link
@@ -0,0 +1 @@
|
||||
../../usr/share/asciidoc/docbook-xsl
|
||||
802
asciidoc/docbook45.conf
Normal file
802
asciidoc/docbook45.conf
Normal file
@@ -0,0 +1,802 @@
|
||||
#
|
||||
# docbook45.conf
|
||||
#
|
||||
# Asciidoc DocBook 4.5 configuration file.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
outfilesuffix=.xml
|
||||
# Printable page width and units.
|
||||
# Used to calculate DocBook CALS tables absolute column and table widths.
|
||||
pagewidth=425
|
||||
pageunits=*
|
||||
|
||||
[attributes]
|
||||
basebackend=docbook
|
||||
basebackend-docbook=
|
||||
basebackend-docbook45=
|
||||
# For backward compatibility (docbook backend was renamed to docbook45 at 8.6.2)
|
||||
backend-docbook=
|
||||
# toc and numbered are set to maintain original default behavior.
|
||||
toc=
|
||||
numbered=
|
||||
|
||||
[replacements2]
|
||||
# Line break markup. Custom processing instruction in fo.xsl.
|
||||
(?m)^(.*)\s\+$=\1<?asciidoc-br?>
|
||||
|
||||
[replacements]
|
||||
ifdef::asciidoc7compatible[]
|
||||
# Superscripts.
|
||||
\^(.+?)\^=<superscript>\1</superscript>
|
||||
# Subscripts.
|
||||
~(.+?)~=<subscript>\1</subscript>
|
||||
endif::asciidoc7compatible[]
|
||||
|
||||
[ruler-blockmacro]
|
||||
# Uses custom processing instructions in fo.xsl and asciidoc-dblatex.xsl.
|
||||
<simpara><?asciidoc-hr?></simpara>
|
||||
|
||||
[pagebreak-blockmacro]
|
||||
# Uses custom processing instructions in fo.xsl and asciidoc-dblatex.xsl.
|
||||
<simpara><?asciidoc-pagebreak?></simpara>
|
||||
|
||||
[blockdef-pass]
|
||||
latexmath-style=template="latexmathblock",subs=(),posattrs=(),filter="unwraplatex.py"
|
||||
|
||||
[macros]
|
||||
# math macros.
|
||||
(?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?:\$\s*)?(?P<passtext>.*?)(?:\s*\$)?(?<!\\)\]=[]
|
||||
^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?:\\\[\s*)?(?P<passtext>.*?)(?:\s*\\\])?\])$=#[]
|
||||
|
||||
[latexmath-inlinemacro]
|
||||
<inlineequation>
|
||||
<alt><![CDATA[${passtext}$]]></alt>
|
||||
<inlinemediaobject><textobject><phrase></phrase></textobject></inlinemediaobject>
|
||||
</inlineequation>
|
||||
|
||||
[latexmath-blockmacro]
|
||||
<informalequation>
|
||||
<alt><![CDATA[{backslash}[{passtext}{backslash}]]]></alt>
|
||||
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
|
||||
</informalequation>
|
||||
|
||||
[latexmathblock]
|
||||
<equation{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title>
|
||||
{title%}<informalequation{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<alt><![CDATA[\[|\]]]></alt>
|
||||
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
|
||||
{title#}</equation>
|
||||
{title%}</informalequation>
|
||||
|
||||
[image-inlinemacro]
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scale? scale="{scale}"}/>
|
||||
</imageobject>
|
||||
<textobject><phrase>{alt={target}}</phrase></textobject>
|
||||
</inlinemediaobject>
|
||||
|
||||
[image-blockmacro]
|
||||
<figure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}><title>{title}</title>
|
||||
{title%}<informalfigure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{pgwide-option?<?dbfo pgwide="1"?>}
|
||||
# DocBook XSL Stylesheets custom processing instructions.
|
||||
<?dbfo keep-together="{breakable-option#auto}"?>
|
||||
<?dbfo keep-together="{unbreakable-option#always}"?>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scale? scale="{scale}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
|
||||
</imageobject>
|
||||
<textobject><phrase>{alt={target}}</phrase></textobject>
|
||||
</mediaobject>
|
||||
{title#}</figure>
|
||||
{title%}</informalfigure>
|
||||
|
||||
[indexterm-inlinemacro]
|
||||
# Index term.
|
||||
# Generate separate index entries for primary, secondary and tertiary
|
||||
# descriptions.
|
||||
# Primary only.
|
||||
{2%}<indexterm>
|
||||
{2%} <primary>{1}</primary>
|
||||
{2%}</indexterm>
|
||||
# Primary and secondary.
|
||||
{2#}{3%}<indexterm>
|
||||
{2#}{3%} <primary>{1}</primary><secondary>{2}</secondary>
|
||||
{2#}{3%}</indexterm>
|
||||
{2#}{3%}<indexterm>
|
||||
{2#}{3%} <primary>{2}</primary>
|
||||
{2#}{3%}</indexterm>
|
||||
# Primary, secondary and tertiary.
|
||||
{3#}<indexterm>
|
||||
<primary>{1}</primary><secondary>{2}</secondary><tertiary>{3}</tertiary>
|
||||
{3#}</indexterm>
|
||||
{3#}<indexterm>
|
||||
<primary>{2}</primary><secondary>{3}</secondary>
|
||||
{3#}</indexterm>
|
||||
{3#}<indexterm>
|
||||
<primary>{3}</primary>
|
||||
{3#}</indexterm>
|
||||
|
||||
[indexterm2-inlinemacro]
|
||||
# Index term.
|
||||
# Single entry index term that is visible in the primary text flow.
|
||||
<indexterm><primary>{1}</primary></indexterm>{1}
|
||||
|
||||
[footnote-inlinemacro]
|
||||
# Footnote.
|
||||
<footnote><simpara>{0}</simpara></footnote>
|
||||
|
||||
[footnoteref-inlinemacro]
|
||||
# Footnote reference.
|
||||
{2#}<footnote id="{1}"><simpara>{2}</simpara></footnote>
|
||||
{2%}<footnoteref linkend="{1}" />
|
||||
|
||||
[callout-inlinemacro]
|
||||
# Callout.
|
||||
<co id="{coid}"/>
|
||||
|
||||
# List tags.
|
||||
[listtags-bulleted]
|
||||
list=<itemizedlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{compact-option? spacing="compact"}>{unbreakable-option? <?dbfo keep-together="always"?>}{title?<title>{title}</title>}|</itemizedlist>
|
||||
item=<listitem>|</listitem>
|
||||
text=<simpara>|</simpara>
|
||||
|
||||
[listtags-numbered]
|
||||
list=<orderedlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} numeration="{style}"{compact-option? spacing="compact"}>{unbreakable-option? <?dbfo keep-together="always"?>}{title?<title>{title}</title>}{start?<?dbfo start="{start}"?><?dbhtml start="{start}"?>}|</orderedlist>
|
||||
item=<listitem>|</listitem>
|
||||
text=<simpara>|</simpara>
|
||||
|
||||
[listtags-labeled]
|
||||
list=<variablelist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</variablelist>
|
||||
entry=<varlistentry>|</varlistentry>
|
||||
label=
|
||||
term=<term>|</term>
|
||||
item=<listitem>|</listitem>
|
||||
text=<simpara>|</simpara>
|
||||
|
||||
[listtags-horizontal]
|
||||
# Horizontal labeled list (implemented with two column table).
|
||||
# Hardwired column widths to 30%,70% because the current crop of PDF
|
||||
# generators do not auto calculate column widths.
|
||||
list=<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{style? tabstyle="{style}"}{pgwide-option? pgwide="1"} frame="none" colsep="0" rowsep="0">{title?<title>{title}</title>}<tgroup cols="2"><colspec colwidth="{labelwidth=15}*"/><colspec colwidth="{itemwidth=85}*"/><tbody valign="top">|</tbody></tgroup><{title?/table}{title!/informaltable}>
|
||||
entry=<row>|</row>
|
||||
label=<entry>|</entry>
|
||||
term=<simpara>|</simpara>
|
||||
item=<entry>|</entry>
|
||||
text=<simpara>|</simpara>
|
||||
|
||||
[listtags-callout]
|
||||
list=<calloutlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</calloutlist>
|
||||
item=<callout arearefs="{coids}">|</callout>
|
||||
text=<para>|</para>
|
||||
|
||||
[listtags-qanda]
|
||||
list=<qandaset{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</qandaset>
|
||||
entry=<qandaentry>|</qandaentry>
|
||||
label=<question>|</question>
|
||||
term=<simpara>|</simpara>
|
||||
item=<answer>|</answer>
|
||||
text=<simpara>|</simpara>
|
||||
|
||||
[listtags-bibliography]
|
||||
list=<bibliodiv{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</bibliodiv>
|
||||
item=<bibliomixed>|</bibliomixed>
|
||||
text=<bibliomisc>|</bibliomisc>
|
||||
|
||||
[listtags-glossary]
|
||||
list=
|
||||
entry=<glossentry>|</glossentry>
|
||||
label=
|
||||
term=<glossterm>|</glossterm>
|
||||
item=<glossdef>|</glossdef>
|
||||
text=<simpara>|</simpara>
|
||||
|
||||
[tags]
|
||||
# Quoted text
|
||||
emphasis=<emphasis>{1?<phrase role="{1}">}|{1?</phrase>}</emphasis>
|
||||
strong=<emphasis role="strong">{1?<phrase role="{1}">}|{1?</phrase>}</emphasis>
|
||||
monospaced=<literal>{1?<phrase role="{1}">}|{1?</phrase>}</literal>
|
||||
singlequoted={lsquo}{1?<phrase role="{1}">}|{1?</phrase>}{rsquo}
|
||||
doublequoted={ldquo}{1?<phrase role="{1}">}|{1?</phrase>}{rdquo}
|
||||
unquoted={1?<phrase role="{1}">}|{1?</phrase>}
|
||||
subscript=<subscript>{1?<phrase role="{1}">}|{1?</phrase>}</subscript>
|
||||
superscript=<superscript>{1?<phrase role="{1}">}|{1?</phrase>}</superscript>
|
||||
|
||||
ifdef::deprecated-quotes[]
|
||||
# Override with deprecated quote attributes.
|
||||
emphasis={role?<phrase role="{role}">}<emphasis>|</emphasis>{role?</phrase>}
|
||||
strong={role?<phrase role="{role}">}<emphasis role="strong">|</emphasis>{role?</phrase>}
|
||||
monospaced={role?<phrase role="{role}">}<literal>|</literal>{role?</phrase>}
|
||||
singlequoted={role?<phrase role="{role}">}{amp}#8216;|{amp}#8217;{role?</phrase>}
|
||||
doublequoted={role?<phrase role="{role}">}{amp}#8220;|{amp}#8221;{role?</phrase>}
|
||||
unquoted={role?<phrase role="{role}">}|{role?</phrase>}
|
||||
subscript={role?<phrase role="{role}">}<subscript>|</subscript>{role?</phrase>}
|
||||
superscript={role?<phrase role="{role}">}<superscript>|</superscript>{role?</phrase>}
|
||||
endif::deprecated-quotes[]
|
||||
|
||||
# Inline macros
|
||||
[http-inlinemacro]
|
||||
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
||||
[https-inlinemacro]
|
||||
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
||||
[ftp-inlinemacro]
|
||||
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
||||
[file-inlinemacro]
|
||||
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
||||
[irc-inlinemacro]
|
||||
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
||||
[mailto-inlinemacro]
|
||||
<ulink url="mailto:{target}">{0={target}}</ulink>
|
||||
[callto-inlinemacro]
|
||||
<ulink url="{name}:{target}">{0={target}}</ulink>
|
||||
[link-inlinemacro]
|
||||
<ulink url="{target}">{0={target}}</ulink>
|
||||
# anchor:id[text]
|
||||
[anchor-inlinemacro]
|
||||
<anchor id="{target}" xreflabel="{0=[{target}]}"/>
|
||||
# [[id,text]]
|
||||
[anchor2-inlinemacro]
|
||||
<anchor id="{1}" xreflabel="{2=[{1}]}"/>
|
||||
# [[[id]]]
|
||||
[anchor3-inlinemacro]
|
||||
<anchor id="{1}" xreflabel="[{1}]"/>[{1}]
|
||||
# xref:id[text]
|
||||
[xref-inlinemacro]
|
||||
<link linkend="{target}">{0}</link>
|
||||
{0%}<xref linkend="{target}"/>
|
||||
# <<id,text>>
|
||||
[xref2-inlinemacro]
|
||||
<link linkend="{1}">{2}</link>
|
||||
{2%}<xref linkend="{1}"/>
|
||||
# // comment line
|
||||
[comment-inlinemacro]
|
||||
{showcomments#}<remark>{passtext}</remark>
|
||||
|
||||
[comment-blockmacro]
|
||||
{showcomments#}<remark>{passtext}</remark>
|
||||
|
||||
[literal-inlinemacro]
|
||||
# Inline literal.
|
||||
<literal>{passtext}</literal>
|
||||
|
||||
# Special word macros
|
||||
[emphasizedwords]
|
||||
<emphasis>{words}</emphasis>
|
||||
[monospacedwords]
|
||||
<literal>{words}</literal>
|
||||
[strongwords]
|
||||
<emphasis role="strong">{words}</emphasis>
|
||||
|
||||
# Paragraph substitution.
|
||||
[paragraph]
|
||||
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
|
||||
{title%}<simpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
|
|
||||
{title%}</simpara>
|
||||
{title#}</para></formalpara>
|
||||
{empty}
|
||||
|
||||
[admonitionparagraph]
|
||||
<{name}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><simpara>|</simpara></{name}>
|
||||
|
||||
# Delimited blocks.
|
||||
[literalblock]
|
||||
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
|
||||
{title#}<literallayout class="monospaced">
|
||||
{title%}<literallayout{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} class="monospaced">
|
||||
|
|
||||
</literallayout>
|
||||
{title#}</para></formalpara>
|
||||
|
||||
[listingblock]
|
||||
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
|
||||
{title#}<screen>
|
||||
{title%}<screen{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
|
|
||||
</screen>
|
||||
{title#}</para></formalpara>
|
||||
|
||||
[sidebarblock-open]
|
||||
<sidebar{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
||||
[sidebarblock-close]
|
||||
</sidebar>
|
||||
|
||||
[sidebarblock]
|
||||
template::[sidebarblock-open]
|
||||
|
|
||||
template::[sidebarblock-close]
|
||||
|
||||
[sidebarparagraph]
|
||||
template::[sidebarblock-open]
|
||||
<simpara>|</simpara>
|
||||
template::[sidebarblock-close]
|
||||
|
||||
[abstractblock-open]
|
||||
<abstract{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
||||
[abstractblock-close]
|
||||
</abstract>
|
||||
|
||||
[abstractblock]
|
||||
template::[abstractblock-open]
|
||||
|
|
||||
template::[abstractblock-close]
|
||||
|
||||
[abstractparagraph]
|
||||
template::[abstractblock-open]
|
||||
<simpara>|</simpara>
|
||||
template::[abstractblock-close]
|
||||
|
||||
[openblock]
|
||||
|
|
||||
|
||||
[partintroblock-open]
|
||||
<partintro{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
||||
[partintroblock-close]
|
||||
</partintro>
|
||||
|
||||
[partintroblock]
|
||||
template::[partintroblock-open]
|
||||
|
|
||||
template::[partintroblock-close]
|
||||
|
||||
[partintroparagraph]
|
||||
template::[partintroblock-open]
|
||||
<simpara>|</simpara>
|
||||
template::[partintroblock-close]
|
||||
|
||||
[quote-open]
|
||||
# Common quote and verse element template.
|
||||
<blockquote{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
# Include attribution only if either {attribution} or {citetitle} is defined.
|
||||
{attribution#}<attribution>
|
||||
{attribution%}{citetitle#}<attribution>
|
||||
{attribution}
|
||||
<citetitle>{citetitle}</citetitle>
|
||||
{attribution#}</attribution>
|
||||
{attribution%}{citetitle#}</attribution>
|
||||
|
||||
[quote-close]
|
||||
</blockquote>
|
||||
|
||||
[quoteblock]
|
||||
template::[quote-open]
|
||||
|
|
||||
template::[quote-close]
|
||||
|
||||
[verseblock]
|
||||
template::[quote-open]
|
||||
<literallayout>|</literallayout>
|
||||
template::[quote-close]
|
||||
|
||||
[quoteparagraph]
|
||||
template::[quote-open]
|
||||
<simpara>|</simpara>
|
||||
template::[quote-close]
|
||||
|
||||
[exampleblock-open]
|
||||
<{title?example}{title!informalexample}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
# DocBook XSL Stylesheets custom processing instructions.
|
||||
<?dbfo keep-together="{breakable-option#auto}"?>
|
||||
<?dbfo keep-together="{unbreakable-option#always}"?>
|
||||
<title>{title}</title>
|
||||
|
||||
[exampleblock-close]
|
||||
</{title?example}{title!informalexample}>
|
||||
|
||||
[exampleblock]
|
||||
template::[exampleblock-open]
|
||||
|
|
||||
template::[exampleblock-close]
|
||||
|
||||
[exampleparagraph]
|
||||
template::[exampleblock-open]
|
||||
<simpara>|</simpara>
|
||||
template::[exampleblock-close]
|
||||
|
||||
[admonitionblock]
|
||||
<{name}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</{name}>
|
||||
|
||||
# Tables.
|
||||
[tabletags-default]
|
||||
colspec=<colspec colname="col_{colnumber}" colwidth="{width!{colpcwidth}*}{width?{colabswidth}{pageunits}}"/>
|
||||
bodyrow=<row>|</row>
|
||||
headdata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}>|</entry>
|
||||
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}>|</entry>
|
||||
paragraph=<simpara>|</simpara>
|
||||
|
||||
[tabletags-emphasis]
|
||||
paragraph=<simpara><emphasis>|</emphasis></simpara>
|
||||
|
||||
[tabletags-header]
|
||||
paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
|
||||
|
||||
[tabletags-strong]
|
||||
paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
|
||||
|
||||
[tabletags-monospaced]
|
||||
paragraph=<simpara><literal>|</literal></simpara>
|
||||
|
||||
[tabletags-verse]
|
||||
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}><literallayout>|</literallayout></entry>
|
||||
paragraph=
|
||||
|
||||
[tabletags-literal]
|
||||
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}><literallayout class="monospaced">|</literallayout></entry>
|
||||
paragraph=
|
||||
|
||||
[tabletags-asciidoc]
|
||||
paragraph=
|
||||
|
||||
[table]
|
||||
<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}
|
||||
frame="{frame=all}"
|
||||
{grid%rowsep="1" colsep="1"}
|
||||
rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
|
||||
>
|
||||
<title>{title}</title>
|
||||
# DocBook XSL Stylesheets custom processing instructions.
|
||||
<?dbhtml table-width="{width}"?>
|
||||
<?dbfo table-width="{width}"?>
|
||||
<?dblatex table-width="{width}"?>
|
||||
<?dbfo keep-together="{breakable-option#auto}"?>
|
||||
<?dbfo keep-together="{unbreakable-option#always}"?>
|
||||
<tgroup cols="{colcount}">
|
||||
{colspecs}
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody>
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</{title?table}{title!informaltable}>
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Deprecated old table definitions.
|
||||
#
|
||||
|
||||
[old_tabledef-default]
|
||||
template=old_table
|
||||
colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
|
||||
bodyrow=<row>|</row>
|
||||
bodydata=<entry>|</entry>
|
||||
|
||||
[old_table]
|
||||
<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} pgwide="0"
|
||||
frame="{frame=topbot}"
|
||||
{grid%rowsep="0" colsep="0"}
|
||||
rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
|
||||
>
|
||||
<title>{title}</title>
|
||||
<tgroup cols="{cols}">
|
||||
{colspecs}
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody>
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</{title?table}{title!informaltable}>
|
||||
|
||||
# End of deprecated old table definitions.
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
# Special sections.
|
||||
[preface]
|
||||
<preface{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title=}</title>
|
||||
|
|
||||
</preface>
|
||||
|
||||
[index]
|
||||
<index{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</index>
|
||||
|
||||
[bibliography]
|
||||
<bibliography{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</bibliography>
|
||||
|
||||
[glossary]
|
||||
<glossary{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</glossary>
|
||||
|
||||
[appendix]
|
||||
<appendix{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</appendix>
|
||||
|
||||
[floatingtitle]
|
||||
<bridgehead{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} renderas="sect{level}">{title}</bridgehead>
|
||||
|
||||
|
||||
[header-declarations]
|
||||
<?xml version="1.0" encoding="{encoding}"?>
|
||||
<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
{toc#}<?asciidoc-toc?>
|
||||
{numbered#}<?asciidoc-numbered?>
|
||||
|
||||
[+docinfo]
|
||||
{notitle%} <title>{doctitle}</title>
|
||||
<date>{revdate}</date>
|
||||
# To ensure valid articleinfo/bookinfo when there is no AsciiDoc header.
|
||||
{doctitle%}{revdate%}<date>{docdate}</date>
|
||||
{authored#}<author>
|
||||
<firstname>{firstname}</firstname>
|
||||
<othername>{middlename}</othername>
|
||||
<surname>{lastname}</surname>
|
||||
<email>{email}</email>
|
||||
{authored#}</author>
|
||||
<authorinitials>{authorinitials}</authorinitials>
|
||||
<revhistory><revision>{revnumber?<revnumber>{revnumber}</revnumber>}<date>{revdate}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
|
||||
{docinfo1,docinfo2#}{include:{docdir}/docinfo.xml}
|
||||
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.xml}
|
||||
# DEPRECATED: Use docinfo.
|
||||
{revisionhistory#}{include:{docdir}/{docname}-revhistory.xml}
|
||||
# DEPRECATED: Use orgname in preference to companyname.
|
||||
<orgname>{companyname}</orgname>
|
||||
# DEPRECATED: Use orgname in preference to corpname.
|
||||
<orgname>{corpname}</orgname>
|
||||
<orgname>{orgname}</orgname>
|
||||
|
||||
#-------------------------
|
||||
# article document type
|
||||
#-------------------------
|
||||
ifdef::doctype-article[]
|
||||
|
||||
[header]
|
||||
template::[header-declarations]
|
||||
|
||||
<article lang="{lang=en}">
|
||||
<articleinfo>
|
||||
template::[docinfo]
|
||||
</articleinfo>
|
||||
|
||||
[footer]
|
||||
</article>
|
||||
|
||||
[preamble]
|
||||
# Untitled elements between header and first section title.
|
||||
|
|
||||
|
||||
[abstract]
|
||||
<abstract{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
|
|
||||
</abstract>
|
||||
|
||||
[sect1]
|
||||
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</section>
|
||||
|
||||
[sect2]
|
||||
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</section>
|
||||
|
||||
[sect3]
|
||||
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</section>
|
||||
|
||||
[sect4]
|
||||
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</section>
|
||||
|
||||
endif::doctype-article[]
|
||||
|
||||
#-------------------------
|
||||
# manpage document type
|
||||
#-------------------------
|
||||
ifdef::doctype-manpage[]
|
||||
|
||||
[replacements]
|
||||
# The roff format does not substitute special characters so just print them as
|
||||
# text.
|
||||
\(C\)=(C)
|
||||
\(TM\)=(TM)
|
||||
|
||||
[header]
|
||||
template::[header-declarations]
|
||||
<refentry lang="{lang=en}">
|
||||
<refentryinfo>
|
||||
template::[docinfo]
|
||||
</refentryinfo>
|
||||
<refmeta>
|
||||
<refentrytitle>{mantitle}</refentrytitle>
|
||||
<manvolnum>{manvolnum}</manvolnum>
|
||||
# Default source and manual to suppress DocBook XSL warnings.
|
||||
<refmiscinfo class="source">{mansource= }</refmiscinfo>
|
||||
<refmiscinfo class="manual">{manmanual= }</refmiscinfo>
|
||||
<refmiscinfo class="version">{manversion={revnumber}}</refmiscinfo>
|
||||
</refmeta>
|
||||
<refnamediv>
|
||||
<refname>{manname1}</refname>
|
||||
<refname>{manname2}</refname>
|
||||
<refname>{manname3}</refname>
|
||||
<refname>{manname4}</refname>
|
||||
<refname>{manname5}</refname>
|
||||
<refname>{manname6}</refname>
|
||||
<refname>{manname7}</refname>
|
||||
<refname>{manname8}</refname>
|
||||
<refname>{manname9}</refname>
|
||||
<refpurpose>{manpurpose}</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
[footer]
|
||||
</refentry>
|
||||
|
||||
# Section macros
|
||||
[synopsis]
|
||||
<refsynopsisdiv{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
|
|
||||
</refsynopsisdiv>
|
||||
|
||||
[sect1]
|
||||
<refsect1{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</refsect1>
|
||||
|
||||
[sect2]
|
||||
<refsect2{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</refsect2>
|
||||
|
||||
[sect3]
|
||||
<refsect3{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</refsect3>
|
||||
|
||||
endif::doctype-manpage[]
|
||||
|
||||
#-------------------------
|
||||
# book document type
|
||||
#-------------------------
|
||||
ifdef::doctype-book[]
|
||||
|
||||
[header]
|
||||
template::[header-declarations]
|
||||
|
||||
<book lang="{lang=en}">
|
||||
<bookinfo>
|
||||
template::[docinfo]
|
||||
</bookinfo>
|
||||
|
||||
[footer]
|
||||
</book>
|
||||
|
||||
[preamble]
|
||||
# Preamble is not allowed in DocBook book so wrap it in a preface.
|
||||
<preface{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title=}</title>
|
||||
|
|
||||
</preface>
|
||||
|
||||
[dedication]
|
||||
<dedication{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</dedication>
|
||||
|
||||
[colophon]
|
||||
<colophon{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</colophon>
|
||||
|
||||
[sect0]
|
||||
<part{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</part>
|
||||
|
||||
[sect1]
|
||||
<chapter{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</chapter>
|
||||
|
||||
[sect2]
|
||||
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</section>
|
||||
|
||||
[sect3]
|
||||
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</section>
|
||||
|
||||
[sect4]
|
||||
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
||||
<title>{title}</title>
|
||||
|
|
||||
</section>
|
||||
|
||||
endif::doctype-book[]
|
||||
|
||||
ifdef::sgml[]
|
||||
#
|
||||
# Optional DocBook SGML.
|
||||
#
|
||||
# Most of the differences between DocBook XML and DocBook SGML boils
|
||||
# down to the empty element syntax: SGML does not like the XML empty
|
||||
# element <.../> syntax, use <...> instead.
|
||||
#
|
||||
[miscellaneous]
|
||||
outfilesuffix=.sgml
|
||||
|
||||
[header-declarations]
|
||||
<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
|
||||
|
||||
[tabledef-default]
|
||||
colspec=<colspec colwidth="{colabswidth}{pageunits}" align="{colalign}">
|
||||
|
||||
[image-inlinemacro]
|
||||
<inlinemediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? depth="{height}"}>
|
||||
</imageobject>
|
||||
<textobject><phrase>{alt={target}}</phrase></textobject>
|
||||
</inlinemediaobject>
|
||||
|
||||
[image-blockmacro]
|
||||
<figure><title>{title}</title>
|
||||
{title%}<informalfigure>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? depth="{height}"}>
|
||||
</imageobject>
|
||||
<textobject><phrase>{alt={target}}</phrase></textobject>
|
||||
</mediaobject>
|
||||
{title#}</figure>
|
||||
{title%}</informalfigure>
|
||||
|
||||
# Inline macros
|
||||
[xref-inlinemacro]
|
||||
<link linkend="{target}">{0}</link>
|
||||
{2%}<xref linkend="{target}">
|
||||
[xref2-inlinemacro]
|
||||
# <<id,text>>
|
||||
<link linkend="{1}">{2}</link>
|
||||
{2%}<xref linkend="{1}">
|
||||
[anchor-inlinemacro]
|
||||
<anchor id="{target}" xreflabel="{0=[{target}]}">
|
||||
[anchor2-inlinemacro]
|
||||
# [[id,text]]
|
||||
<anchor id="{1}" xreflabel="{2=[{1}]}">
|
||||
|
||||
endif::sgml[]
|
||||
8
asciidoc/filters/code/code-filter.conf
Normal file
8
asciidoc/filters/code/code-filter.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# AsciiDoc code filter configuration file.
|
||||
#
|
||||
# Documented in code-filter-readme.txt
|
||||
#
|
||||
|
||||
[blockdef-listing]
|
||||
code-style=template="listingblock",presubs=(),postsubs=("callouts",),posattrs=("style","language"),filter="code-filter.py -b {basebackend} -l {language}"
|
||||
239
asciidoc/filters/code/code-filter.py
Executable file
239
asciidoc/filters/code/code-filter.py
Executable file
@@ -0,0 +1,239 @@
|
||||
#!/usr/libexec/platform-python
|
||||
'''
|
||||
NAME
|
||||
code-filter - AsciiDoc filter to highlight language keywords
|
||||
|
||||
SYNOPSIS
|
||||
code-filter -b backend -l language [ -t tabsize ]
|
||||
[ --help | -h ] [ --version | -v ]
|
||||
|
||||
DESCRIPTION
|
||||
This filter reads source code from the standard input, highlights language
|
||||
keywords and comments and writes to the standard output.
|
||||
|
||||
The purpose of this program is to demonstrate how to write an AsciiDoc
|
||||
filter -- it's much to simplistic to be passed off as a code syntax
|
||||
highlighter. Use the 'source-highlight-filter' instead.
|
||||
|
||||
|
||||
OPTIONS
|
||||
--help, -h
|
||||
Print this documentation.
|
||||
|
||||
-b
|
||||
Backend output file format: 'docbook', 'linuxdoc', 'html', 'css'.
|
||||
|
||||
-l
|
||||
The name of the source code language: 'python', 'ruby', 'c++', 'c'.
|
||||
|
||||
-t tabsize
|
||||
Expand source tabs to tabsize spaces.
|
||||
|
||||
--version, -v
|
||||
Print program version number.
|
||||
|
||||
BUGS
|
||||
- Code on the same line as a block comment is treated as comment.
|
||||
Keywords inside literal strings are highlighted.
|
||||
- There doesn't appear to be an easy way to accomodate linuxdoc so
|
||||
just pass it through without markup.
|
||||
|
||||
AUTHOR
|
||||
Written by Stuart Rackham, <srackham@gmail.com>
|
||||
|
||||
URLS
|
||||
http://sourceforge.net/projects/asciidoc/
|
||||
http://asciidoc.org/
|
||||
|
||||
COPYING
|
||||
Copyright (C) 2002-2006 Stuart Rackham. Free use of this software is
|
||||
granted under the terms of the GNU General Public License (GPL).
|
||||
'''
|
||||
|
||||
import os, sys, re
|
||||
|
||||
VERSION = '1.1.2'
|
||||
|
||||
# Globals.
|
||||
language = None
|
||||
backend = None
|
||||
tabsize = 8
|
||||
keywordtags = {
|
||||
'html':
|
||||
('<strong>','</strong>'),
|
||||
'css':
|
||||
('<strong>','</strong>'),
|
||||
'docbook':
|
||||
('<emphasis role="strong">','</emphasis>'),
|
||||
'linuxdoc':
|
||||
('','')
|
||||
}
|
||||
commenttags = {
|
||||
'html':
|
||||
('<i>','</i>'),
|
||||
'css':
|
||||
('<i>','</i>'),
|
||||
'docbook':
|
||||
('<emphasis>','</emphasis>'),
|
||||
'linuxdoc':
|
||||
('','')
|
||||
}
|
||||
keywords = {
|
||||
'python':
|
||||
('and', 'del', 'for', 'is', 'raise', 'assert', 'elif', 'from',
|
||||
'lambda', 'return', 'break', 'else', 'global', 'not', 'try', 'class',
|
||||
'except', 'if', 'or', 'while', 'continue', 'exec', 'import', 'pass',
|
||||
'yield', 'def', 'finally', 'in', 'print'),
|
||||
'ruby':
|
||||
('__FILE__', 'and', 'def', 'end', 'in', 'or', 'self', 'unless',
|
||||
'__LINE__', 'begin', 'defined?' 'ensure', 'module', 'redo', 'super',
|
||||
'until', 'BEGIN', 'break', 'do', 'false', 'next', 'rescue', 'then',
|
||||
'when', 'END', 'case', 'else', 'for', 'nil', 'retry', 'true', 'while',
|
||||
'alias', 'class', 'elsif', 'if', 'not', 'return', 'undef', 'yield'),
|
||||
'c++':
|
||||
('asm', 'auto', 'bool', 'break', 'case', 'catch', 'char', 'class',
|
||||
'const', 'const_cast', 'continue', 'default', 'delete', 'do', 'double',
|
||||
'dynamic_cast', 'else', 'enum', 'explicit', 'export', 'extern',
|
||||
'false', 'float', 'for', 'friend', 'goto', 'if', 'inline', 'int',
|
||||
'long', 'mutable', 'namespace', 'new', 'operator', 'private',
|
||||
'protected', 'public', 'register', 'reinterpret_cast', 'return',
|
||||
'short', 'signed', 'sizeof', 'static', 'static_cast', 'struct',
|
||||
'switch', 'template', 'this', 'throw', 'true', 'try', 'typedef',
|
||||
'typeid', 'typename', 'union', 'unsigned', 'using', 'virtual', 'void',
|
||||
'volatile', 'wchar_t', 'while')
|
||||
}
|
||||
block_comments = {
|
||||
'python': ("'''","'''"),
|
||||
'ruby': None,
|
||||
'c++': ('/*','*/')
|
||||
}
|
||||
inline_comments = {
|
||||
'python': '#',
|
||||
'ruby': '#',
|
||||
'c++': '//'
|
||||
}
|
||||
|
||||
def print_stderr(line):
|
||||
sys.stderr.write(line+os.linesep)
|
||||
|
||||
def sub_keyword(mo):
|
||||
'''re.subs() argument to tag keywords.'''
|
||||
word = mo.group('word')
|
||||
if word in keywords[language]:
|
||||
stag,etag = keywordtags[backend]
|
||||
return stag+word+etag
|
||||
else:
|
||||
return word
|
||||
|
||||
def code_filter():
|
||||
'''This function does all the work.'''
|
||||
global language, backend
|
||||
inline_comment = inline_comments[language]
|
||||
blk_comment = block_comments[language]
|
||||
if blk_comment:
|
||||
blk_comment = (re.escape(block_comments[language][0]),
|
||||
re.escape(block_comments[language][1]))
|
||||
stag,etag = commenttags[backend]
|
||||
in_comment = 0 # True if we're inside a multi-line block comment.
|
||||
tag_comment = 0 # True if we should tag the current line as a comment.
|
||||
line = sys.stdin.readline()
|
||||
while line:
|
||||
line = line.rstrip()
|
||||
line = line.expandtabs(tabsize)
|
||||
# Escape special characters.
|
||||
line = line.replace('&','&')
|
||||
line = line.replace('<','<')
|
||||
line = line.replace('>','>')
|
||||
# Process block comment.
|
||||
if blk_comment:
|
||||
if in_comment:
|
||||
if re.match(r'.*'+blk_comment[1]+r'$',line):
|
||||
in_comment = 0
|
||||
else:
|
||||
if re.match(r'^\s*'+blk_comment[0]+r'.*'+blk_comment[1],line):
|
||||
# Single line block comment.
|
||||
tag_comment = 1
|
||||
elif re.match(r'^\s*'+blk_comment[0],line):
|
||||
# Start of multi-line block comment.
|
||||
tag_comment = 1
|
||||
in_comment = 1
|
||||
else:
|
||||
tag_comment = 0
|
||||
if tag_comment:
|
||||
if line: line = stag+line+etag
|
||||
else:
|
||||
if inline_comment:
|
||||
pos = line.find(inline_comment)
|
||||
else:
|
||||
pos = -1
|
||||
if pos >= 0:
|
||||
# Process inline comment.
|
||||
line = re.sub(r'\b(?P<word>\w+)\b',sub_keyword,line[:pos]) \
|
||||
+ stag + line[pos:] + etag
|
||||
else:
|
||||
line = re.sub(r'\b(?P<word>\w+)\b',sub_keyword,line)
|
||||
sys.stdout.write(line + os.linesep)
|
||||
line = sys.stdin.readline()
|
||||
|
||||
def usage(msg=''):
|
||||
if msg:
|
||||
print_stderr(msg)
|
||||
print_stderr('Usage: code-filter -b backend -l language [ -t tabsize ]')
|
||||
print_stderr(' [ --help | -h ] [ --version | -v ]')
|
||||
|
||||
def main():
|
||||
global language, backend, tabsize
|
||||
# Process command line options.
|
||||
import getopt
|
||||
opts,args = getopt.getopt(sys.argv[1:],
|
||||
'b:l:ht:v',
|
||||
['help','version'])
|
||||
if len(args) > 0:
|
||||
usage()
|
||||
sys.exit(1)
|
||||
for o,v in opts:
|
||||
if o in ('--help','-h'):
|
||||
print(__doc__)
|
||||
sys.exit(0)
|
||||
if o in ('--version','-v'):
|
||||
print('code-filter version %s' % (VERSION,))
|
||||
sys.exit(0)
|
||||
if o == '-b': backend = v
|
||||
if o == '-l':
|
||||
v = v.lower()
|
||||
if v == 'c': v = 'c++'
|
||||
language = v
|
||||
if o == '-t':
|
||||
try:
|
||||
tabsize = int(v)
|
||||
except:
|
||||
usage('illegal tabsize')
|
||||
sys.exit(1)
|
||||
if tabsize <= 0:
|
||||
usage('illegal tabsize')
|
||||
sys.exit(1)
|
||||
if backend is None:
|
||||
usage('backend option is mandatory')
|
||||
sys.exit(1)
|
||||
if backend not in keywordtags:
|
||||
usage('illegal backend option')
|
||||
sys.exit(1)
|
||||
if language is None:
|
||||
usage('language option is mandatory')
|
||||
sys.exit(1)
|
||||
if language not in keywords:
|
||||
usage('illegal language option')
|
||||
sys.exit(1)
|
||||
# Do the work.
|
||||
code_filter()
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
pass
|
||||
except:
|
||||
print_stderr("%s: unexpected exit status: %s" %
|
||||
(os.path.basename(sys.argv[0]), sys.exc_info()[1]))
|
||||
# Exit with previous sys.exit() status or zero if no sys.exit().
|
||||
sys.exit(sys.exc_info()[1])
|
||||
53
asciidoc/filters/graphviz/graphviz-filter.conf
Normal file
53
asciidoc/filters/graphviz/graphviz-filter.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# AsciiDoc Graphviz filter configuration file.
|
||||
#
|
||||
# Version: 1.0
|
||||
# Gouici Iisaka <iisaka51 at gmail dot com>
|
||||
|
||||
[graphviz-filter-style]
|
||||
# When the filter output image is data-uri encoded write it to the indir
|
||||
# (instead of the outdir) so that encoder can find it.
|
||||
ifndef::data-uri[]
|
||||
graphviz-style=template="graphviz{format?-{format}}-block",subs=(),posattrs=("style","target","layout","format"),filter='graphviz2png.py {verbose?-v} -o "{outdir={indir}}/{imagesdir=}{imagesdir?/}{target}" -L {layout=dot} -F {format=png} -'
|
||||
endif::data-uri[]
|
||||
ifdef::data-uri[]
|
||||
graphviz-style=template="graphviz{format?-{format}}-block",subs=(),posattrs=("style","target","layout","format"),filter='graphviz2png.py {verbose?-v} -o "{indir={outdir}}/{imagesdir=}{imagesdir?/}{target}" -L {layout=dot} -F {format=png} -'
|
||||
endif::data-uri[]
|
||||
|
||||
[blockdef-open]
|
||||
template::[graphviz-filter-style]
|
||||
|
||||
[blockdef-listing]
|
||||
template::[graphviz-filter-style]
|
||||
|
||||
[paradef-default]
|
||||
template::[graphviz-filter-style]
|
||||
|
||||
[graphviz-block]
|
||||
template::[filter-image-blockmacro]
|
||||
|
||||
# EXPERIMENTAL: xhtml11 backend SVG image block.
|
||||
ifdef::basebackend-xhtml11[]
|
||||
[graphviz-svg-block]
|
||||
<div class="imageblock"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
|
||||
<div class="content">
|
||||
<a class="image" href="{link}">
|
||||
<object data="{imagesdir=}{imagesdir?/}{target}" type="image/svg+xml" />
|
||||
{link#}</a>
|
||||
</div>
|
||||
<div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
|
||||
</div>
|
||||
endif::basebackend-xhtml11[]
|
||||
|
||||
#
|
||||
# DEPRECATED: Pre 8.2.7 filter definition.
|
||||
#
|
||||
[blockdef-graphviz]
|
||||
delimiter=^graphviz~{4,}$
|
||||
template=graphviz-block
|
||||
presubs=none
|
||||
filter=graphviz2png.py {verbose?-v} -o "{outdir={indir}}/{target}" -L {layout=dot} -
|
||||
posattrs=target,format
|
||||
#
|
||||
# DEPRECATED: End
|
||||
#
|
||||
169
asciidoc/filters/graphviz/graphviz2png.py
Executable file
169
asciidoc/filters/graphviz/graphviz2png.py
Executable file
@@ -0,0 +1,169 @@
|
||||
#!/usr/libexec/platform-python
|
||||
|
||||
import os, sys, subprocess
|
||||
from optparse import *
|
||||
|
||||
__AUTHOR__ = "Gouichi Iisaka <iisaka51@gmail.com>"
|
||||
__VERSION__ = '1.1.4'
|
||||
|
||||
class EApp(Exception):
|
||||
'''Application specific exception.'''
|
||||
pass
|
||||
|
||||
class Application():
|
||||
'''
|
||||
NAME
|
||||
graphviz2png - Converts textual graphviz notation to PNG file
|
||||
|
||||
SYNOPSIS
|
||||
graphviz2png [options] INFILE
|
||||
|
||||
DESCRIPTION
|
||||
This filter reads Graphviz notation text from the input file
|
||||
INFILE (or stdin if INFILE is -), converts it to a PNG image file.
|
||||
|
||||
|
||||
OPTIONS
|
||||
-o OUTFILE, --outfile=OUTFILE
|
||||
The file name of the output file. If not specified the output file is
|
||||
named like INFILE but with a .png file name extension.
|
||||
|
||||
-L LAYOUT, --layout=LAYOUT
|
||||
Graphviz layout: dot, neato, twopi, circo, fdp
|
||||
Default is 'dot'.
|
||||
|
||||
-F FORMAT, --format=FORMAT
|
||||
Graphviz output format: png, svg, or any other format Graphviz
|
||||
supports. Run dot -T? to get the full list.
|
||||
Default is 'png'.
|
||||
|
||||
-v, --verbose
|
||||
Verbosely print processing information to stderr.
|
||||
|
||||
-h, --help
|
||||
Print this documentation.
|
||||
|
||||
-V, --version
|
||||
Print program version number.
|
||||
|
||||
SEE ALSO
|
||||
graphviz(1)
|
||||
|
||||
AUTHOR
|
||||
Written by Gouichi Iisaka, <iisaka51@gmail.com>
|
||||
Format support added by Elmo Todurov, <todurov@gmail.com>
|
||||
|
||||
THANKS
|
||||
Stuart Rackham, <srackham@gmail.com>
|
||||
This script was inspired by his music2png.py and AsciiDoc
|
||||
|
||||
LICENSE
|
||||
Copyright (C) 2008-2009 Gouichi Iisaka.
|
||||
Free use of this software is granted under the terms of
|
||||
the GNU General Public License (GPL).
|
||||
'''
|
||||
|
||||
def __init__(self, argv=None):
|
||||
# Run dot, get the list of supported formats. It's prefixed by some junk.
|
||||
format_output = subprocess.Popen(["dot", "-T?"], stderr=subprocess.PIPE, stdout=subprocess.PIPE).communicate()[1].decode('utf-8')
|
||||
# The junk contains : and ends with :. So we split it, then strip the final endline, then split the list for future usage.
|
||||
supported_formats = format_output.split(": ")[2][:-1].split(" ")
|
||||
|
||||
if not argv:
|
||||
argv = sys.argv
|
||||
|
||||
self.usage = '%prog [options] inputfile'
|
||||
self.version = 'Version: %s\n' % __VERSION__
|
||||
self.version += 'Copyright(c) 2008-2009: %s\n' % __AUTHOR__
|
||||
|
||||
self.option_list = [
|
||||
Option("-o", "--outfile", action="store",
|
||||
dest="outfile",
|
||||
help="Output file"),
|
||||
Option("-L", "--layout", action="store",
|
||||
dest="layout", default="dot", type="choice",
|
||||
choices=['dot','neato','twopi','circo','fdp'],
|
||||
help="Layout type. LAYOUT=<dot|neato|twopi|circo|fdp>"),
|
||||
Option("-F", "--format", action="store",
|
||||
dest="format", default="png", type="choice",
|
||||
choices=supported_formats,
|
||||
help="Format type. FORMAT=<" + "|".join(supported_formats) + ">"),
|
||||
Option("--debug", action="store_true",
|
||||
dest="do_debug",
|
||||
help=SUPPRESS_HELP),
|
||||
Option("-v", "--verbose", action="store_true",
|
||||
dest="do_verbose", default=False,
|
||||
help="verbose output"),
|
||||
]
|
||||
|
||||
self.parser = OptionParser( usage=self.usage, version=self.version,
|
||||
option_list=self.option_list)
|
||||
(self.options, self.args) = self.parser.parse_args()
|
||||
|
||||
if len(self.args) != 1:
|
||||
self.parser.print_help()
|
||||
sys.exit(1)
|
||||
|
||||
self.options.infile = self.args[0]
|
||||
|
||||
def systemcmd(self, cmd):
|
||||
if self.options.do_verbose:
|
||||
msg = 'Execute: %s' % cmd
|
||||
sys.stderr.write(msg + os.linesep)
|
||||
else:
|
||||
cmd += ' 2>%s' % os.devnull
|
||||
if os.system(cmd):
|
||||
raise EApp('failed command: %s' % cmd)
|
||||
|
||||
def graphviz2png(self, infile, outfile):
|
||||
'''Convert Graphviz notation in file infile to
|
||||
PNG file named outfile.'''
|
||||
|
||||
outfile = os.path.abspath(outfile)
|
||||
outdir = os.path.dirname(outfile)
|
||||
|
||||
if not os.path.isdir(outdir):
|
||||
raise EApp('directory does not exist: %s' % outdir)
|
||||
|
||||
basefile = os.path.splitext(outfile)[0]
|
||||
saved_cwd = os.getcwd()
|
||||
os.chdir(outdir)
|
||||
try:
|
||||
cmd = '%s -T%s "%s" > "%s"' % (
|
||||
self.options.layout, self.options.format, infile, outfile)
|
||||
self.systemcmd(cmd)
|
||||
finally:
|
||||
os.chdir(saved_cwd)
|
||||
|
||||
if not self.options.do_debug:
|
||||
os.unlink(infile)
|
||||
|
||||
def run(self):
|
||||
if self.options.format == '':
|
||||
self.options.format = 'png'
|
||||
|
||||
if self.options.infile == '-':
|
||||
if self.options.outfile is None:
|
||||
sys.stderr.write('OUTFILE must be specified')
|
||||
sys.exit(1)
|
||||
infile = os.path.splitext(self.options.outfile)[0] + '.txt'
|
||||
lines = sys.stdin.readlines()
|
||||
open(infile, 'w').writelines(lines)
|
||||
|
||||
if not os.path.isfile(infile):
|
||||
raise EApp('input file does not exist: %s' % infile)
|
||||
|
||||
if self.options.outfile is None:
|
||||
outfile = os.path.splitext(infile)[0] + '.png'
|
||||
else:
|
||||
outfile = self.options.outfile
|
||||
|
||||
self.graphviz2png(infile, outfile)
|
||||
|
||||
# To suppress asciidoc 'no output from filter' warnings.
|
||||
if self.options.infile == '-':
|
||||
sys.stdout.write(' ')
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = Application()
|
||||
app.run()
|
||||
140
asciidoc/filters/source/source-highlight-filter.conf
Normal file
140
asciidoc/filters/source/source-highlight-filter.conf
Normal file
@@ -0,0 +1,140 @@
|
||||
#
|
||||
# AsciiDoc source code highlight filter configuration file.
|
||||
#
|
||||
# Documented in source-hightlight-filter.txt in AsciiDoc distribution
|
||||
# ./examples/website/ directory.
|
||||
#
|
||||
# HTML outputs require GNU source-highlight (xhtml11, html4 outputs)
|
||||
# http://www.gnu.org/software/src-highlite/source-highlight.html
|
||||
#
|
||||
# or Pygments (xhtml11 outputs):
|
||||
# http://pygments.org/
|
||||
#
|
||||
# GNU source-hightlight is default, define the 'pygments' attribute to use
|
||||
# Pygments.
|
||||
#
|
||||
|
||||
########################
|
||||
# Source block templates
|
||||
########################
|
||||
[source-highlight-block]
|
||||
template::[listingblock]
|
||||
|
||||
ifdef::basebackend-html[]
|
||||
[source-highlight-block]
|
||||
<a name="{id}"></a>
|
||||
<p><b>{title}</b></p>
|
||||
<table{role? class="{role}"} border="0" bgcolor="#e8e8e8" width="100%" cellpadding="10"><tr><td>
|
||||
{source-highlighter$highlight:}<pre><code>
|
||||
|
|
||||
{source-highlighter$highlight:}</code></pre>
|
||||
</td></tr></table>
|
||||
endif::basebackend-html[]
|
||||
|
||||
ifdef::basebackend-xhtml11,basebackend-html5[]
|
||||
[source-highlight-block]
|
||||
<div class="listingblock{role? {role}}">
|
||||
<a id="{id}"></a>
|
||||
<div class="title">{caption=}{title}</div>
|
||||
<div class="content">
|
||||
{source-highlighter$highlight:}<pre><code>
|
||||
|
|
||||
{source-highlighter$highlight:}</code></pre>
|
||||
</div></div>
|
||||
endif::basebackend-xhtml11,basebackend-html5[]
|
||||
|
||||
# Use DocBook programlisting element.
|
||||
ifdef::basebackend-docbook[]
|
||||
[source-highlight-block]
|
||||
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
|
||||
{title#}<programlisting language="{language}" linenumbering="{src_numbered=unnumbered}"{args? {args}}>
|
||||
{title%}<programlisting language="{language}"{role? role="{role}"} linenumbering="{src_numbered=unnumbered}"{args? {args}}>
|
||||
|
|
||||
</programlisting>
|
||||
{title#}</para></formalpara>
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
# Source styles template.
|
||||
ifdef::basebackend-html[]
|
||||
[source-filter-style]
|
||||
ifeval::["{source-highlighter}"=="source-highlight"]
|
||||
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight --gen-version -f xhtml -s {language} {src_numbered?--line-number=' '} {src_tab?--tab={src_tab}} {args=}"
|
||||
endif::[]
|
||||
ifeval::["{source-highlighter}"=="highlight"]
|
||||
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="highlight --no-doc --inline-css --out-format=xhtml --syntax={language@python:py:{language}} {src_numbered?--line-number} {src_tab?--tab={src_tab}} --encoding={encoding} {args=}"
|
||||
endif::[]
|
||||
ifeval::["{source-highlighter}"=="pygments"]
|
||||
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered"),filter="pygmentize -f html -l {language} {src_numbered?-O linenos=table} {encoding?-O encoding={encoding}} {args=}"
|
||||
endif::[]
|
||||
# DEPRECATED: 'pygments' attribute.
|
||||
ifdef::pygments[]
|
||||
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered"),filter="pygmentize -f html -l {language} {src_numbered?-O linenos=table} {encoding?-O encoding={encoding}} {args=}"
|
||||
endif::[]
|
||||
endif::basebackend-html[]
|
||||
|
||||
ifdef::basebackend-html4[]
|
||||
[source-filter-style]
|
||||
# html4 does not use pygments.
|
||||
ifeval::["{source-highlighter}"=="source-highlight"]
|
||||
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="source-highlight --gen-version -f html -s {language} {src_numbered?--line-number=' '} {src_tab?--tab={src_tab}} {args=}"
|
||||
endif::[]
|
||||
ifeval::["{source-highlighter}"=="highlight"]
|
||||
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="highlight --no-doc --inline-css --out-format=html --syntax={language@python:py:{language}} {src_numbered?--line-number} {src_tab?--tab={src_tab}} {args=}"
|
||||
endif::[]
|
||||
endif::basebackend-html4[]
|
||||
|
||||
ifdef::basebackend-docbook[]
|
||||
[source-filter-style]
|
||||
source-style=template="source-highlight-block",presubs=(),postsubs=("specialcharacters","callouts"),posattrs=("style","language","src_numbered","src_tab")
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
#########################
|
||||
# Source paragraph styles
|
||||
#########################
|
||||
[paradef-default]
|
||||
template::[source-filter-style]
|
||||
|
||||
[paradef-literal]
|
||||
template::[source-filter-style]
|
||||
|
||||
#########################
|
||||
# Source block styles
|
||||
#########################
|
||||
[blockdef-open]
|
||||
template::[source-filter-style]
|
||||
|
||||
[blockdef-listing]
|
||||
template::[source-filter-style]
|
||||
|
||||
|
||||
#
|
||||
# DEPRECATED: Pre 8.2.7 filter definition.
|
||||
#
|
||||
|
||||
#########################
|
||||
# Source block definition
|
||||
#########################
|
||||
[blockdef-source-highlight]
|
||||
# The old ^ delimiter is for backward compatibility, may be removed from
|
||||
# in future versions.
|
||||
delimiter=(^source~{4,}$)|(^\^{4,}$)
|
||||
template=source-highlight-block
|
||||
presubs=none
|
||||
posattrs=language,src_numbered,src_tab
|
||||
|
||||
ifndef::basebackend-docbook[]
|
||||
postsubs=callouts
|
||||
# GNU Source Highlight filter.
|
||||
filter=source-highlight -f {basebackend-xhtml11?xhtml}{basebackend-html4?html} -s {language} {src_numbered?--line-number} {src_tab?--tab={src_tab}}
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::basebackend-docbook[]
|
||||
postsubs=specialcharacters,callouts
|
||||
# In the case of DocBook just pass the listing through and let the DocBook
|
||||
# toolchain handle it.
|
||||
filter=
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
#
|
||||
# DEPRECATED: End
|
||||
#
|
||||
394
asciidoc/help.conf
Normal file
394
asciidoc/help.conf
Normal file
@@ -0,0 +1,394 @@
|
||||
# AsciiDoc help file.
|
||||
#
|
||||
# INI section format, each section contains a topic.
|
||||
# Displayed with 'asciidoc --help sectionname' command.
|
||||
#
|
||||
|
||||
#
|
||||
# Default help topic.
|
||||
#
|
||||
[default]
|
||||
|
||||
Man page: asciidoc --help manpage
|
||||
Syntax: asciidoc --help syntax
|
||||
|
||||
[manpage]
|
||||
|
||||
NAME
|
||||
|
||||
asciidoc - converts an AsciiDoc text file to HTML or DocBook
|
||||
|
||||
SYNOPSIS
|
||||
|
||||
asciidoc [OPTIONS] FILE
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
The asciidoc(1) command translates the AsciiDoc text file FILE to
|
||||
DocBook or HTML. If FILE is - then the standard input is used.
|
||||
|
||||
OPTIONS
|
||||
|
||||
-a, --attribute=ATTRIBUTE
|
||||
Define or delete document attribute. ATTRIBUTE is formatted like
|
||||
NAME=VALUE. Command-line attributes take precedence over
|
||||
document and configuration file attributes. Alternate acceptable
|
||||
forms are NAME (the VALUE defaults to an empty string); NAME!
|
||||
(delete the NAME attribute); NAME=VALUE@ (do not override
|
||||
document or configuration file attributes). Values containing
|
||||
spaces should be enclosed in double-quote characters. This
|
||||
option may be specified more than once. A special attribute
|
||||
named trace controls the output of diagnostic information.
|
||||
|
||||
-b, --backend=BACKEND
|
||||
Backend output file format: docbook45, xhtml11, html4, html5,
|
||||
slidy, wordpress or latex (the latex backend is experimental).
|
||||
You can also use the backend alias names html (aliased to
|
||||
xhtml11) or docbook (aliased to docbook45). Defaults to
|
||||
html. The --backend option is also used to manage backend
|
||||
plugins (see [1]PLUGIN COMMANDS).
|
||||
|
||||
-f, --conf-file=CONF_FILE
|
||||
Use configuration file CONF_FILE.Configuration files processed
|
||||
in command-line order (after implicit configuration files). This
|
||||
option may be specified more than once.
|
||||
|
||||
--doctest
|
||||
Run Python doctests in asciidoc module.
|
||||
|
||||
-d, --doctype=DOCTYPE
|
||||
Document type: article, manpage or book. The book document type
|
||||
is only supported by the docbook backend. Default document type
|
||||
is article.
|
||||
|
||||
-c, --dump-conf
|
||||
Dump configuration to stdout.
|
||||
|
||||
--filter=FILTER
|
||||
Specify the name of a filter to be loaded (used to load filters
|
||||
that are not auto-loaded). This option may be specified more
|
||||
than once. The --filter option is also used to manage filter
|
||||
plugins (see [2]PLUGIN COMMANDS).
|
||||
|
||||
-h, --help [TOPIC]
|
||||
Print help TOPIC. --help topics will print a list of help
|
||||
topics, --help syntax summarizes AsciiDoc syntax, --help manpage
|
||||
prints the AsciiDoc manpage.
|
||||
|
||||
-e, --no-conf
|
||||
Exclude implicitly loaded configuration files except for those
|
||||
named like the input file (infile.conf and infile-backend.conf).
|
||||
|
||||
-s, --no-header-footer
|
||||
Suppress document header and footer output.
|
||||
|
||||
-o, --out-file=OUT_FILE
|
||||
Write output to file OUT_FILE. Defaults to the base name of
|
||||
input file with backend extension. If the input is stdin then
|
||||
the outfile defaults to stdout. If OUT_FILE is - then the
|
||||
standard output is used.
|
||||
|
||||
-n, --section-numbers
|
||||
Auto-number HTML article section titles. Synonym for --attribute
|
||||
numbered.
|
||||
|
||||
--safe
|
||||
Enable safe mode. Safe mode is disabled by default. AsciiDoc
|
||||
safe mode skips potentially dangerous scripted sections in
|
||||
AsciiDoc source files.
|
||||
|
||||
--theme=THEME
|
||||
Specify a theme name. Synonym for --attribute theme=THEME. The
|
||||
--theme option is also used to manage theme plugins (see
|
||||
[3]PLUGIN COMMANDS).
|
||||
|
||||
-v, --verbose
|
||||
Verbosely print processing information and configuration file
|
||||
checks to stderr.
|
||||
|
||||
--version
|
||||
Print program version number.
|
||||
|
||||
PLUGIN COMMANDS
|
||||
|
||||
The asciidoc(1) --filter, --backend and --theme options are used to
|
||||
install, remove and list AsciiDoc filter, backend and theme plugins.
|
||||
Syntax:
|
||||
|
||||
asciidoc OPTION install ZIP_FILE [PLUGINS_DIR]
|
||||
asciidoc OPTION remove PLUGIN_NAME [PLUGINS_DIR]
|
||||
asciidoc OPTION list
|
||||
asciidoc OPTION build ZIP_FILE PLUGIN_SOURCE
|
||||
|
||||
Where:
|
||||
|
||||
OPTION
|
||||
asciidoc(1) --filter, --backend or --theme option specifying the
|
||||
type of plugin.
|
||||
|
||||
PLUGIN_NAME
|
||||
A unique plugin name containing only alphanumeric or underscore
|
||||
characters.
|
||||
|
||||
ZIP_FILE
|
||||
A Zip file containing plugin resources, the name must start with
|
||||
the plugin name e.g. my_filter-1.0.zip packages filter
|
||||
my_filter.
|
||||
|
||||
PLUGINS_DIR
|
||||
The directory containing installed plugins. Each plugin is
|
||||
contained in its own separate subdirectory which has the same
|
||||
name as the plugin. PLUGINS_DIR defaults to the
|
||||
$HOME/.asciidoc/filters (for filter plugins) or
|
||||
$HOME/.asciidoc/backends (for backend plugins) or
|
||||
$HOME/.asciidoc/themes (for theme plugins).
|
||||
|
||||
PLUGIN_SOURCE
|
||||
The name of a directory containing the plugin source files or
|
||||
the name of a single source file.
|
||||
|
||||
The plugin commands perform as follows:
|
||||
|
||||
install
|
||||
Create a subdirectory in PLUGINS_DIR with the same name as the
|
||||
plugin then extract the ZIP_FILE into it.
|
||||
|
||||
remove
|
||||
Delete the PLUGIN_NAME plugin subdirectory and all its contents
|
||||
from the PLUGINS_DIR.
|
||||
|
||||
list
|
||||
List the names and locations of all installed filter or theme
|
||||
plugins (including standard plugins installed in the global
|
||||
configuration directory).
|
||||
|
||||
build
|
||||
Create a plugin file named ZIP_FILE containing the files and
|
||||
subdirectories specified by PLUGIN_SOURCE. File and directory
|
||||
names starting with a period are skipped.
|
||||
|
||||
EXIT STATUS
|
||||
|
||||
0
|
||||
Success
|
||||
|
||||
1
|
||||
Failure (syntax or usage error; configuration error; document
|
||||
processing failure; unexpected error).
|
||||
|
||||
BUGS
|
||||
|
||||
See the AsciiDoc distribution BUGS file.
|
||||
|
||||
AUTHOR
|
||||
|
||||
AsciiDoc was originally written by Stuart Rackham. Many people have
|
||||
contributed to it.
|
||||
|
||||
RESOURCES
|
||||
|
||||
SourceForge: [4]http://sourceforge.net/projects/asciidoc/
|
||||
|
||||
Main web site: [5]http://asciidoc.org/
|
||||
|
||||
COPYING
|
||||
|
||||
Copyright (C) 2002-2011 Stuart Rackham. Free use of this software is
|
||||
granted under the terms of the GNU General Public License (GPL).
|
||||
|
||||
|
||||
[syntax]
|
||||
|
||||
AsciiDoc Markup Syntax Summary
|
||||
==============================
|
||||
|
||||
A summary of the most commonly used markup.
|
||||
For a complete reference see the 'AsciiDoc User Guide'.
|
||||
|
||||
Text formatting
|
||||
---------------
|
||||
*bold text* (boldface font)
|
||||
_emphasized text_ (normally italics)
|
||||
'emphasized text'
|
||||
+monospaced text+ (proportional font)
|
||||
`monospaced text` (inline literal passthrough)
|
||||
|
||||
Document links
|
||||
--------------
|
||||
[[id]] (define link target)
|
||||
<<id,caption>> (link to target id)
|
||||
link:filename#id[caption] (link to external HTML file)
|
||||
|
||||
URLs
|
||||
----
|
||||
Use normal URL and email addess syntax or:
|
||||
|
||||
http:address[caption] (link to web page)
|
||||
mailto:address[caption] (link to mail recipient)
|
||||
|
||||
Images
|
||||
------
|
||||
image:filename[caption] (inline image)
|
||||
image::filename[caption] (block image)
|
||||
|
||||
Document header
|
||||
---------------
|
||||
|
||||
The Document Title
|
||||
==================
|
||||
author <email>
|
||||
revision, date
|
||||
|
||||
author, email, revision and date are optional.
|
||||
|
||||
Section title underlines
|
||||
------------------------
|
||||
Underlined:
|
||||
|
||||
Level 0 (document title)
|
||||
=======
|
||||
Level 1
|
||||
-------
|
||||
Level 2
|
||||
~~~~~~~
|
||||
Level 3
|
||||
^^^^^^^
|
||||
Level 4 (bottom level)
|
||||
+++++++
|
||||
|
||||
Single line:
|
||||
|
||||
= Level 0 = (document title)
|
||||
== Level 1 ==
|
||||
=== Level 2 ===
|
||||
==== Level 3 ====
|
||||
===== Level 4 ===== (bottom level)
|
||||
|
||||
Paragraphs
|
||||
----------
|
||||
A normal paragraph. (styles: literal,verse,quote,listing,
|
||||
NOTE,TIP,WARNING,IMPORTANT,CAUTION)
|
||||
An indented literal
|
||||
paragraph.
|
||||
|
||||
Delimited blocks
|
||||
----------------
|
||||
Delimiters must begin at left margin.
|
||||
|
||||
------------------- (styles: source,music,graphviz)
|
||||
listing block
|
||||
-------------------
|
||||
|
||||
................... (styles: listing,verse)
|
||||
literal block
|
||||
...................
|
||||
|
||||
*******************
|
||||
sidebar block
|
||||
*******************
|
||||
|
||||
[style, author, cite]
|
||||
___________________ (styles: quote,verse)
|
||||
quote block
|
||||
___________________
|
||||
|
||||
=================== (styles: NOTE,TIP,WARNING,
|
||||
example block IMPORTANT,CAUTION)
|
||||
===================
|
||||
|
||||
///////////////////
|
||||
comment block
|
||||
///////////////////
|
||||
|
||||
+++++++++++++++++++ (styles: pass,asciimath,latexmath)
|
||||
passthrough block
|
||||
+++++++++++++++++++
|
||||
|
||||
[style] (styles: abstract,partintro)
|
||||
--
|
||||
open block
|
||||
--
|
||||
|
||||
More block elements
|
||||
-------------------
|
||||
[attributes list]
|
||||
.Block title
|
||||
// Comment line
|
||||
include::filename[]
|
||||
|
||||
Tables
|
||||
------
|
||||
.An example table
|
||||
[width="40%",cols="^,2m",frame="topbot",options="header,footer"]
|
||||
|======================
|
||||
|Column 1 |Column 2
|
||||
|1 |Item 1
|
||||
|2 |Item 2
|
||||
|3 |Item 3
|
||||
|6 |Three items
|
||||
|======================
|
||||
|
||||
Common attributes:
|
||||
|
||||
grid: none,cols,rows,all
|
||||
frame: topbot,none,sides,all
|
||||
options: header,footer
|
||||
format: psv,csv,dsv
|
||||
valign: top,bottom,middle
|
||||
width: 1%..100%
|
||||
cols: colspec[,colspec,...]
|
||||
|
||||
colspec: [multiplier*][align][width][style]
|
||||
multiplier: 1...
|
||||
width: 1... or 1%...100%
|
||||
align: [horiz][.vert]
|
||||
horiz: < (left), ^ (center), > (right)
|
||||
vert: < (top), ^ (middle), > (bottom)
|
||||
style: d[efault], e[mphasis], m[onospaced], a[sciidoc],
|
||||
s[trong], l[iteral], v[erse], h[eader]
|
||||
cell: [cellspec]|data
|
||||
cellspec: [span*|+][align][style]
|
||||
span: [colspan][.rowspan]
|
||||
colspan: 1...
|
||||
rowspan: 1...
|
||||
|
||||
Bulleted lists
|
||||
--------------
|
||||
- item text
|
||||
* item text
|
||||
** item text
|
||||
*** item text
|
||||
**** item text
|
||||
***** item text
|
||||
|
||||
(styles: callout,bibliography)
|
||||
|
||||
Numbered lists
|
||||
--------------
|
||||
1. arabic (decimal) numbering
|
||||
a. loweralpha numbering
|
||||
F. upperalpha numbering
|
||||
iii) lowerroman numbering
|
||||
IX) upperroman numbering
|
||||
|
||||
. arabic (decimal) numbering
|
||||
.. loweralpha numbering
|
||||
... lowerroman numbering
|
||||
.... upperalpha numbering
|
||||
..... upperroman numbering
|
||||
|
||||
(styles: arabic,loweralpha,upperalpha,lowerroman,upperroman)
|
||||
|
||||
Labeled lists
|
||||
-------------
|
||||
label:: item text
|
||||
label;; item text
|
||||
label::: item text
|
||||
label:::: item text
|
||||
|
||||
(styles: horizontal,vertical,glossary,qanda,bibliograpy)
|
||||
|
||||
More inline elements
|
||||
--------------------
|
||||
footnote:[footnote text] (document footnote)
|
||||
|
||||
530
asciidoc/html4.conf
Normal file
530
asciidoc/html4.conf
Normal file
@@ -0,0 +1,530 @@
|
||||
#
|
||||
# html4.conf
|
||||
#
|
||||
# Asciidoc HTML 4.01 configuration file.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
outfilesuffix=.html
|
||||
|
||||
[attributes]
|
||||
basebackend=html
|
||||
basebackend-html=
|
||||
basebackend-html4=
|
||||
hr=<hr>
|
||||
|
||||
[replacements2]
|
||||
# Line break.
|
||||
(?m)^(.*)\s\+$=\1<br>
|
||||
|
||||
[replacements]
|
||||
ifdef::asciidoc7compatible[]
|
||||
# Superscripts.
|
||||
\^(.+?)\^=<sup>\1</sup>
|
||||
# Subscripts.
|
||||
~(.+?)~=<sub>\1</sub>
|
||||
endif::asciidoc7compatible[]
|
||||
|
||||
[ruler-blockmacro]
|
||||
<hr>
|
||||
|
||||
[pagebreak-blockmacro]
|
||||
<div style="page-break-after:always"></div>
|
||||
|
||||
[pi-blockmacro]
|
||||
<?{target}{0? {0}}?>
|
||||
|
||||
[pi-inlinemacro]
|
||||
template::[pi-blockmacro]
|
||||
|
||||
[image-inlinemacro]
|
||||
<a href="{link}"{role? class="{role}"}>
|
||||
# src attribute must be first attribute for blogpost compatibility.
|
||||
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" style="border-width: 0; vertical-align: text-bottom;" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}>
|
||||
{data-uri#}<img style="border-width: 0; vertical-align: text-bottom;" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}
|
||||
{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
|
||||
{link#}</a>
|
||||
|
||||
[image-blockmacro]
|
||||
<div{align? align="{align}"}{role? class="{role}"}{float? style="float:{float};"}>
|
||||
<a name="{id}"></a>
|
||||
<a href="{link}">
|
||||
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" style="border-width: 0;" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
|
||||
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}
|
||||
{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
|
||||
{link#}</a>
|
||||
<p><b>{caption={figure-caption} {counter:figure-number}. }</b>{title}</p>
|
||||
</div>
|
||||
|
||||
[unfloat-blockmacro]
|
||||
<br clear="all">
|
||||
|
||||
[indexterm-inlinemacro]
|
||||
# Index term.
|
||||
{empty}
|
||||
|
||||
[indexterm2-inlinemacro]
|
||||
# Index term.
|
||||
# Single entry index term that is visible in the primary text flow.
|
||||
{1}
|
||||
|
||||
[footnote-inlinemacro]
|
||||
# footnote:[<text>].
|
||||
<br><i>[{0}]</i><br>
|
||||
|
||||
[footnoteref-inlinemacro]
|
||||
# footnoteref:[<id>], create reference to footnote.
|
||||
{2%}<br><i><a href="#_footnote_{1}">[{1}]</a></i><br>
|
||||
# footnoteref:[<id>,<text>], create footnote with ID.
|
||||
{2#}<br><i><a name="_footnote_{1}">[{2}]</a></i><br>
|
||||
|
||||
[callout-inlinemacro]
|
||||
# Callout.
|
||||
<b><{index}></b>
|
||||
|
||||
# Comment line macros.
|
||||
[comment-inlinemacro]
|
||||
{showcomments#}<br><span style="background:yellow;">{passtext}</span><br>
|
||||
|
||||
[comment-blockmacro]
|
||||
{showcomments#}<p><span style="background:yellow;">{passtext}</span></p>
|
||||
|
||||
[literal-inlinemacro]
|
||||
# Inline literal.
|
||||
<code>{passtext}</code>
|
||||
|
||||
# List tags.
|
||||
[listtags-bulleted]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ul{role? class="{role}"}>|</ul>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-numbered]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ol type="{style@arabic:1}{style@loweralpha:a}{style@upperalpha:A}{style@lowerroman:i}{style@upperroman:I}"{start? start="{start}"}{role? class="{role}"}>|</ol>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-labeled]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<dl{role? class="{role}"}>|</dl>
|
||||
entry=
|
||||
label=
|
||||
term=<dt>{strong-option?<strong>}|{strong-option?</strong>}</dt>
|
||||
item=<dd>|</dd>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-horizontal]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<table cellpadding="4"{role? class="{role}"}>|</table>
|
||||
entry=<tr valign="top">|</tr>
|
||||
label=<td{labelwidth? width="{labelwidth}%"}>{strong-option?<strong>}|{strong-option?</strong>}</td>
|
||||
term=|<br>
|
||||
item=<td{itemwidth? width="{itemwidth}%"}>|</td>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-callout]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ol{role? class="{role}"}>|</ol>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-qanda]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ol{role? class="{role}"}>|</ol>
|
||||
entry=<li>|</li>
|
||||
label=
|
||||
term=<p><em>|</em></p>
|
||||
item=
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-glossary]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<dl{role? class="{role}"}>|</dl>
|
||||
entry=
|
||||
label=
|
||||
term=<dt>|</dt>
|
||||
item=<dd>|</dd>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-bibliography]
|
||||
list={id?<a name="{id}"></a>}{title?<p><b>{title}</b></p>}<ul{role? class="{role}"}>|</ul>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[tags]
|
||||
# Quoted text.
|
||||
emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em>
|
||||
strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong>
|
||||
monospaced=<code>{1?<span class="{1}">}|{1?</span>}</code>
|
||||
singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo}
|
||||
doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo}
|
||||
unquoted={1?<span class="{1}">}|{1?</span>}
|
||||
superscript=<sup>{1?<span class="{1}">}|{1?</span>}</sup>
|
||||
subscript=<sub>{1?<span class="{1}">}|{1?</span>}</sub>
|
||||
|
||||
ifdef::deprecated-quotes[]
|
||||
# Override with deprecated quote attributes.
|
||||
emphasis={role?<span class="{role}">}<em{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</em>{role?</span>}
|
||||
strong={role?<span class="{role}">}<strong{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</strong>{role?</span>}
|
||||
monospaced={role?<span class="{role}">}<code{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</code>{role?</span>}
|
||||
singlequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8216;|{amp}#8217;{1,2,3?</span>}{role?</span>}
|
||||
doublequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8220;|{amp}#8221;{1,2,3?</span>}{role?</span>}
|
||||
unquoted={role?<span class="{role}">}{1,2,3?<span style="{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}">}|{1,2,3?</span>}{role?</span>}
|
||||
superscript={role?<span class="{role}">}<sup{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sup>{role?</span>}
|
||||
subscript={role?<span class="{role}">}<sub{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sub>{role?</span>}
|
||||
endif::deprecated-quotes[]
|
||||
|
||||
# Inline macros
|
||||
[http-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[https-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[ftp-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[file-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[irc-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[mailto-inlinemacro]
|
||||
<a href="mailto:{target}">{0={target}}</a>
|
||||
[callto-inlinemacro]
|
||||
<a href="{name}:{target}">{0={target}}</a>
|
||||
[link-inlinemacro]
|
||||
<a href="{target}">{0={target}}</a>
|
||||
# anchor:id[text]
|
||||
[anchor-inlinemacro]
|
||||
<a name="{target}"></a>
|
||||
# [[id,text]]
|
||||
[anchor2-inlinemacro]
|
||||
<a name="{1}"></a>
|
||||
# [[[id]]]
|
||||
[anchor3-inlinemacro]
|
||||
<a name="{1}"></a>[{1}]
|
||||
# xref:id[text]
|
||||
[xref-inlinemacro]
|
||||
<a href="#{target}">{0=[{target}]}</a>
|
||||
# <<id,text>>
|
||||
[xref2-inlinemacro]
|
||||
<a href="#{1}">{2=[{1}]}</a>
|
||||
|
||||
# Special word substitution.
|
||||
[emphasizedwords]
|
||||
<em>{words}</em>
|
||||
[monospacedwords]
|
||||
<code>{words}</code>
|
||||
[strongwords]
|
||||
<strong>{words}</strong>
|
||||
|
||||
# Paragraph substitution.
|
||||
[paragraph]
|
||||
<p{role? class="{role}"}>{id?<a name="{id}"></a>}{title?<b>{title}</b><br>}
|
||||
|
|
||||
</p>
|
||||
|
||||
[admonitionparagraph]
|
||||
template::[admonitionblock]
|
||||
|
||||
# Delimited blocks.
|
||||
[passthroughblock]
|
||||
|
|
||||
|
||||
[listingblock]
|
||||
<a name="{id}"></a>
|
||||
<p><b>{title}</b></p>
|
||||
<table border="0" bgcolor="#e8e8e8" width="100%" cellpadding="4"{role? class="{role}"}><tr><td>
|
||||
<pre><code>
|
||||
|
|
||||
</code></pre>
|
||||
</td></tr></table>
|
||||
|
||||
[literalblock]
|
||||
<a name="{id}"></a>
|
||||
<p><b>{title}</b></p>
|
||||
<pre{role? class="{role}"}><code>
|
||||
|
|
||||
</code></pre>
|
||||
|
||||
[sidebarblock]
|
||||
<a name="{id}"></a>
|
||||
<table frame="border" bgcolor="#ffffee" width="100%" cellpadding="4"{role? class="{role}"}>
|
||||
<tr><td>
|
||||
<p><em>{title}</em></p>
|
||||
|
|
||||
</td></tr></table>
|
||||
|
||||
[openblock]
|
||||
<div{id? id="{id}"}{role? class="{role}"}>
|
||||
<p><b>{title}</b></p>
|
||||
|
|
||||
</div>
|
||||
|
||||
[partintroblock]
|
||||
template::[openblock]
|
||||
|
||||
[abstractblock]
|
||||
template::[quoteblock]
|
||||
|
||||
[quoteblock]
|
||||
<a name="{id}"></a>
|
||||
<blockquote{role? class="{role}"}>
|
||||
<p><b>{title}</b></p>
|
||||
|
|
||||
<p align="right">
|
||||
<em>{citetitle}</em>{attribution?<br>}
|
||||
— {attribution}
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
[verseblock]
|
||||
<a name="{id}"></a>
|
||||
<blockquote{role? class="{role}"}>
|
||||
<p><b>{title}</b></p>
|
||||
# Font inheritance broken in IE6.
|
||||
<pre style="font-family: inherit;">
|
||||
|
|
||||
</pre>
|
||||
<p align="left">
|
||||
<em>{citetitle}</em>{attribution?<br>}
|
||||
— {attribution}
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
[exampleblock]
|
||||
<a name="{id}"></a>
|
||||
<table frame="void" width="100%" cellpadding="4"{role? class="{role}"}>
|
||||
<tr><td style="border-left: 2px solid silver;">
|
||||
|
|
||||
</td></tr></table>
|
||||
<p><b>{caption={example-caption} {counter:example-number}. }</b>{title}</p>
|
||||
|
||||
[admonitionblock]
|
||||
<a name="{id}"></a>
|
||||
<table frame="void" cellpadding="4"{role? class="{role}"}>
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
|
||||
{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
|
||||
{data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}">
|
||||
{icons%}<p><b><u>{caption}</u></b></p>
|
||||
</td>
|
||||
<td style="border-left: 1px solid silver;">
|
||||
<p><b>{title}</b></p>
|
||||
|
|
||||
</td></tr></table>
|
||||
|
||||
[mathblock]
|
||||
# Here to suppress missing block warning (html4 does not include math
|
||||
# JavaScripts).
|
||||
<a name="{id}"></a>
|
||||
<p><b>{title}</b></p>
|
||||
<div{role? class="{role}"}>
|
||||
|
|
||||
</div>
|
||||
|
||||
# Tables.
|
||||
[tabletags-default]
|
||||
bodyrow=<tr>|</tr>
|
||||
headdata=<th {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}">|</th>
|
||||
footdata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}"{autowidth-option! width="{colpcwidth}%"} style="font-weight:bold" valign="{valign}">|</td>
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}">|</td>
|
||||
paragraph=<p>|</p>
|
||||
|
||||
[tabletags-header]
|
||||
paragraph=<p><strong>|</strong></p>
|
||||
|
||||
[tabletags-emphasis]
|
||||
paragraph=<p><em>|</em></p>
|
||||
|
||||
[tabletags-strong]
|
||||
paragraph=<p><strong>|</strong></p>
|
||||
|
||||
[tabletags-monospaced]
|
||||
paragraph=<p><code>|</code></p>
|
||||
|
||||
[tabletags-verse]
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}"><pre style="font-family: inherit;">|</pre></td>
|
||||
paragraph=
|
||||
|
||||
[tabletags-literal]
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}"><pre><code>|</code></pre></td>
|
||||
paragraph=
|
||||
|
||||
[tabletags-asciidoc]
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}"{autowidth-option! width="{colpcwidth}%"} valign="{valign}"><div>|</div></td>
|
||||
paragraph=
|
||||
|
||||
[table]
|
||||
<div{align? align="{align}"}{role? class="{role}"}>
|
||||
<a name="{id}"></a>
|
||||
<table rules="{grid=all}"
|
||||
style="float:{float};"
|
||||
{autowidth-option%}width="{tablepcwidth}%"
|
||||
{autowidth-option#}{width#width="{tablepcwidth}%"}
|
||||
frame="{frame%border}"
|
||||
frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
|
||||
cellspacing="0" cellpadding="4">
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody>
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</table>
|
||||
<p><b>{caption={table-caption} {counter:table-number}. }</b>{title}</p>
|
||||
</div>
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Deprecated old table definitions.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
# Screen width in pixels.
|
||||
pagewidth=800
|
||||
pageunits=
|
||||
|
||||
[old_tabledef-default]
|
||||
template=old_table
|
||||
bodyrow=<tr>|</tr>
|
||||
headdata=<th align="{colalign}" width="{colwidth}{pageunits}">|</th>
|
||||
footdata=<td align="{colalign}" width="{colwidth}{pageunits}"><strong>|</strong></td>
|
||||
bodydata=<td align="{colalign}" width="{colwidth}{pageunits}" valign="top">|</td>
|
||||
|
||||
[old_table]
|
||||
<p><b>{caption={table-caption}}</b>{title}</p>
|
||||
<a name="{id}"></a>
|
||||
<table rules="{grid=none}"
|
||||
frame="{frame%hsides}"
|
||||
frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
|
||||
cellspacing="0" cellpadding="4">
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody>
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
# End of deprecated old table definitions.
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
[floatingtitle]
|
||||
<h{level@1:2}{level@2:3}{level@3:4}{level@4:5}>{id?<a name="{id}"></a>}{title}</h{level@1:2}{level@2:3}{level@3:4}{level@4:5}>
|
||||
|
||||
[preamble]
|
||||
# Untitled elements between header and first section title.
|
||||
<a name="preamble"></a>
|
||||
|
|
||||
|
||||
[sect0]
|
||||
{doctype-manpage%}{hr}
|
||||
<h1>{id?<a name="{id}"></a>}{title}</h1>
|
||||
|
|
||||
|
||||
[sect1]
|
||||
{doctype-manpage%}{hr}
|
||||
<h2{role? class="{role}"}>{id?<a name="{id}"></a>}{numbered?{sectnum} }{title}</h2>
|
||||
|
|
||||
|
||||
[sect2]
|
||||
<h3{role? class="{role}"}>{id?<a name="{id}"></a>}{numbered?{sectnum} }{title}</h3>
|
||||
|
|
||||
|
||||
[sect3]
|
||||
<h4{role? class="{role}"}>{id?<a name="{id}"></a>}{numbered?{sectnum} }{title}</h4>
|
||||
|
|
||||
|
||||
[sect4]
|
||||
<h5{role? class="{role}"}>{id?<a name="{id}"></a>}{title}</h5>
|
||||
|
|
||||
|
||||
[appendix]
|
||||
{hr}
|
||||
<h2{role? class="{role}"}>{id?<a name="{id}"></a>}{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
|
||||
|
|
||||
|
||||
[footer]
|
||||
# Removing footer date and version if footer-style set to none
|
||||
ifeval::["{footer-style=default}"!="none"]
|
||||
<p></p>
|
||||
<p></p>
|
||||
<hr><p><small>
|
||||
template::[footer-text]
|
||||
</small></p>
|
||||
endif::[]
|
||||
</body>
|
||||
</html>
|
||||
|
||||
[header-declarations]
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
|
||||
<meta name="generator" content="AsciiDoc {asciidoc-version}">
|
||||
<meta name="description" content="{description}">
|
||||
<meta name="keywords" content="{keywords}">
|
||||
<title>{title}</title>
|
||||
{title%}<title>{doctitle=}</title>
|
||||
{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
|
||||
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
|
||||
template::[docinfo]
|
||||
</head>
|
||||
|
||||
[footer-date]
|
||||
# Default footer date is document modification time
|
||||
ifeval::["{footer-style=default}"!="revdate"]
|
||||
{docdate} {doctime}
|
||||
endif::[]
|
||||
# If set to "revdate", it'll be set to the revision date
|
||||
ifeval::["{footer-style=default}"=="revdate"]
|
||||
{revdate}
|
||||
endif::[]
|
||||
|
||||
#--------------------------------
|
||||
# article and book document types
|
||||
#--------------------------------
|
||||
ifndef::doctype-manpage[]
|
||||
|
||||
[header]
|
||||
template::[header-declarations]
|
||||
<body>
|
||||
{notitle%}<h1>{doctitle}</h1>
|
||||
{doctitle#}<p>
|
||||
{doctitle#}<strong>{author}</strong><br>
|
||||
{doctitle#}<code><<a href="mailto:{email}">{email}</a>></code><br>
|
||||
{doctitle#}version {revnumber}{revdate?,}
|
||||
{doctitle#}{revdate}
|
||||
{doctitle#}<br>{revremark}
|
||||
{doctitle#}</p>
|
||||
|
||||
endif::doctype-manpage[]
|
||||
|
||||
#-------------------------
|
||||
# manpage document type
|
||||
#-------------------------
|
||||
ifdef::doctype-manpage[]
|
||||
|
||||
[tags]
|
||||
# This is more inline with man page convention.
|
||||
emphasis=<b>|</b>
|
||||
vlistterm=<dt><b>|</b></dt>
|
||||
|
||||
[header]
|
||||
template::[header-declarations]
|
||||
<body>
|
||||
{hr}
|
||||
<h1>
|
||||
{doctitle} Manual Page
|
||||
</h1>
|
||||
{hr}
|
||||
|
||||
[name]
|
||||
<h2>{manname-title}</h2>
|
||||
<p>{manname} -
|
||||
{manpurpose}
|
||||
</p>
|
||||
|
||||
[synopsis]
|
||||
template::[sect1]
|
||||
|
||||
endif::doctype-manpage[]
|
||||
725
asciidoc/html5.conf
Normal file
725
asciidoc/html5.conf
Normal file
@@ -0,0 +1,725 @@
|
||||
#
|
||||
# html5.conf
|
||||
#
|
||||
# Asciidoc configuration file.
|
||||
# html5 backend.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
outfilesuffix=.html
|
||||
|
||||
[attributes]
|
||||
basebackend=html
|
||||
basebackend-html=
|
||||
basebackend-html5=
|
||||
|
||||
[replacements2]
|
||||
# Line break.
|
||||
(?m)^(.*)\s\+$=\1<br>
|
||||
|
||||
[replacements]
|
||||
ifdef::asciidoc7compatible[]
|
||||
# Superscripts.
|
||||
\^(.+?)\^=<sup>\1</sup>
|
||||
# Subscripts.
|
||||
~(.+?)~=<sub>\1</sub>
|
||||
endif::asciidoc7compatible[]
|
||||
|
||||
[ruler-blockmacro]
|
||||
<hr>
|
||||
|
||||
[pagebreak-blockmacro]
|
||||
<div style="page-break-after:always"></div>
|
||||
|
||||
[blockdef-pass]
|
||||
asciimath-style=template="asciimathblock",subs=()
|
||||
latexmath-style=template="latexmathblock",subs=(),posattrs=(),filter="unwraplatex.py"
|
||||
|
||||
[macros]
|
||||
^(?P<name>audio|video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
|
||||
# math macros.
|
||||
# Special characters are escaped in HTML math markup.
|
||||
(?su)[\\]?(?P<name>asciimath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[specialcharacters]
|
||||
^(?P<name>asciimath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[specialcharacters]
|
||||
(?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?:\$\s*)?(?P<passtext>.*?)(?:\s*\$)?(?<!\\)\]=[specialcharacters]
|
||||
^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?:\\\[\s*)?(?P<passtext>.*?)(?:\s*\\\])?\])$=#[specialcharacters]
|
||||
|
||||
[asciimath-inlinemacro]
|
||||
`{passtext}`
|
||||
|
||||
[asciimath-blockmacro]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
`{passtext}`
|
||||
</div></div>
|
||||
|
||||
[asciimathblock]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
`|`
|
||||
</div></div>
|
||||
|
||||
[latexmath-inlinemacro]
|
||||
${passtext}$
|
||||
|
||||
[latexmath-blockmacro]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
{backslash}[{passtext}{backslash}]
|
||||
</div></div>
|
||||
|
||||
[latexmathblock]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
\[|\]
|
||||
</div></div>
|
||||
|
||||
[image-inlinemacro]
|
||||
<span class="image{role? {role}}">
|
||||
<a class="image" href="{link}">
|
||||
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}>
|
||||
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}
|
||||
{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
|
||||
{link#}</a>
|
||||
</span>
|
||||
|
||||
[image-blockmacro]
|
||||
<div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
|
||||
<div class="content">
|
||||
<a class="image" href="{link}">
|
||||
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
|
||||
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}
|
||||
{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
|
||||
{link#}</a>
|
||||
</div>
|
||||
<div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
|
||||
</div>
|
||||
|
||||
[audio-blockmacro]
|
||||
<div class="audioblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{caption=}{title}</div>
|
||||
<div class="content">
|
||||
<audio src="{imagesdir=}{imagesdir?/}{target}"{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
|
||||
Your browser does not support the audio tag.
|
||||
</audio>
|
||||
</div></div>
|
||||
|
||||
[video-blockmacro]
|
||||
<div class="videoblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{caption=}{title}</div>
|
||||
<div class="content">
|
||||
<video src="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? height="{height}"}{poster? poster="{poster}"}{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
</div></div>
|
||||
|
||||
[unfloat-blockmacro]
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
[toc-blockmacro]
|
||||
template::[toc]
|
||||
|
||||
[indexterm-inlinemacro]
|
||||
# Index term.
|
||||
{empty}
|
||||
|
||||
[indexterm2-inlinemacro]
|
||||
# Index term.
|
||||
# Single entry index term that is visible in the primary text flow.
|
||||
{1}
|
||||
|
||||
[footnote-inlinemacro]
|
||||
# footnote:[<text>].
|
||||
<span class="footnote"><br>[{0}]<br></span>
|
||||
|
||||
[footnoteref-inlinemacro]
|
||||
# footnoteref:[<id>], create reference to footnote.
|
||||
{2%}<span class="footnoteref"><br><a href="#_footnote_{1}">[{1}]</a><br></span>
|
||||
# footnoteref:[<id>,<text>], create footnote with ID.
|
||||
{2#}<span class="footnote" id="_footnote_{1}"><br>[{2}]<br></span>
|
||||
|
||||
[callout-inlinemacro]
|
||||
ifndef::icons[]
|
||||
<b><{index}></b>
|
||||
endif::icons[]
|
||||
ifdef::icons[]
|
||||
ifndef::data-uri[]
|
||||
<img src="{icon={iconsdir}/callouts/{index}.png}" alt="{index}">
|
||||
endif::data-uri[]
|
||||
ifdef::data-uri[]
|
||||
<img alt="{index}" src="data:image/png;base64,
|
||||
{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{index}.png}")}"}">
|
||||
endif::data-uri[]
|
||||
endif::icons[]
|
||||
|
||||
# Comment line macros.
|
||||
[comment-inlinemacro]
|
||||
{showcomments#}<br><span class="comment">{passtext}</span><br>
|
||||
|
||||
[comment-blockmacro]
|
||||
{showcomments#}<p><span class="comment">{passtext}</span></p>
|
||||
|
||||
[literal-inlinemacro]
|
||||
# Inline literal.
|
||||
<span class="monospaced">{passtext}</span>
|
||||
|
||||
# List tags.
|
||||
[listtags-bulleted]
|
||||
list=<div class="ulist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-numbered]
|
||||
# The start attribute is not valid XHTML 1.1 but all browsers support it.
|
||||
list=<div class="olist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol class="{style}"{start? start="{start}"}>|</ol></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-labeled]
|
||||
list=<div class="dlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|
||||
entry=
|
||||
label=
|
||||
term=<dt class="hdlist1{strong-option? strong}">|</dt>
|
||||
item=<dd>|</dd>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-horizontal]
|
||||
list=<div class="hdlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>{labelwidth?<col width="{labelwidth}%">}{itemwidth?<col width="{itemwidth}%">}|</table></div>
|
||||
label=<td class="hdlist1{strong-option? strong}">|</td>
|
||||
term=|<br>
|
||||
entry=<tr>|</tr>
|
||||
item=<td class="hdlist2">|</td>
|
||||
text=<p style="margin-top: 0;">|</p>
|
||||
|
||||
[listtags-qanda]
|
||||
list=<div class="qlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
|
||||
entry=<li>|</li>
|
||||
label=
|
||||
term=<p><em>|</em></p>
|
||||
item=
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-callout]
|
||||
ifndef::icons[]
|
||||
list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
endif::icons[]
|
||||
ifdef::icons[]
|
||||
list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div>
|
||||
ifndef::data-uri[]
|
||||
item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}"></td><td>|</td></tr>
|
||||
endif::data-uri[]
|
||||
ifdef::data-uri[]
|
||||
item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{listindex}.png}")}"}"></td><td>|</td></tr>
|
||||
endif::data-uri[]
|
||||
text=|
|
||||
endif::icons[]
|
||||
|
||||
[listtags-glossary]
|
||||
list=<div class="dlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|
||||
label=
|
||||
entry=
|
||||
term=<dt>|</dt>
|
||||
item=<dd>|</dd>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-bibliography]
|
||||
list=<div class="ulist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[tags]
|
||||
# Quoted text.
|
||||
emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em>
|
||||
strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong>
|
||||
monospaced=<span class="monospaced{1? {1}}">|</span>
|
||||
singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo}
|
||||
doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo}
|
||||
unquoted={1?<span class="{1}">}|{1?</span>}
|
||||
superscript=<sup>{1?<span class="{1}">}|{1?</span>}</sup>
|
||||
subscript=<sub>{1?<span class="{1}">}|{1?</span>}</sub>
|
||||
|
||||
ifdef::deprecated-quotes[]
|
||||
# Override with deprecated quote attributes.
|
||||
emphasis={role?<span class="{role}">}<em{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</em>{role?</span>}
|
||||
strong={role?<span class="{role}">}<strong{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</strong>{role?</span>}
|
||||
monospaced=<span class="monospaced{role? {role}}"{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</span>
|
||||
singlequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8216;|{amp}#8217;{1,2,3?</span>}{role?</span>}
|
||||
doublequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8220;|{amp}#8221;{1,2,3?</span>}{role?</span>}
|
||||
unquoted={role?<span class="{role}">}{1,2,3?<span style="{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}">}|{1,2,3?</span>}{role?</span>}
|
||||
superscript={role?<span class="{role}">}<sup{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sup>{role?</span>}
|
||||
subscript={role?<span class="{role}">}<sub{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sub>{role?</span>}
|
||||
endif::deprecated-quotes[]
|
||||
|
||||
# Inline macros
|
||||
[http-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[https-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[ftp-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[file-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[irc-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[mailto-inlinemacro]
|
||||
<a href="mailto:{target}">{0={target}}</a>
|
||||
[link-inlinemacro]
|
||||
<a href="{target}">{0={target}}</a>
|
||||
[callto-inlinemacro]
|
||||
<a href="{name}:{target}">{0={target}}</a>
|
||||
# anchor:id[text]
|
||||
[anchor-inlinemacro]
|
||||
<a id="{target}"></a>
|
||||
# [[id,text]]
|
||||
[anchor2-inlinemacro]
|
||||
<a id="{1}"></a>
|
||||
# [[[id]]]
|
||||
[anchor3-inlinemacro]
|
||||
<a id="{1}"></a>[{1}]
|
||||
# xref:id[text]
|
||||
[xref-inlinemacro]
|
||||
<a href="#{target}">{0=[{target}]}</a>
|
||||
# <<id,text>>
|
||||
[xref2-inlinemacro]
|
||||
<a href="#{1}">{2=[{1}]}</a>
|
||||
|
||||
# Special word substitution.
|
||||
[emphasizedwords]
|
||||
<em>{words}</em>
|
||||
[monospacedwords]
|
||||
<span class="monospaced">{words}</span>
|
||||
[strongwords]
|
||||
<strong>{words}</strong>
|
||||
|
||||
# Paragraph substitution.
|
||||
[paragraph]
|
||||
<div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
|
||||
|
|
||||
</p></div>
|
||||
|
||||
[admonitionparagraph]
|
||||
template::[admonitionblock]
|
||||
|
||||
# Delimited blocks.
|
||||
[listingblock]
|
||||
<div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{caption=}{title}</div>
|
||||
<div class="content monospaced">
|
||||
<pre>
|
||||
|
|
||||
</pre>
|
||||
</div></div>
|
||||
|
||||
[literalblock]
|
||||
<div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="content monospaced">
|
||||
<pre>
|
||||
|
|
||||
</pre>
|
||||
</div></div>
|
||||
|
||||
[sidebarblock]
|
||||
<div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[openblock]
|
||||
<div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="content">
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[partintroblock]
|
||||
template::[openblock]
|
||||
|
||||
[abstractblock]
|
||||
template::[quoteblock]
|
||||
|
||||
[quoteblock]
|
||||
<div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="content">
|
||||
|
|
||||
</div>
|
||||
<div class="attribution">
|
||||
<em>{citetitle}</em>{attribution?<br>}
|
||||
— {attribution}
|
||||
</div></div>
|
||||
|
||||
[verseblock]
|
||||
<div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<pre class="content">
|
||||
|
|
||||
</pre>
|
||||
<div class="attribution">
|
||||
<em>{citetitle}</em>{attribution?<br>}
|
||||
— {attribution}
|
||||
</div></div>
|
||||
|
||||
[exampleblock]
|
||||
<div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
|
||||
<div class="content">
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[admonitionblock]
|
||||
<div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<table><tr>
|
||||
<td class="icon">
|
||||
{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
|
||||
{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
|
||||
{data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}">
|
||||
{icons%}<div class="title">{caption}</div>
|
||||
</td>
|
||||
<td class="content">
|
||||
<div class="title">{title}</div>
|
||||
|
|
||||
</td>
|
||||
</tr></table>
|
||||
</div>
|
||||
|
||||
# Tables.
|
||||
[tabletags-default]
|
||||
colspec=<col{autowidth-option! style="width:{colpcwidth}%;"}>
|
||||
bodyrow=<tr>|</tr>
|
||||
headdata=<th class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</th>
|
||||
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</td>
|
||||
paragraph=<p class="tableblock">|</p>
|
||||
|
||||
[tabletags-header]
|
||||
paragraph=<p class="tableblock header">|</p>
|
||||
|
||||
[tabletags-emphasis]
|
||||
paragraph=<p class="tableblock"><em>|</em></p>
|
||||
|
||||
[tabletags-strong]
|
||||
paragraph=<p class="tableblock"><strong>|</strong></p>
|
||||
|
||||
[tabletags-monospaced]
|
||||
paragraph=<p class="tableblock monospaced">|</p>
|
||||
|
||||
[tabletags-verse]
|
||||
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td>
|
||||
paragraph=
|
||||
|
||||
[tabletags-literal]
|
||||
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="literal monospaced"><pre>|</pre></div></td>
|
||||
paragraph=
|
||||
|
||||
[tabletags-asciidoc]
|
||||
bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div>|</div></td>
|
||||
paragraph=
|
||||
|
||||
[table]
|
||||
<table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
|
||||
style="
|
||||
margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
|
||||
float:{float};
|
||||
{autowidth-option%}width:{tablepcwidth}%;
|
||||
{autowidth-option#}{width#style=width:{tablepcwidth}%;}
|
||||
">
|
||||
<caption class="title">{caption={table-caption} {counter:table-number}. }{title}</caption>
|
||||
{colspecs}
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody>
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Deprecated old table definitions.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
# Screen width in pixels.
|
||||
pagewidth=800
|
||||
pageunits=px
|
||||
|
||||
[old_tabledef-default]
|
||||
template=old_table
|
||||
colspec=<col style="width:{colwidth}{pageunits};" />
|
||||
bodyrow=<tr>|</tr>
|
||||
headdata=<th class="tableblock halign-{colalign=left}">|</th>
|
||||
footdata=<td class="tableblock halign-{colalign=left}">|</td>
|
||||
bodydata=<td class="tableblock halign-{colalign=left}">|</td>
|
||||
|
||||
[old_table]
|
||||
<table class="tableblock frame-{frame=all} grid-{grid=all}"{id? id="{id}"}>
|
||||
<caption class="title">{caption={table-caption}}{title}</caption>
|
||||
{colspecs}
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody style="vertical-align:top;">
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
# End of deprecated old table definitions.
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
[floatingtitle]
|
||||
<h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}{id? id="{id}"} class="float">{title}</h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}>
|
||||
|
||||
[preamble]
|
||||
# Untitled elements between header and first section title.
|
||||
<div id="preamble">
|
||||
<div class="sectionbody">
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
# Document sections.
|
||||
[sect0]
|
||||
<h1{id? id="{id}"}>{title}</h1>
|
||||
|
|
||||
|
||||
[sect1]
|
||||
<div class="sect1{style? {style}}{role? {role}}">
|
||||
<h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
|
||||
<div class="sectionbody">
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[sect2]
|
||||
<div class="sect2{style? {style}}{role? {role}}">
|
||||
<h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3>
|
||||
|
|
||||
</div>
|
||||
|
||||
[sect3]
|
||||
<div class="sect3{style? {style}}{role? {role}}">
|
||||
<h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4>
|
||||
|
|
||||
</div>
|
||||
|
||||
[sect4]
|
||||
<div class="sect4{style? {style}}{role? {role}}">
|
||||
<h5{id? id="{id}"}>{title}</h5>
|
||||
|
|
||||
</div>
|
||||
|
||||
[appendix]
|
||||
<div class="sect1{style? {style}}{role? {role}}">
|
||||
<h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
|
||||
<div class="sectionbody">
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[toc]
|
||||
<div id="toc">
|
||||
<div id="toctitle">{toc-title}</div>
|
||||
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
|
||||
</div>
|
||||
|
||||
[header]
|
||||
<!DOCTYPE html>
|
||||
<html lang="{lang=en}">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
|
||||
<meta name="generator" content="AsciiDoc {asciidoc-version}">
|
||||
<meta name="description" content="{description}">
|
||||
<meta name="keywords" content="{keywords}">
|
||||
<title>{title}</title>
|
||||
{title%}<title>{doctitle=}</title>
|
||||
ifdef::linkcss[]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
|
||||
ifeval::["{source-highlighter}"=="pygments"]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
|
||||
endif::[]
|
||||
|
||||
# DEPRECATED: 'pygments' attribute.
|
||||
ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
|
||||
|
||||
ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<style type="text/css">
|
||||
include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
|
||||
include1::{themedir}/{theme}.css[]
|
||||
ifeval::["{source-highlighter}"=="pygments"]
|
||||
include1::{stylesdir=./stylesheets}/pygments.css[]
|
||||
endif::[]
|
||||
|
||||
# DEPRECATED: 'pygments' attribute.
|
||||
ifdef::pygments[]
|
||||
include1::{stylesdir=./stylesheets}/pygments.css[]
|
||||
endif::pygments[]
|
||||
|
||||
ifdef::toc2[]
|
||||
include1::{stylesdir=./stylesheets}/toc2.css[]
|
||||
endif::toc2[]
|
||||
include1::{stylesheet}[]
|
||||
</style>
|
||||
endif::linkcss[]
|
||||
ifndef::disable-javascript[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
|
||||
<script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
|
||||
<script type="text/javascript">
|
||||
#TODO: Escape not necessary in HTML5?
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
asciidoc.install({toc,toc2?{toclevels}});
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/asciidoc.js[]
|
||||
include1::{themedir}/{theme}.js[warnings=False]
|
||||
asciidoc.install({toc,toc2?{toclevels}});
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::disable-javascript[]
|
||||
ifdef::asciimath[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/ASCIIMathML.js[]
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::asciimath[]
|
||||
ifdef::latexmath[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/LaTeXMathML.js[]
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::latexmath[]
|
||||
ifdef::mathjax[]
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js"],
|
||||
jax: ["input/TeX", "output/HTML-CSS"],
|
||||
tex2jax: {
|
||||
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
||||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
|
||||
processEscapes: true
|
||||
},
|
||||
"HTML-CSS": { availableFonts: ["TeX"] }
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
||||
endif::mathjax[]
|
||||
{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
|
||||
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
|
||||
template::[docinfo]
|
||||
</head>
|
||||
<body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
|
||||
# Article, book header.
|
||||
ifndef::doctype-manpage[]
|
||||
<div id="header">
|
||||
ifndef::notitle[<h1>{doctitle}</h1>]
|
||||
ifdef::doctitle[]
|
||||
<span id="author">{author}</span><br>
|
||||
<span id="email" class="monospaced"><<a href="mailto:{email}">{email}</a>></span><br>
|
||||
<span id="revnumber">version {revnumber}{revdate?,}</span>
|
||||
<span id="revdate">{revdate}</span>
|
||||
<br><span id="revremark">{revremark}</span>
|
||||
endif::doctitle[]
|
||||
{toc,toc2#}{toc-placement$auto:}{template:toc}
|
||||
</div>
|
||||
endif::doctype-manpage[]
|
||||
# Man page header.
|
||||
ifdef::doctype-manpage[]
|
||||
<div id="header">
|
||||
<h1>
|
||||
{doctitle} Manual Page
|
||||
</h1>
|
||||
{toc,toc2#}{toc-placement$auto:}{template:toc}
|
||||
<h2>{manname-title}</h2>
|
||||
<div class="sectionbody">
|
||||
<p>{manname} -
|
||||
{manpurpose}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
endif::doctype-manpage[]
|
||||
<div id="content">
|
||||
|
||||
[footer]
|
||||
</div>
|
||||
{disable-javascript%<div id="footnotes"><hr></div>}
|
||||
<div id="footer">
|
||||
# Removing footer date and version if footer-style set to none
|
||||
ifeval::["{footer-style=default}"!="none"]
|
||||
<div id="footer-text">
|
||||
template::[footer-text]
|
||||
</div>
|
||||
endif::[]
|
||||
ifdef::badges[]
|
||||
<div id="footer-badges">
|
||||
ifndef::icons[]
|
||||
Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
|
||||
and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
|
||||
endif::icons[]
|
||||
ifdef::icons[]
|
||||
<a href="http://validator.w3.org/check?uri=referer">
|
||||
<img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png"
|
||||
width="30" alt="HTML5 Powered" title="HTML5 Powered">
|
||||
</a>
|
||||
<a href="http://jigsaw.w3.org/css-validator/check/referer">
|
||||
<img style="border:0;width:88px;height:31px"
|
||||
src="http://www.w3.org/Icons/valid-css"
|
||||
alt="Valid CSS!">
|
||||
</a>
|
||||
endif::icons[]
|
||||
</div>
|
||||
endif::badges[]
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
[footer-date]
|
||||
# Default footer date is document modification time
|
||||
ifeval::["{footer-style=default}"!="revdate"]
|
||||
{docdate} {doctime}
|
||||
endif::[]
|
||||
# If set to "revdate", it'll be set to the revision date
|
||||
ifeval::["{footer-style=default}"=="revdate"]
|
||||
{revdate}
|
||||
endif::[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
[synopsis]
|
||||
template::[sect1]
|
||||
endif::doctype-manpage[]
|
||||
|
||||
1
asciidoc/images
Symbolic link
1
asciidoc/images
Symbolic link
@@ -0,0 +1 @@
|
||||
../../usr/share/asciidoc/images
|
||||
1
asciidoc/javascripts
Symbolic link
1
asciidoc/javascripts
Symbolic link
@@ -0,0 +1 @@
|
||||
../../usr/share/asciidoc/javascripts
|
||||
56
asciidoc/lang-cs.conf
Normal file
56
asciidoc/lang-cs.conf
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# AsciiDoc Czech language configuration file.
|
||||
# (C) 2012 Petr Klíma <qaxi@seznam.cz>
|
||||
# License: GNU Free Documentation License, ver. 1.3 or later version, see http://fsf.org/
|
||||
|
||||
[attributes]
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Pozor
|
||||
important-caption=Důležité
|
||||
note-caption=Poznámka
|
||||
tip-caption=Tip
|
||||
warning-caption=Varování
|
||||
figure-caption=Obrázek
|
||||
table-caption=Tabulka
|
||||
example-caption=Příklad
|
||||
toc-title=Obsah
|
||||
appendix-caption=Příloha
|
||||
# Man page NAME section title.
|
||||
manname-title=NAME
|
||||
|
||||
[footer-text]
|
||||
Verze {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Poslední úprava
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Abstrakt$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Tiráž$=colophon
|
||||
^Věnování$=dedication
|
||||
^Předmluva$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index$=index
|
||||
^(Bibliografie|Reference)$=bibliography
|
||||
^Glosář$=glossary
|
||||
^Příloha [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^Přehled$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
62
asciidoc/lang-de.conf
Normal file
62
asciidoc/lang-de.conf
Normal file
@@ -0,0 +1,62 @@
|
||||
#
|
||||
# AsciiDoc German language configuration file.
|
||||
# Originally written by Michael Wild
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Left and right single and double quote characters.
|
||||
lsquo=‚
|
||||
rsquo=‘
|
||||
ldquo=„
|
||||
rdquo=“
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Achtung
|
||||
important-caption=Wichtig
|
||||
note-caption=Anmerkung
|
||||
tip-caption=Tipp
|
||||
warning-caption=Warnung
|
||||
figure-caption=Abbildung
|
||||
table-caption=Tabelle
|
||||
example-caption=Beispiel
|
||||
toc-title=Inhaltsverzeichnis
|
||||
appendix-caption=Anhang
|
||||
# Man page NAME section title.
|
||||
manname-title=NAME
|
||||
|
||||
[footer-text]
|
||||
Version {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Letzte Änderung
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Zusammenfassung$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Kolophon$=colophon
|
||||
^Widmung$=dedication
|
||||
^Vorwort$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Stichwortverzeichnis$=index
|
||||
^Literaturverzeichnis$=bibliography
|
||||
^Glossar$=glossary
|
||||
^Anhang [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^ÜBERSICHT$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
56
asciidoc/lang-el.conf
Normal file
56
asciidoc/lang-el.conf
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# AsciiDoc Greek language configuration file.
|
||||
# Originally written by Michael Dourmousoglou
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Προσοχή
|
||||
important-caption=Σημαντικό
|
||||
note-caption=Σημείωση
|
||||
tip-caption=Υπόδειξη
|
||||
warning-caption=Προειδοποίηση
|
||||
figure-caption=Σχήμα
|
||||
table-caption=Πίνακας
|
||||
example-caption=Παράδειγμα
|
||||
toc-title=Πίνακας περιεχομένων
|
||||
appendix-caption=Παράρτημα
|
||||
# Man page NAME section title.
|
||||
manname-title=ΌΝΟΜΑ
|
||||
|
||||
[footer-text]
|
||||
Έκδοση {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Τελευταία αναθεώρηση
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Περίληψη$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Κολοφώνας$=colophon
|
||||
^Αφιέρωση$=dedication
|
||||
^Πρόλογος$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Ευρετήριο$=index
|
||||
^(Βιβλιογραφία|Αναφορές)$=bibliography
|
||||
^Γλωσσάρι÷$=glossary
|
||||
^Παράρτημα [Α-Ω][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^Σύνοψη$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
55
asciidoc/lang-en.conf
Normal file
55
asciidoc/lang-en.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
# AsciiDoc English language configuration file.
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Caution
|
||||
important-caption=Important
|
||||
note-caption=Note
|
||||
tip-caption=Tip
|
||||
warning-caption=Warning
|
||||
figure-caption=Figure
|
||||
table-caption=Table
|
||||
example-caption=Example
|
||||
toc-title=Table of Contents
|
||||
appendix-caption=Appendix
|
||||
# Man page NAME section title.
|
||||
manname-title=NAME
|
||||
|
||||
[footer-text]
|
||||
Version {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Last updated
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Abstract$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Colophon$=colophon
|
||||
^Dedication$=dedication
|
||||
^Preface$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index$=index
|
||||
^(Bibliography|References)$=bibliography
|
||||
^Glossary$=glossary
|
||||
^Appendix [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^SYNOPSIS$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
58
asciidoc/lang-es.conf
Normal file
58
asciidoc/lang-es.conf
Normal file
@@ -0,0 +1,58 @@
|
||||
#
|
||||
# AsciiDoc Spanish language configuration file.
|
||||
#
|
||||
|
||||
[attributes]
|
||||
#TODO: Left and right single and double quote characters.
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Atención
|
||||
important-caption=Importante
|
||||
note-caption=Nota
|
||||
tip-caption=Sugerencia
|
||||
warning-caption=Aviso
|
||||
figure-caption=Figura
|
||||
table-caption=Tabla
|
||||
example-caption=Ejemplo
|
||||
toc-title=Tabla de contenidos
|
||||
appendix-caption=Apéndice
|
||||
# Man page NAME section title.
|
||||
manname-title=NOMBRE DE REFERENCIA
|
||||
|
||||
[footer-text]
|
||||
#TODO: Translation of 'Version' and 'Last updated'.
|
||||
Version {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Last updated
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Resumen$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Colofón$=colophon
|
||||
^Dedicación$=dedication
|
||||
^Prefacio$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Índice$=index
|
||||
^(Bibliografía|Referencias)$=bibliography
|
||||
^Glosario$=glossary
|
||||
^Apéndice [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^SINOPSIS$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
55
asciidoc/lang-fi.conf
Normal file
55
asciidoc/lang-fi.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
# AsciiDoc Finnish language configuration file.
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Huom
|
||||
important-caption=Tärkeää
|
||||
note-caption=Huomio
|
||||
tip-caption=Vinkki
|
||||
warning-caption=Varoitus
|
||||
figure-caption=Kuvio
|
||||
table-caption=Taulukko
|
||||
example-caption=Esimerkki
|
||||
toc-title=Sisällysluettelo
|
||||
appendix-caption=Liitteet
|
||||
# Man page NAME section title.
|
||||
manname-title=NAME
|
||||
|
||||
[footer-text]
|
||||
Versio {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Viimeksi päivitetty
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Tiivistelmä$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Loppukirjoitus$=colophon
|
||||
^Omistus$=dedication
|
||||
^Esipuhe$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^$Hakemisto=index
|
||||
^(Lähdeluettelo|Lähteet|Viitteet)$=bibliography
|
||||
^Sanasto$=glossary
|
||||
^Liitteet [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^Yhteenveto$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
60
asciidoc/lang-fr.conf
Normal file
60
asciidoc/lang-fr.conf
Normal file
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# AsciiDoc French language configuration file.
|
||||
# Originally written by Yves-Alexis Perez
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Left and right single and double quote characters.
|
||||
ldquo=«
|
||||
rdquo=»
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Avertissement
|
||||
important-caption=Important
|
||||
note-caption=Note
|
||||
tip-caption=Astuce
|
||||
warning-caption=Attention
|
||||
figure-caption=Figure
|
||||
table-caption=Tableau
|
||||
example-caption=Exemple
|
||||
toc-title=Table des matières
|
||||
appendix-caption=Appendice
|
||||
# Man page NAME section title.
|
||||
manname-title=NOM
|
||||
|
||||
[footer-text]
|
||||
Version {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Dernière mise à jour
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Résumé$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Colophon$=colophon
|
||||
^Dédicace$=dedication
|
||||
^Préface$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index$=index
|
||||
^(Bibliographie|Références)$=bibliography
|
||||
^Glossaire$=glossary
|
||||
^Appendice [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^SYNOPSIS$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
58
asciidoc/lang-hu.conf
Normal file
58
asciidoc/lang-hu.conf
Normal file
@@ -0,0 +1,58 @@
|
||||
#
|
||||
# AsciiDoc Hungarian language configuration file.
|
||||
# Originally written by Miklos Vajna
|
||||
#
|
||||
|
||||
[attributes]
|
||||
#TODO: Left and right single and double quote characters.
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Figyelmeztetés
|
||||
important-caption=Fontos
|
||||
note-caption=Megjegyzés
|
||||
tip-caption=Tipp
|
||||
warning-caption=Figyelem
|
||||
figure-caption=Ábra
|
||||
table-caption=Táblázat
|
||||
example-caption=Példa
|
||||
toc-title=Tartalomjegyzék
|
||||
appendix-caption=függelék
|
||||
# Man page NAME section title.
|
||||
manname-title=NÉV
|
||||
|
||||
[footer-text]
|
||||
Verzió {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Utolsó frissítés:
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Kivonat$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Utószó$=colophon
|
||||
^Ajánlás$=dedication
|
||||
^Előszó$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index$=index
|
||||
^(Bibliográfia|Hivatkozások)$=bibliography
|
||||
^Szójegyzék$=glossary
|
||||
^[A-Z] függelék[:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^ÁTTEKINTÉS$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
55
asciidoc/lang-id.conf
Normal file
55
asciidoc/lang-id.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
# AsciiDoc Indonesian language configuration file.
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Perhatian
|
||||
important-caption=Penting
|
||||
note-caption=Catatan
|
||||
tip-caption=Tips
|
||||
warning-caption=Peringatan
|
||||
figure-caption=Gambar
|
||||
table-caption=Tabel
|
||||
example-caption=Contoh
|
||||
toc-title=Daftar Isi
|
||||
appendix-caption=Lampiran
|
||||
# Man page NAME section title.
|
||||
manname-title=NAME
|
||||
|
||||
[footer-text]
|
||||
Versi {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Pembaruan terakhir
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Abstrak$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Colophon$=colophon
|
||||
^Dedikasi$=dedication
|
||||
^Pengantar$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Indeks$=index
|
||||
^(Bibliografi|Referensi|Pustaka)$=bibliography
|
||||
^Glosarium$=glossary
|
||||
^Lampiran [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^SYNOPSIS$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
57
asciidoc/lang-it.conf
Normal file
57
asciidoc/lang-it.conf
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# AsciiDoc Italian language configuration file.
|
||||
#
|
||||
|
||||
[attributes]
|
||||
#TODO: Left and right single and double quote characters.
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Attenzione
|
||||
important-caption=Importante
|
||||
note-caption=Nota
|
||||
tip-caption=Suggerimento
|
||||
warning-caption=Avvertenza
|
||||
figure-caption=Figura
|
||||
table-caption=Tabella
|
||||
example-caption=Esempio
|
||||
toc-title=Indice
|
||||
appendix-caption=Appendice
|
||||
# Man page NAME section title.
|
||||
manname-title=NOME
|
||||
|
||||
[footer-text]
|
||||
Versione {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Ultimo aggiornamento
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Abstract$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Colofone$=colophon
|
||||
^Dedica$=dedication
|
||||
^Prefazione$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index$=index
|
||||
^(Bibliografia|Riferimenti)$=bibliography
|
||||
^Glossario$=glossary
|
||||
^Appendice [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^SINOSSI$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
62
asciidoc/lang-ja.conf
Normal file
62
asciidoc/lang-ja.conf
Normal file
@@ -0,0 +1,62 @@
|
||||
#
|
||||
# AsciiDoc Japanese language configuration file.
|
||||
# Originally written by 渡邊裕貴 (WATANABE Yuki)
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Left and right single and double quote characters.
|
||||
lsquo=「
|
||||
rsquo=」
|
||||
ldquo=『
|
||||
rdquo=』
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=注意
|
||||
important-caption=重要
|
||||
note-caption=注
|
||||
tip-caption=補足
|
||||
warning-caption=警告
|
||||
figure-caption=図
|
||||
table-caption=表
|
||||
example-caption=例
|
||||
toc-title=目次
|
||||
appendix-caption=付録
|
||||
# Man page NAME section title.
|
||||
manname-title=名前
|
||||
|
||||
[footer-text]
|
||||
バージョン {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
template::[footer-date]
|
||||
更新
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^概要$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^奥付け?$=colophon
|
||||
^献辞$=dedication
|
||||
^(前書き?|まえがき)$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^索引$=index
|
||||
^(参考|引用)(書目|文献)$=bibliography
|
||||
^用語集$=glossary
|
||||
^付録 [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
^書式$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
63
asciidoc/lang-nl.conf
Normal file
63
asciidoc/lang-nl.conf
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# AsciiDoc Dutch language configuration file.
|
||||
# Originally written by Dag Wieërs
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Left and right single and double quote characters.
|
||||
lsquo=‚
|
||||
rsquo=‘
|
||||
ldquo=„
|
||||
rdquo=“
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Let op
|
||||
important-caption=Belangrijk
|
||||
note-caption=Opmerking
|
||||
tip-caption=Tip
|
||||
warning-caption=Waarschuwing
|
||||
figure-caption=Figuur
|
||||
table-caption=Tabel
|
||||
example-caption=Voorbeeld
|
||||
toc-title=Inhoudsopgave
|
||||
appendix-caption=Bijlage
|
||||
# Man page NAME section title.
|
||||
manname-title=NAME
|
||||
|
||||
[footer-text]
|
||||
Versie {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Laatst bijgewerkt
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Samenvatting$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Colofon$=colophon
|
||||
^Opdracht$=dedication
|
||||
^Voorwoord$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Register$=index
|
||||
^Literatuurlijst$=bibliography
|
||||
^Woordenlijst$=glossary
|
||||
^Bijlage [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
#TODO: Translation of 'SYNOPSIS'.
|
||||
(?i)^SYNOPSIS$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
56
asciidoc/lang-pl.conf
Normal file
56
asciidoc/lang-pl.conf
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# AsciiDoc Polish language configuration file.
|
||||
# (C) 2015 Kerusey Karyu <keruseykaryu@o2.pl>
|
||||
# License: GNU Free Documentation License, ver. 1.3 or later version, see http://fsf.org/
|
||||
|
||||
[attributes]
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Uwaga
|
||||
important-caption=Ważne
|
||||
note-caption=Zapamiętaj
|
||||
tip-caption=Wskazówka
|
||||
warning-caption=Ostrzeżenie
|
||||
figure-caption=Rysunek
|
||||
table-caption=Tabela
|
||||
example-caption=Przykład
|
||||
toc-title=Spis Treści
|
||||
appendix-caption=Dodatek
|
||||
# Man page NAME section title.
|
||||
manname-title=NAME
|
||||
|
||||
[footer-text]
|
||||
Wersja {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Ostatnio zmodyfikowany
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Streszczenie$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Kolofon$=colophon
|
||||
^Dedykacja$=dedication
|
||||
^Przedmowa$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Indeks$=index
|
||||
^(Bibliografia|Źródła)$=bibliography
|
||||
^Słowniczek$=glossary
|
||||
^Dodatek [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^KONSPEKT$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
58
asciidoc/lang-pt-BR.conf
Normal file
58
asciidoc/lang-pt-BR.conf
Normal file
@@ -0,0 +1,58 @@
|
||||
#
|
||||
# AsciiDoc Portugues language configuration file.
|
||||
# Originally written by Thiago Farina
|
||||
#
|
||||
|
||||
[attributes]
|
||||
#TODO: Left and right single and double quote characters.
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Atenção
|
||||
important-caption=Importante
|
||||
note-caption=Nota
|
||||
tip-caption=Sugestão
|
||||
warning-caption=Aviso
|
||||
figure-caption=Figura
|
||||
table-caption=Tabela
|
||||
example-caption=Exemplo
|
||||
toc-title=Tabela de conteúdos
|
||||
appendix-caption=Apêndice
|
||||
# Man page NAME section title.
|
||||
manname-title=NOME
|
||||
|
||||
[footer-text]
|
||||
Versão {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Última Atualização
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Resumo$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Cólofon$=colophon
|
||||
^Dedicação$=dedication
|
||||
^Prefácio$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Índice$=index
|
||||
^(Bibliografia|Referências)$=bibliography
|
||||
^Glossário$=glossary
|
||||
^Apêndice [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^SINOPSE$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
60
asciidoc/lang-ro.conf
Normal file
60
asciidoc/lang-ro.conf
Normal file
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# AsciiDoc Romanian language configuration file.
|
||||
# Originally written by Vitalie Lazu
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Left and right single and double quote characters.
|
||||
ldquo=„
|
||||
rdquo=”
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Precauție
|
||||
important-caption=Important
|
||||
note-caption=Notă
|
||||
tip-caption=Sfat
|
||||
warning-caption=Anteție
|
||||
figure-caption=Figură
|
||||
table-caption=Tabela
|
||||
example-caption=Exemplu
|
||||
toc-title=Cuprins
|
||||
appendix-caption=Apendix
|
||||
# Man page NAME section title.
|
||||
manname-title=NUME
|
||||
|
||||
[footer-text]
|
||||
Versiunea {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Ultima actualizare
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Adnotație$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Casetă$=colophon
|
||||
^Dedicare$=dedication
|
||||
^Prefață$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index$=index
|
||||
^Bibliografia$=bibliography
|
||||
^Glosar$=glossary
|
||||
^Anexa [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^REZUMAT$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
60
asciidoc/lang-ru.conf
Normal file
60
asciidoc/lang-ru.conf
Normal file
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# AsciiDoc Russian language configuration file.
|
||||
# Originally written by Artem Zolochevskiy
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Left and right single and double quote characters.
|
||||
ldquo=«
|
||||
rdquo=»
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Предостережение
|
||||
important-caption=Важно
|
||||
note-caption=Замечание
|
||||
tip-caption=Подсказка
|
||||
warning-caption=Внимание
|
||||
figure-caption=Рисунок
|
||||
table-caption=Таблица
|
||||
example-caption=Пример
|
||||
toc-title=Содержание
|
||||
appendix-caption=Приложение
|
||||
# Man page NAME section title.
|
||||
manname-title=ИМЯ
|
||||
|
||||
[footer-text]
|
||||
Редакция {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Последнее обновление
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Аннотация$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Колофон$=colophon
|
||||
^Посвящение$=dedication
|
||||
^Введение$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Предметный указатель$=index
|
||||
^Библиография$=bibliography
|
||||
^Словарь терминов$=glossary
|
||||
^Приложение [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^ОБЗОР$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
55
asciidoc/lang-sv.conf
Normal file
55
asciidoc/lang-sv.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
# AsciiDoc Swedish language configuration file.
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Varning
|
||||
important-caption=Viktigt
|
||||
note-caption=Not
|
||||
tip-caption=Tips
|
||||
warning-caption=Varning
|
||||
figure-caption=Figur
|
||||
table-caption=Tabell
|
||||
example-caption=Exempel
|
||||
toc-title=Innehållsförteckning
|
||||
appendix-caption=Appendix
|
||||
# Man page NAME section title.
|
||||
manname-title=NAMN
|
||||
|
||||
[footer-text]
|
||||
Version {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Senast uppdaterad
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Sammanfattning$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Kolofon$=colophon
|
||||
^Dedikation$=dedication
|
||||
^Förord$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index|Sakregister$=index
|
||||
^(Litteraturförteckning|Referenser)$=bibliography
|
||||
^Ordlista|Ordförteckning$=glossary
|
||||
^Appendix [A-Z][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^SYNOPS|ÖVERSIKT$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
60
asciidoc/lang-uk.conf
Normal file
60
asciidoc/lang-uk.conf
Normal file
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# AsciiDoc Ukrainian language configuration file.
|
||||
# Originally written by Oleksandr Lavrushchenko
|
||||
#
|
||||
|
||||
[attributes]
|
||||
# Left and right single and double quote characters.
|
||||
ldquo=«
|
||||
rdquo=»
|
||||
|
||||
# Captions, used by (X)HTML backends.
|
||||
# Captions on RHS are displayed in outputs.
|
||||
ifdef::basebackend-html[]
|
||||
|
||||
caution-caption=Попередження
|
||||
important-caption=Важливо
|
||||
note-caption=Зауваження
|
||||
tip-caption=Підказка
|
||||
warning-caption=Увага
|
||||
figure-caption=Рисунок
|
||||
table-caption=Таблиця
|
||||
example-caption=Приклад
|
||||
toc-title=Зміст
|
||||
appendix-caption=Додаток
|
||||
# Man page NAME section title.
|
||||
manname-title=НАЗВА
|
||||
|
||||
[footer-text]
|
||||
Версія {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
|
||||
Востаннє оновлено
|
||||
template::[footer-date]
|
||||
|
||||
endif::basebackend-html[]
|
||||
|
||||
|
||||
[specialsections]
|
||||
# DocBook special sections.
|
||||
# The regular expression on LHS is matched against source titles.
|
||||
ifdef::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-article[]
|
||||
^Анотація$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Колофон$=colophon
|
||||
^Присвячення$=dedication
|
||||
^Вступ$=preface
|
||||
endif::doctype-book[]
|
||||
|
||||
^Предметний покажчик$=index
|
||||
^Бібліографія$=bibliography
|
||||
^Словник термінів$=glossary
|
||||
^Додаток [А-Я][:.](?P<title>.*)$=appendix
|
||||
|
||||
endif::basebackend-docbook[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
(?i)^ОГЛЯД$=synopsis
|
||||
endif::doctype-manpage[]
|
||||
700
asciidoc/latex.conf
Normal file
700
asciidoc/latex.conf
Normal file
@@ -0,0 +1,700 @@
|
||||
#
|
||||
# latex.conf
|
||||
#
|
||||
# Asciidoc configuration file.
|
||||
# latex backend, generates LaTeX conformant markup.
|
||||
#
|
||||
# Originally created by Benjamin Klum, later modified by Geoff Eddy.
|
||||
|
||||
[titles]
|
||||
subs=quotes,replacements,attributes,macros,specialcharacters,replacements2
|
||||
|
||||
|
||||
# The listing block uses a LaTeX verbatim environment where special characters don't need to be escaped.
|
||||
# Hence only "callouts" substitution should be applied.
|
||||
[blockdef-listing]
|
||||
subs=callouts
|
||||
|
||||
|
||||
[attributes]
|
||||
basebackend=latex
|
||||
basebackend-latex=
|
||||
|
||||
latex-table-rowlimit=20
|
||||
latex-use-bibliography-environment!
|
||||
latex-indent-paragraphs!
|
||||
latex-recognize-escaped-unicode!
|
||||
latex-use-custom-list-items!
|
||||
latex-use-colored-tables!
|
||||
latex-use-running-title-headings!
|
||||
latex-use-colored-sidebar-blocks!
|
||||
|
||||
[miscellaneous]
|
||||
subsnormal=quotes,specialwords,replacements,attributes,macros,specialcharacters,replacements2
|
||||
#subsnormal=quotes,specialwords,replacements,attributes,macros,passthroughs,specialcharacters,replacements2
|
||||
subsverbatim=callouts,specialcharacters
|
||||
outfilesuffix=.tex
|
||||
# Screen width in pixels.
|
||||
pagewidth=418
|
||||
pageunits=pt
|
||||
|
||||
|
||||
[specialcharacters]
|
||||
{=\{{}
|
||||
}=\}{}
|
||||
\=\textbackslash{}
|
||||
$=\${}
|
||||
<=\textless{}
|
||||
>=\textgreater{}
|
||||
&=\&{}
|
||||
_=\_{}
|
||||
%=\%{}
|
||||
\#=\#{}
|
||||
^=\textasciicircum{}
|
||||
~=\textasciitilde{}
|
||||
|=\textbar{}
|
||||
"=\textquotedbl{}
|
||||
|
||||
|
||||
[macros]
|
||||
# I needed to rewrite some regular expressions because '<' and '>' have not been escaped to '<' and '>'
|
||||
|
||||
# Callout
|
||||
[\\]?<(?P<index>\d+)>=callout
|
||||
|
||||
# Link: <<id,text>>
|
||||
(?su)[\\]?<<(?P<attrlist>[\w"].*?)>>=xref2
|
||||
|
||||
[replacements]
|
||||
|
||||
# Line break.
|
||||
(?m)^(.*)\s\+$=\1 !..backslash..!newline!..braceleft..!!..braceright..!
|
||||
|
||||
# -- Spaced em dashes (entity reference —)
|
||||
(^|[^-\\])--($|[^-])=\1--\2
|
||||
|
||||
|
||||
# (C) Copyright (entity reference ©)
|
||||
(?<!\\)\(C\)=!..backslash..!textcopyright!..braceleft..!!..braceright..!
|
||||
\\\(C\)=(C)
|
||||
|
||||
# (R) registered trade mark (entity reference ®
|
||||
(?<!\\)\(R\)=!..backslash..!textregistered!..braceleft..!!..braceright..!
|
||||
\\\(R\)=(R)
|
||||
|
||||
# (TM) Trademark (entity reference ™)
|
||||
(?<!\\)\(TM\)=!..backslash..!texttrademark!..braceleft..!!..braceright..!
|
||||
\\\(TM\)=(TM)
|
||||
|
||||
# ... Ellipsis (entity reference …)
|
||||
(?<!\\)\.\.\.=!..backslash..!dots!..braceleft..!!..braceright..!
|
||||
\\\.\.\.=...
|
||||
|
||||
# Recognize escaped unicode characters
|
||||
# FIXME: these should be uncommented, but then there are encoding
|
||||
# problems.
|
||||
|
||||
#&#([0-9]*);=!..backslash..!unichar!..braceleft..!\1!..braceright..!
|
||||
#&#x([0123456789abcdefABCDEF]*);=!..backslash..!unichar!..braceleft..!{eval:0x\1}!..braceright..!
|
||||
|
||||
# -> right arrow
|
||||
->=!..backslash..!textrightarrow!..braceleft..!!..braceright..!
|
||||
# => right double arrow (have to enter math mode)
|
||||
=>=!..dollar..!!..backslash..!Rightarrow!..braceleft..!!..braceright..!!..dollar..!
|
||||
# <- left arrow
|
||||
<-=!..backslash..!textleftarrow!..braceleft..!!..braceright..!
|
||||
# <= left double arrow (have to enter math mode)
|
||||
<\==!..dollar..!!..backslash..!Leftarrow!..braceleft..!!..braceright..!!..dollar..!
|
||||
# --> long right arrow (have to enter math mode)
|
||||
-->=!..backslash..!textrightarrow!..braceleft..!!..braceright..!
|
||||
# ==> long right double arrow (have to enter math mode)
|
||||
=\=>=!..dollar..!!..backslash..!Rightarrow!..braceleft..!!..braceright..!!..dollar..!
|
||||
# <-- long left arrow (have to enter math mode)
|
||||
<--=!..backslash..!textleftarrow!..braceleft..!!..braceright..!
|
||||
# <== long left double arrow (have to enter math mode)
|
||||
<\=\==!..dollar..!!..backslash..!Leftarrow!..braceleft..!!..braceright..!!..dollar..!
|
||||
# apostrophe
|
||||
(\w)'(\w)=\1'\2
|
||||
|
||||
[quotes]
|
||||
#``|''=
|
||||
#`|'=
|
||||
`=monospaced
|
||||
|
||||
[replacements2]
|
||||
!..braceleft..!={
|
||||
!..braceright..!=}
|
||||
!..backslash..!=\\
|
||||
!..dollar..!=$
|
||||
!..lessthan..!=<
|
||||
!..greaterthan..!=>
|
||||
!..amp..!=&
|
||||
!..underline..!=_
|
||||
!..percent..!=%
|
||||
!..sharp..!=#
|
||||
!..circum..!=^
|
||||
!..tilde..!=~
|
||||
!..bar..!=|
|
||||
!..doublequote..!="
|
||||
|
||||
|
||||
|
||||
# Ruler is interpreted as a page break.
|
||||
[ruler-blockmacro]
|
||||
\clearpage
|
||||
|
||||
[image-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{link}!..braceright..!!..braceleft..!!..percent..!
|
||||
!..backslash..!includegraphics[{scale?scale={scale},}{width?width={width}pt,}{height? height={height}pt}]!..braceleft..!{target}!..braceright..!
|
||||
{link#}!..braceright..!
|
||||
|
||||
|
||||
[image-blockmacro]
|
||||
\begin\{figure\}
|
||||
\hypertarget\{{id}\}\{\}
|
||||
\caption\{{title}\}
|
||||
\href\{{link}\}\{%
|
||||
\includegraphics[{scale?scale={scale},}{width?width={width}pt,}{height? height={height}pt}]\{{target}\}%
|
||||
\label\{{id}\}
|
||||
{link#}\}
|
||||
\end\{figure\}
|
||||
|
||||
[indexterm-inlinemacro]
|
||||
# Inline index term.
|
||||
!..backslash..!index!..braceleft..!{1}{2?!{2}}{3?!{3}}!..braceright..!
|
||||
|
||||
[indexterm2-inlinemacro]
|
||||
# Inline index term.
|
||||
# Single entry index term that is visible in the primary text flow.
|
||||
!..backslash..!index!..braceleft..!{1}!..braceright..!{1}
|
||||
|
||||
[footnote-inlinemacro]
|
||||
# Inline footnote.
|
||||
!..backslash..!footnote!..braceleft..!{0}!..braceright..!
|
||||
|
||||
[footnoteref-inlinemacro]
|
||||
|
||||
|
||||
[callout-inlinemacro]
|
||||
# Inline callout.
|
||||
<{index}>
|
||||
|
||||
[literal-inlinemacro]
|
||||
|
||||
[listtags-bulleted]
|
||||
list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{itemize\}|\end\{itemize\}
|
||||
item=\item%|
|
||||
text=|
|
||||
|
||||
[listtags-numbered]
|
||||
list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
|
||||
item=\item%|
|
||||
text=|
|
||||
|
||||
[listtags-labeled]
|
||||
list={title?\minisec\{{title}\}} \par{id?\label\{{id}\}\hypertarget\{{id}\}\{\}} |
|
||||
item=\begin\{quote\}|\end\{quote\}
|
||||
text=|
|
||||
term=\noindent\textbf\{%|\}
|
||||
entry=
|
||||
label=
|
||||
|
||||
[listtags-horizontal]
|
||||
list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{description\}|\end\{description\}
|
||||
item=
|
||||
text=|
|
||||
term=\item[%|]
|
||||
entry=
|
||||
label=
|
||||
|
||||
[listtags-callout]
|
||||
list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
|
||||
item=\item%|
|
||||
text=|
|
||||
|
||||
[listtags-qanda]
|
||||
list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
|
||||
item=\begin\{quotation\}|\end\{quotation\}
|
||||
text=|
|
||||
term=|
|
||||
entry=\item%|
|
||||
label=
|
||||
|
||||
[listtags-glossary]
|
||||
list={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{enumerate\}|\end\{enumerate\}
|
||||
item=\item%|
|
||||
text=|
|
||||
term=\item%|
|
||||
entry=
|
||||
label=
|
||||
|
||||
[listtags-bibliography]
|
||||
list=biblist={title?\minisec\{{title}\}} {id?\label\{{id}\}\hypertarget\{{id}\}\{\}} \begin\{description\} | \end\{description\}
|
||||
item=|
|
||||
text=|
|
||||
|
||||
|
||||
|
||||
[tags]
|
||||
superscript=!..backslash..!textsuperscript!..braceleft..!|!..braceright..!
|
||||
subscript=!..backslash..!textsubscript!..braceleft..!|!..braceright..!
|
||||
singlequoted=``|''
|
||||
doublequoted=`|'
|
||||
|
||||
|
||||
|
||||
# Quoted text.
|
||||
emphasis=!..backslash..!emph!..braceleft..!|!..braceright..!
|
||||
strong=!..backslash..!textbf!..braceleft..!|!..braceright..!
|
||||
monospaced=!..backslash..!texttt!..braceleft..!|!..braceright..!
|
||||
doublequoted=!..backslash..!{language!textquotedblleft}{language?{language@.german:glqq}}{language?{language@english:textquotedblleft}}!..braceleft..!!..braceright..!|!..backslash..!{language?{language@.german:grqq}}{language?{language@english:textquotedblright}}{language!textquotedblright}!..braceleft..!!..braceright..!
|
||||
unquoted=|
|
||||
|
||||
# $$ inline passthrough.
|
||||
$$passthrough=|
|
||||
|
||||
# Inline macros
|
||||
[http-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
|
||||
[https-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
|
||||
[ftp-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
|
||||
[file-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={name}:{target}}!..braceright..!
|
||||
[mailto-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
|
||||
[callto-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{name}:{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
|
||||
[link-inlinemacro]
|
||||
!..backslash..!href!..braceleft..!{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
|
||||
# anchor:id[text]
|
||||
[anchor-inlinemacro]
|
||||
!..backslash..!label!..braceleft..!{target}!..braceright..!!..backslash..!hypertarget!..braceleft..!{target}!..braceright..!!..braceleft..!{0={target}}!..braceright..!
|
||||
# [[id,text]]
|
||||
[anchor2-inlinemacro]
|
||||
!..backslash..!label!..braceleft..!{1}!..braceright..!!..backslash..!hypertarget!..braceleft..!{1}!..braceright..!!..braceleft..!{2={1}}!..braceright..!
|
||||
# [[[id]]]
|
||||
[anchor3-inlinemacro]
|
||||
{latex-use-bibliography-environment?!..backslash..!bibitem!..braceleft..!{1}!..braceright..!} {latex-use-bibliography-environment!!..backslash..!item[{1}]} !..backslash..!label!..braceleft..!{1}!..braceright..!!..backslash..!hypertarget!..braceleft..!{1}!..braceright..!!..braceleft..!!..braceright..!
|
||||
# xref:id[text]
|
||||
[xref-inlinemacro]
|
||||
{style#}{style$page:!..backslash..!pageref!..braceleft..!{target}!..braceright..!}
|
||||
{style#}{style$autoref:!..backslash..!autoref!..braceleft..!{target}!..braceright..!}
|
||||
{style#}{style$ref:!..backslash..!ref!..braceleft..!{target}!..braceright..!}
|
||||
{style#}{latex-use-bibliography-environment#}{style$cite:!..backslash..!cite!..braceleft..!{target}!..braceright..!}
|
||||
{style#}{latex-use-bibliography-environment%}{style$cite:!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!}
|
||||
{style%}!..backslash..!hyperlink!..braceleft..!{target}!..braceright..!!..braceleft..!{0=[{target}]}!..braceright..!
|
||||
|
||||
# <<id,text>>
|
||||
[xref2-inlinemacro]
|
||||
{3#}{3$page:!..backslash..!pageref!..braceleft..!{1}!..braceright..!}
|
||||
{3#}{3$autoref:!..backslash..!autoref!..braceleft..!{1}!..braceright..!}
|
||||
{3#}{3$ref:!..backslash..!ref!..braceleft..!{1}!..braceright..!}
|
||||
{3#}{latex-use-bibliography-environment#}{3$cite:!..backslash..!cite!..braceleft..!{1}!..braceright..!}
|
||||
{3#}{latex-use-bibliography-environment%}{3$cite:!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!}
|
||||
{3%}!..backslash..!hyperlink!..braceleft..!{1}!..braceright..!!..braceleft..!{2=[{1}]}!..braceright..!
|
||||
|
||||
|
||||
# Special word substitution.
|
||||
[emphasizedwords]
|
||||
!..backslash..!emph!..braceleft..!{words}!..braceright..!
|
||||
[monospacedwords]
|
||||
!..backslash..!texttt!..braceleft..!{words}!..braceright..!
|
||||
[strongwords]
|
||||
!..backslash..!textbf!..braceleft..!{words}!..braceright..!
|
||||
|
||||
|
||||
|
||||
# Paragraph substitution.
|
||||
[paragraph]
|
||||
{title%} \par{latex-indent-paragraphs!\noindent{}}
|
||||
{title#} \paragraph\{{title}\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
|
||||
|
|
||||
|
||||
[literalparagraph]
|
||||
# The literal block employs the same markup.
|
||||
template::[literalblock]
|
||||
|
||||
[verseparagraph]
|
||||
# The verse block employs the same markup.
|
||||
template::[verseblock]
|
||||
|
||||
[admonitionparagraph]
|
||||
# The admonition block employs the same markup.
|
||||
template::[admonitionblock]
|
||||
|
||||
# Delimited blocks.
|
||||
[passthroughblock]
|
||||
|
|
||||
|
||||
# FIXME: we get SPURIOUS TEXT at the beginning, but can't delete it.
|
||||
# Putting "[]" after the \begin{lstlisting} in the LaTeX output works,
|
||||
# but inserting the same "[]" below doesn't.
|
||||
|
||||
[listingblock]
|
||||
\\minisec\{{caption=Listing: }{title}\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{verbatim\}|\end\{verbatim\}
|
||||
|
||||
% FIXXME: dirty hack to circumvent missing \n after verbatim
|
||||
|
||||
[literalblock]
|
||||
\minisec\{{title}\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{alltt\}
|
||||
|
||||
|
|
||||
|
||||
\end\{alltt\}
|
||||
|
||||
[verseblock]
|
||||
\minisec\{{title}\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{alltt\}
|
||||
\normalfont\{\}
|
||||
|
||||
|
|
||||
|
||||
\end\{alltt\}
|
||||
|
||||
[sidebarblock]
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\par\noindent{}
|
||||
ifndef::latex-use-colored-sidebar-blocks[]
|
||||
\setlength\{\tabcolsep\}\{0pt\}
|
||||
\rowcolors\{1\}\{\}\{\}
|
||||
\begin\{tabular\}\{l>\{\columncolor[gray]\{.75\}\}rcl\}
|
||||
\hspace*\{0pt\} &
|
||||
\hspace*\{8pt\} &
|
||||
\hspace*\{16pt\} &
|
||||
\begin\{minipage\}\{4in\}
|
||||
endif::latex-use-colored-sidebar-blocks[]
|
||||
ifdef::latex-use-colored-sidebar-blocks[]
|
||||
\fcolorbox\{SidebarBorderColor\}\{SidebarBackgroundColor\}\{\parbox\{\textwidth\}\{
|
||||
endif::latex-use-colored-sidebar-blocks[]
|
||||
\minisec\{{title}\}
|
||||
|
||||
|
|
||||
|
||||
ifdef::latex-use-colored-sidebar-blocks[]
|
||||
\}
|
||||
\}
|
||||
endif::latex-use-colored-sidebar-blocks[]
|
||||
ifndef::latex-use-colored-sidebar-blocks[]
|
||||
\end\{minipage\}
|
||||
\end\{tabular\}
|
||||
endif::latex-use-colored-sidebar-blocks[]
|
||||
\bigskip
|
||||
|
||||
[quoteblock]
|
||||
\minisec\{{title}\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{quote\}
|
||||
|
||||
|
|
||||
|
||||
\end\{quote\}
|
||||
|
||||
\begin\{flushright\}
|
||||
{citetitle} \\
|
||||
-- {attribution}
|
||||
\end\{flushright\}
|
||||
|
||||
[exampleblock]
|
||||
\minisec\{{caption=}{title}\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{quotation\}
|
||||
|
||||
|
|
||||
|
||||
\end\{quotation\}
|
||||
|
||||
[admonitionblock]
|
||||
\begin\{addmargin*\}[0em]\{0em\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{minipage\}\{\linewidth\}
|
||||
{icons#} \includegraphics\{{icon={iconsdir}/{name}.png}\}
|
||||
{icons%} \minisec\{{caption}\}
|
||||
\rule\{\linewidth\}\{2pt\}
|
||||
\par\{\}\noindent\{\}|\par\{\}\noindent\{\}%
|
||||
\rule[.25\baselineskip]\{\linewidth\}\{2pt\}
|
||||
\end\{minipage\}
|
||||
\end\{addmargin*\}
|
||||
|
||||
# Bibliography list.
|
||||
# Same as numbered list.
|
||||
[listdef-bibliography]
|
||||
listtag=biblist
|
||||
itemtag=biblistitem
|
||||
texttag=biblisttext
|
||||
|
||||
# Glossary list.
|
||||
# Same as labeled list.
|
||||
[listdef-glossary]
|
||||
listtag=vlist
|
||||
itemtag=vlistitem
|
||||
texttag=vlisttext
|
||||
entrytag=vlistentry
|
||||
labeltag=vlistterm
|
||||
|
||||
# Tables.
|
||||
# FIXME: no lines!
|
||||
|
||||
[tabletags-monospaced]
|
||||
|
||||
[tabletags-strong]
|
||||
|
||||
[tabletags-verse]
|
||||
|
||||
[tabletags-literal]
|
||||
|
||||
[tabletags-emphasis]
|
||||
|
||||
[tabletags-asciidoc]
|
||||
|
||||
#[tabledef-default]
|
||||
|
||||
[tabletags-default]
|
||||
#template=table
|
||||
colspec=>\{{colalign@left:\\raggedright}{colalign@center:\\centering}{colalign@right:\\raggedleft}\}p\{ {colwidth}pt \}
|
||||
bodyrow=| \tabularnewline
|
||||
headdata=\{\bfseries\{\}|\} {colnumber@{colcount}::&}
|
||||
footdata=\{\bfseries\{\}|\} {colnumber@{colcount}::&}
|
||||
bodydata=| {colnumber@{colcount}:%:&}
|
||||
paragraph=
|
||||
|
||||
[tabletags-header]
|
||||
|
||||
[table]
|
||||
ifdef::latex-use-colored-tables[]
|
||||
\rowcolors\{1\}\{TableEvenColor\}\{TableOddColor\}
|
||||
\setlength\arrayrulewidth\{1.5pt\}
|
||||
\arrayrulecolor\{TableBorderColor\}
|
||||
endif::latex-use-colored-tables[]
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} \begin\{longtable\}\{
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {colspecs}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|sides:|}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} \}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} \caption\{{title}\}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {headrows#} \endhead
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {footrows#} \endlastfoot
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {bodyrows}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} {frame$all|topbot:\hline}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} \label\{{id}\}
|
||||
{eval:{rowcount}{gt}{latex-table-rowlimit}} \end\{longtable\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {title%} \par{latex-indent-paragraphs!\noindent}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{table\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \begin\{center\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} \hypertarget\{{id}\}\{\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} \caption\{{title}\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} \begin\{tabular\}\{lllllllllllllll
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {colspecs}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|sides:|}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} \}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {headrows}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {bodyrows}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {footrows}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {frame$all|topbot:\hline}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} \end\{tabular\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \end\{center\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} \label\{{id}\}
|
||||
{eval:{rowcount}{lt}={latex-table-rowlimit}} {title#} \end\{table\}
|
||||
|
||||
[specialsections]
|
||||
ifdef::doctype-article[]
|
||||
^Abstract$=abstract
|
||||
endif::doctype-article[]
|
||||
|
||||
ifdef::doctype-book[]
|
||||
^Dedication$=dedication
|
||||
endif::doctype-book[]
|
||||
|
||||
^Index$=index
|
||||
|
||||
ifdef::latex-use-bibliography-environment[]
|
||||
^(Bibliography|References)$=bibliography
|
||||
endif::latex-use-bibliography-environment[]
|
||||
|
||||
^Appendix.*$=appendix
|
||||
^(TOC|Contents)$=toc
|
||||
|
||||
^Figures$=list-of-figures
|
||||
|
||||
# Special sections.
|
||||
|
||||
|
||||
[list-of-figures]
|
||||
\listoffigures
|
||||
|
||||
|
||||
[toc]
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\tableofcontents
|
||||
|
||||
[index]
|
||||
\setindexpreamble\{
|
||||
|
|
||||
\}
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\printindex
|
||||
|
||||
ifdef::latex-use-bibliography-environment[]
|
||||
[bibliography]
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{thebibliography\}\{99\}
|
||||
|
|
||||
\end\{thebibliography\}
|
||||
endif::latex-use-bibliography-environment[]
|
||||
|
||||
[appendix]
|
||||
\appendix
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
|
|
||||
|
||||
[abstract]
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\begin\{abstract\}
|
||||
|
|
||||
|
||||
\end\{abstract\}
|
||||
|
||||
[abstractblock]
|
||||
|
||||
[dedication]
|
||||
\label\{{id}\}\hypertarget\{{id}\}\{\}
|
||||
\dedication\{
|
||||
|
|
||||
\}
|
||||
|
||||
[preamble]
|
||||
# Untitled elements between header and first section title.
|
||||
ifdef::doctype-book[]
|
||||
\frontmatter
|
||||
\chapter*\{Preface\}
|
||||
\label\{preamble\}\hypertarget\{preamble\}\{\}
|
||||
endif::doctype-book[]
|
||||
|
||||
|
||||
|
|
||||
|
||||
ifdef::doctype-book[]
|
||||
\mainmatter
|
||||
endif::doctype-book[]
|
||||
|
||||
# Document sections.
|
||||
[sect0]
|
||||
\hypertarget\{{id}\}\{\}
|
||||
\chapter\{{title}\}
|
||||
\label\{{id}\}
|
||||
|
|
||||
|
||||
[sect1]
|
||||
\hypertarget\{{id}\}\{\}
|
||||
\section\{{title}\}
|
||||
\label\{{id}\}
|
||||
|
||||
[sect2]
|
||||
\hypertarget\{{id}\}\{\}
|
||||
\subsection\{{title}\}
|
||||
\label\{{id}\}
|
||||
|
|
||||
|
||||
[sect3]
|
||||
\hypertarget\{{id}\}\{\}
|
||||
\subsubsection\{{title}\}
|
||||
\label\{{id}\}
|
||||
|
|
||||
|
||||
[sect4]
|
||||
\hypertarget\{{id}\}\{\}
|
||||
\minisec\{{title}\}
|
||||
\label\{{id}\}
|
||||
|
|
||||
|
||||
|
||||
# FIXME: if the "backgroundcolor" entry is present as below, the
|
||||
# background comes out black and is unreadable in PDF, although it is
|
||||
# OK in DVI.
|
||||
# \lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, backgroundcolor=\color\{ListingBackgroundColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
|
||||
|
||||
|
||||
[header]
|
||||
{encoding$UTF-8:}% coding: utf-8
|
||||
\documentclass [a4paper,abstracton,titlepage]\{{doctype@article:scrartcl:scrbook}\}
|
||||
\pagestyle\{{latex-use-running-title-headings?headings}{latex-use-running-title-headings!plain}\}
|
||||
\usepackage\{makeidx\}
|
||||
\usepackage[table]\{xcolor\}
|
||||
\usepackage\{color\}
|
||||
\definecolor\{LinkColor\}\{rgb\}\{0.33,0.42,0.18\}
|
||||
\definecolor\{TableEvenColor\}\{rgb\}\{0.93,1,0.8\}
|
||||
\definecolor\{TableOddColor\}\{rgb\}\{0.93,1,1\}
|
||||
\definecolor\{TableBorderColor\}\{rgb\}\{0.55,0.67,0.73\}
|
||||
\definecolor\{ListingBorderColor\}\{rgb\}\{0.55,0.55,0.55\}
|
||||
\definecolor\{ListingBackgroundColor\}\{rgb\}\{0.95,0.95,0.95\}
|
||||
\definecolor\{SidebarBorderColor\}\{rgb\}\{0.95,0.95,0.95\}
|
||||
\definecolor\{SidebarBackgroundColor\}\{rgb\}\{1,1,0.93\}
|
||||
\usepackage\{type1ec\}
|
||||
\usepackage[{language=english}]\{babel\}
|
||||
\usepackage[
|
||||
pdftex,
|
||||
pdftitle=\{{doctitle}\},
|
||||
pdfauthor=\{{author}\},
|
||||
backref,
|
||||
pagebackref,
|
||||
breaklinks=true,
|
||||
unicode
|
||||
]
|
||||
\{hyperref\}
|
||||
\usepackage\{enumerate\}
|
||||
\usepackage\{graphicx\}
|
||||
\usepackage\{longtable\}
|
||||
\usepackage[T1]\{fontenc\}
|
||||
\usepackage\{ucs\}
|
||||
\usepackage[{encoding@ISO-8859-1:latin1}{encoding@UTF-8:utf8x}{encoding!utf8x}]\{inputenc\}
|
||||
\usepackage\{textcomp\}
|
||||
\usepackage\{alltt\}
|
||||
%\usepackage\{listings\}
|
||||
\usepackage\{verbatim\}
|
||||
\usepackage\{moreverb\}
|
||||
\usepackage\{upquote\}
|
||||
|
||||
%\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
|
||||
|
||||
{latex-indent-paragraphs%} \setlength\{\parskip\}\{1ex plus 0.5ex minus 0.2ex\}
|
||||
|
||||
\makeatletter
|
||||
\DeclareRobustCommand*\textsubscript[1]\{%
|
||||
\@textsubscript\{\selectfont#1\}\}
|
||||
\def\@textsubscript#1\{%
|
||||
\{\m@th\ensuremath\{_\{\mbox\{\fontsize\sf@size\z@#1\}\}\}\}\}
|
||||
\makeatother
|
||||
|
||||
\subject\{{subject}\}
|
||||
\title\{{doctitle}\}
|
||||
\author\{{author}{email?, \href\{mailto:{email}\}\{{email}\}}\}
|
||||
\date\{{revdate}\}
|
||||
\publishers\{\begin\{tabular\}\{ll\} {revision?\textbf\{Revision:\} & {revision} \\ } {keywords?\textbf\{Keywords:\} & {keywords} \\ } \end\{tabular\}\}
|
||||
|
||||
\makeindex
|
||||
|
||||
\begin\{document\}
|
||||
|
||||
%\newcommand{\texttesh}{\textteshlig\/}
|
||||
|
||||
\label\{header\}\hypertarget\{header\}\{\}
|
||||
{doctitle#\maketitle}
|
||||
|
||||
[footer]
|
||||
\label\{footer\}\hypertarget\{footer\}\{\}
|
||||
\end\{document\}
|
||||
150
asciidoc/slidy.conf
Normal file
150
asciidoc/slidy.conf
Normal file
@@ -0,0 +1,150 @@
|
||||
#
|
||||
# Asciidoc Configuration file for slidy HTML generation.
|
||||
#
|
||||
|
||||
include::xhtml11.conf[]
|
||||
|
||||
[literalparagraph]
|
||||
template::[listingblock]
|
||||
|
||||
[openblock]
|
||||
<div class="openblock{incremental? incremental}{role? {role}}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="content">
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[listtags-bulleted]
|
||||
list={title?<div class="title">{title}</div>}<ul{id? id="{id}"} class="{incremental? incremental}{role? {role}}">|</ul>
|
||||
item=<li>|</li>
|
||||
text=<span>|</span>
|
||||
|
||||
[listtags-numbered]
|
||||
# The start attribute is not valid XHTML 1.1 but all browsers support it.
|
||||
list={title?<div class="title">{title}</div>}<ol{id? id="{id}"} class="{style}{incremental? incremental}{role? {role}}"{start? start="{start}"}>|</ol>
|
||||
item=<li>|</li>
|
||||
text=<span>|</span>
|
||||
|
||||
[listtags-labeled]
|
||||
list=<div class="dlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl class="{incremental? incremental}{role? {role}}">|</dl></div>
|
||||
entry=
|
||||
label=
|
||||
term=<dt class="hdlist1{strong-option? strong}">|</dt>
|
||||
item=<dd>|</dd>
|
||||
text=<p>|</p>
|
||||
|
||||
[preamble]
|
||||
# Untitled elements between header and first section title.
|
||||
<div id="preamble" class="slide">
|
||||
<div class="sectionbody"{max-width? style="max-width:{max-width}"}>
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[sect1]
|
||||
<div class="sect1 slide{style? {style}}{role? {role}}">
|
||||
<h1{id? id="{id}"}>{numbered?{sectnum} }{title}</h1>
|
||||
# Set max-width here because Slidy ignores max-width on body.
|
||||
<div class="sectionbody"{max-width? style="max-width:{max-width}"}>
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[appendix]
|
||||
<div class="sect1 slide{style? {style}}{role? {role}}">
|
||||
<h1{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h1>
|
||||
# Set max-width here because Slidy ignores max-width on body.
|
||||
<div class="sectionbody"{max-width? style="max-width:{max-width}"}>
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[header]
|
||||
<?xml version="1.0" encoding="{encoding}"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="{lang=en}" xml:lang="{lang=en}">
|
||||
<head>
|
||||
<title>{doctitle=}</title>
|
||||
<meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
|
||||
ifndef::copyright[<meta name="copyright" content="Copyright © {author}" />]
|
||||
<meta name="copyright" content="Copyright © {copyright}" />
|
||||
<meta name="generator" content="AsciiDoc {asciidoc-version}" />
|
||||
<meta name="duration" content="{duration}" />
|
||||
ifdef::linkcss[]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css" />
|
||||
<link rel="stylesheet" href="{stylesdir=.}/slidy.css" type="text/css" />
|
||||
ifeval::["{source-highlighter}"=="pygments"]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
|
||||
endif::[]
|
||||
|
||||
# DEPRECATED: 'pygments' attribute.
|
||||
ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css" />]
|
||||
|
||||
<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css" />
|
||||
<script src="{scriptsdir=.}/slidy.js" charset="utf-8" type="text/javascript"></script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<style type="text/css">
|
||||
include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
|
||||
include1::{themedir}/{theme}.css[]
|
||||
include1::{stylesdir=./stylesheets}/slidy.css[]
|
||||
ifeval::["{source-highlighter}"=="pygments"]
|
||||
include1::{stylesdir=./stylesheets}/pygments.css[]
|
||||
endif::[]
|
||||
|
||||
# DEPRECATED: 'pygments' attribute.
|
||||
ifdef::pygments[]
|
||||
include1::{stylesdir=./stylesheets}/pygments.css[]
|
||||
endif::pygments[]
|
||||
|
||||
include1::{stylesheet}[]
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/slidy.js[]
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
ifdef::asciimath[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/ASCIIMathML.js[]
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::asciimath[]
|
||||
ifdef::latexmath[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/LaTeXMathML.js[]
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::latexmath[]
|
||||
</head>
|
||||
<body class="{doctype}"{max-width? style="max-width:{max-width}"}>
|
||||
<div id="header" class="slide">
|
||||
ifndef::notitle[<h1>{doctitle}</h1>]
|
||||
ifdef::doctitle[]
|
||||
<span id="author">{author}</span><br />
|
||||
<span id="email"><code><<a href="mailto:{email}">{email}</a>></code></span><br />
|
||||
<span id="revnumber">version {revnumber}{revdate?,}</span>
|
||||
<span id="revdate">{revdate}</span>
|
||||
<br /><span id="revremark">{revremark}</span>
|
||||
endif::doctitle[]
|
||||
</div>
|
||||
|
||||
[footer]
|
||||
</body>
|
||||
</html>
|
||||
1
asciidoc/stylesheets
Symbolic link
1
asciidoc/stylesheets
Symbolic link
@@ -0,0 +1 @@
|
||||
../../usr/share/asciidoc/stylesheets
|
||||
16
asciidoc/text.conf
Normal file
16
asciidoc/text.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
# text.conf
|
||||
# Used by the AsciiDoc a2x(1) toolchain wrapper utility.
|
||||
# Filters to add leading blank line and margin indent to verbatim
|
||||
# block elements so lynx(1) generated text output looks nicer.
|
||||
|
||||
[paradef-default]
|
||||
verse-style=template="verseparagraph",filter="echo; echo; sed 's/^/ /'"
|
||||
|
||||
[paradef-literal]
|
||||
filter=echo; echo; sed 's/^/ /'
|
||||
|
||||
[blockdef-listing]
|
||||
filter=echo; sed 's/^/ /'
|
||||
|
||||
[blockdef-literal]
|
||||
filter=echo; sed 's/^/ /'
|
||||
597
asciidoc/themes/flask/flask.css
Normal file
597
asciidoc/themes/flask/flask.css
Normal file
@@ -0,0 +1,597 @@
|
||||
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
|
||||
|
||||
/* Default font. */
|
||||
body {
|
||||
font-family: Georgia,serif;
|
||||
}
|
||||
|
||||
/* Title font. */
|
||||
h1, h2, h3, h4, h5, h6,
|
||||
div.title, caption.title,
|
||||
thead, p.table.header,
|
||||
#toctitle,
|
||||
#author, #revnumber, #revdate, #revremark,
|
||||
#footer {
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 1em 5% 1em 5%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: blue;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:visited {
|
||||
color: fuchsia;
|
||||
}
|
||||
|
||||
em {
|
||||
font-style: italic;
|
||||
color: navy;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
color: #083194;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: #527bbd;
|
||||
margin-top: 1.2em;
|
||||
margin-bottom: 0.5em;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
border-bottom: 2px solid silver;
|
||||
}
|
||||
h2 {
|
||||
padding-top: 0.5em;
|
||||
}
|
||||
h3 {
|
||||
float: left;
|
||||
}
|
||||
h3 + * {
|
||||
clear: left;
|
||||
}
|
||||
h5 {
|
||||
font-size: 1.0em;
|
||||
}
|
||||
|
||||
div.sectionbody {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 1px solid silver;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
ul, ol, li > p {
|
||||
margin-top: 0;
|
||||
}
|
||||
ul > li { color: #aaa; }
|
||||
ul > li > * { color: black; }
|
||||
|
||||
pre {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#author {
|
||||
color: #527bbd;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
#email {
|
||||
}
|
||||
#revnumber, #revdate, #revremark {
|
||||
}
|
||||
|
||||
#footer {
|
||||
font-size: small;
|
||||
border-top: 2px solid silver;
|
||||
padding-top: 0.5em;
|
||||
margin-top: 4.0em;
|
||||
}
|
||||
#footer-text {
|
||||
float: left;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
#footer-badges {
|
||||
float: right;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
#preamble {
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
div.imageblock, div.exampleblock, div.verseblock,
|
||||
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
|
||||
div.admonitionblock {
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
div.admonitionblock {
|
||||
margin-top: 2.0em;
|
||||
margin-bottom: 2.0em;
|
||||
margin-right: 10%;
|
||||
color: #606060;
|
||||
}
|
||||
|
||||
div.content { /* Block element content. */
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Block element titles. */
|
||||
div.title, caption.title {
|
||||
color: #527bbd;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
div.title + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
td div.title:first-child {
|
||||
margin-top: 0.0em;
|
||||
}
|
||||
div.content div.title:first-child {
|
||||
margin-top: 0.0em;
|
||||
}
|
||||
div.content + div.title {
|
||||
margin-top: 0.0em;
|
||||
}
|
||||
|
||||
div.sidebarblock > div.content {
|
||||
background: #ffffee;
|
||||
border: 1px solid #dddddd;
|
||||
border-left: 4px solid #f0f0f0;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
div.listingblock > div.content {
|
||||
border: 1px solid #dddddd;
|
||||
border-left: 5px solid #f0f0f0;
|
||||
background: #f8f8f8;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
div.quoteblock, div.verseblock {
|
||||
padding-left: 1.0em;
|
||||
margin-left: 1.0em;
|
||||
margin-right: 10%;
|
||||
border-left: 5px solid #f0f0f0;
|
||||
color: #777777;
|
||||
}
|
||||
|
||||
div.quoteblock > div.attribution {
|
||||
padding-top: 0.5em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.verseblock > pre.content {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
div.verseblock > div.attribution {
|
||||
padding-top: 0.75em;
|
||||
text-align: left;
|
||||
}
|
||||
/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
|
||||
div.verseblock + div.attribution {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.admonitionblock .icon {
|
||||
vertical-align: top;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
color: #527bbd;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
div.admonitionblock td.content {
|
||||
padding-left: 0.5em;
|
||||
border-left: 3px solid #dddddd;
|
||||
}
|
||||
|
||||
div.exampleblock > div.content {
|
||||
border-left: 3px solid #dddddd;
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
|
||||
div.imageblock div.content { padding-left: 0; }
|
||||
span.image img { border-style: none; }
|
||||
a.image:visited { color: white; }
|
||||
|
||||
dl {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
dt {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0;
|
||||
font-style: normal;
|
||||
color: navy;
|
||||
}
|
||||
dd > *:first-child {
|
||||
margin-top: 0.1em;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
list-style-position: outside;
|
||||
}
|
||||
ol.arabic {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
ol.loweralpha {
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
ol.upperalpha {
|
||||
list-style-type: upper-alpha;
|
||||
}
|
||||
ol.lowerroman {
|
||||
list-style-type: lower-roman;
|
||||
}
|
||||
ol.upperroman {
|
||||
list-style-type: upper-roman;
|
||||
}
|
||||
|
||||
div.compact ul, div.compact ol,
|
||||
div.compact p, div.compact p,
|
||||
div.compact div, div.compact div {
|
||||
margin-top: 0.1em;
|
||||
margin-bottom: 0.1em;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
font-weight: bold;
|
||||
}
|
||||
td > div.verse {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
div.hdlist {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
div.hdlist tr {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
dt.hdlist1.strong, td.hdlist1.strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
td.hdlist1 {
|
||||
vertical-align: top;
|
||||
font-style: normal;
|
||||
padding-right: 0.8em;
|
||||
color: navy;
|
||||
}
|
||||
td.hdlist2 {
|
||||
vertical-align: top;
|
||||
}
|
||||
div.hdlist.compact tr {
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.comment {
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
.footnote, .footnoteref {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
span.footnote, span.footnoteref {
|
||||
vertical-align: super;
|
||||
}
|
||||
|
||||
#footnotes {
|
||||
margin: 20px 0 20px 0;
|
||||
padding: 7px 0 0 0;
|
||||
}
|
||||
|
||||
#footnotes div.footnote {
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
#footnotes hr {
|
||||
border: none;
|
||||
border-top: 1px solid silver;
|
||||
height: 1px;
|
||||
text-align: left;
|
||||
margin-left: 0;
|
||||
width: 20%;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
div.colist td {
|
||||
padding-right: 0.5em;
|
||||
padding-bottom: 0.3em;
|
||||
vertical-align: top;
|
||||
}
|
||||
div.colist td img {
|
||||
margin-top: 0.3em;
|
||||
}
|
||||
|
||||
@media print {
|
||||
#footer-badges { display: none; }
|
||||
}
|
||||
|
||||
#toc {
|
||||
margin-bottom: 2.5em;
|
||||
}
|
||||
|
||||
#toctitle {
|
||||
color: #527bbd;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 0.1em;
|
||||
}
|
||||
|
||||
div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
div.toclevel2 {
|
||||
margin-left: 2em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
div.toclevel3 {
|
||||
margin-left: 4em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
div.toclevel4 {
|
||||
margin-left: 6em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
span.aqua { color: aqua; }
|
||||
span.black { color: black; }
|
||||
span.blue { color: blue; }
|
||||
span.fuchsia { color: fuchsia; }
|
||||
span.gray { color: gray; }
|
||||
span.green { color: green; }
|
||||
span.lime { color: lime; }
|
||||
span.maroon { color: maroon; }
|
||||
span.navy { color: navy; }
|
||||
span.olive { color: olive; }
|
||||
span.purple { color: purple; }
|
||||
span.red { color: red; }
|
||||
span.silver { color: silver; }
|
||||
span.teal { color: teal; }
|
||||
span.white { color: white; }
|
||||
span.yellow { color: yellow; }
|
||||
|
||||
span.aqua-background { background: aqua; }
|
||||
span.black-background { background: black; }
|
||||
span.blue-background { background: blue; }
|
||||
span.fuchsia-background { background: fuchsia; }
|
||||
span.gray-background { background: gray; }
|
||||
span.green-background { background: green; }
|
||||
span.lime-background { background: lime; }
|
||||
span.maroon-background { background: maroon; }
|
||||
span.navy-background { background: navy; }
|
||||
span.olive-background { background: olive; }
|
||||
span.purple-background { background: purple; }
|
||||
span.red-background { background: red; }
|
||||
span.silver-background { background: silver; }
|
||||
span.teal-background { background: teal; }
|
||||
span.white-background { background: white; }
|
||||
span.yellow-background { background: yellow; }
|
||||
|
||||
span.big { font-size: 2em; }
|
||||
span.small { font-size: 0.6em; }
|
||||
|
||||
span.underline { text-decoration: underline; }
|
||||
span.overline { text-decoration: overline; }
|
||||
span.line-through { text-decoration: line-through; }
|
||||
|
||||
|
||||
/*
|
||||
* xhtml11 specific
|
||||
*
|
||||
* */
|
||||
|
||||
tt {
|
||||
font-family: monospace;
|
||||
font-size: inherit;
|
||||
color: navy;
|
||||
}
|
||||
|
||||
div.tableblock {
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
div.tableblock > table {
|
||||
border: 3px solid #527bbd;
|
||||
}
|
||||
thead, p.table.header {
|
||||
font-weight: bold;
|
||||
color: #527bbd;
|
||||
}
|
||||
p.table {
|
||||
margin-top: 0;
|
||||
}
|
||||
/* Because the table frame attribute is overriden by CSS in most browsers. */
|
||||
div.tableblock > table[frame="void"] {
|
||||
border-style: none;
|
||||
}
|
||||
div.tableblock > table[frame="hsides"] {
|
||||
border-left-style: none;
|
||||
border-right-style: none;
|
||||
}
|
||||
div.tableblock > table[frame="vsides"] {
|
||||
border-top-style: none;
|
||||
border-bottom-style: none;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* html5 specific
|
||||
*
|
||||
* */
|
||||
|
||||
.monospaced {
|
||||
font-family: monospace;
|
||||
font-size: inherit;
|
||||
color: navy;
|
||||
}
|
||||
|
||||
table.tableblock {
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
thead, p.tableblock.header {
|
||||
font-weight: bold;
|
||||
color: #527bbd;
|
||||
}
|
||||
p.tableblock {
|
||||
margin-top: 0;
|
||||
}
|
||||
table.tableblock {
|
||||
border-width: 3px;
|
||||
border-spacing: 0px;
|
||||
border-style: solid;
|
||||
border-color: #527bbd;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th.tableblock, td.tableblock {
|
||||
border-width: 1px;
|
||||
padding: 4px;
|
||||
border-style: solid;
|
||||
border-color: #527bbd;
|
||||
}
|
||||
|
||||
table.tableblock.frame-topbot {
|
||||
border-left-style: hidden;
|
||||
border-right-style: hidden;
|
||||
}
|
||||
table.tableblock.frame-sides {
|
||||
border-top-style: hidden;
|
||||
border-bottom-style: hidden;
|
||||
}
|
||||
table.tableblock.frame-none {
|
||||
border-style: hidden;
|
||||
}
|
||||
|
||||
th.tableblock.halign-left, td.tableblock.halign-left {
|
||||
text-align: left;
|
||||
}
|
||||
th.tableblock.halign-center, td.tableblock.halign-center {
|
||||
text-align: center;
|
||||
}
|
||||
th.tableblock.halign-right, td.tableblock.halign-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
th.tableblock.valign-top, td.tableblock.valign-top {
|
||||
vertical-align: top;
|
||||
}
|
||||
th.tableblock.valign-middle, td.tableblock.valign-middle {
|
||||
vertical-align: middle;
|
||||
}
|
||||
th.tableblock.valign-bottom, td.tableblock.valign-bottom {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* manpage specific
|
||||
*
|
||||
* */
|
||||
|
||||
body.manpage h1 {
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
border-top: 2px solid silver;
|
||||
border-bottom: 2px solid silver;
|
||||
}
|
||||
body.manpage h2 {
|
||||
border-style: none;
|
||||
}
|
||||
body.manpage div.sectionbody {
|
||||
margin-left: 3em;
|
||||
}
|
||||
|
||||
@media print {
|
||||
body.manpage div#toc { display: none; }
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Theme specific overrides of the preceding (asciidoc.css) CSS.
|
||||
*
|
||||
*/
|
||||
body {
|
||||
font-family: Garamond, Georgia, serif;
|
||||
font-size: 17px;
|
||||
color: #3E4349;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6,
|
||||
div.title, caption.title,
|
||||
thead, p.table.header,
|
||||
#toctitle,
|
||||
#author, #revnumber, #revdate, #revremark,
|
||||
#footer {
|
||||
font-family: Garmond, Georgia, serif;
|
||||
font-weight: normal;
|
||||
border-bottom-width: 0;
|
||||
color: #3E4349;
|
||||
}
|
||||
div.title, caption.title { color: #596673; font-weight: bold; }
|
||||
h1 { font-size: 240%; }
|
||||
h2 { font-size: 180%; }
|
||||
h3 { font-size: 150%; }
|
||||
h4 { font-size: 130%; }
|
||||
h5 { font-size: 115%; }
|
||||
h6 { font-size: 100%; }
|
||||
#header h1 { margin-top: 0; }
|
||||
#toc {
|
||||
color: #444444;
|
||||
line-height: 1.5;
|
||||
padding-top: 1.5em;
|
||||
}
|
||||
#toctitle {
|
||||
font-size: 20px;
|
||||
}
|
||||
#toc a {
|
||||
border-bottom: 1px dotted #999999;
|
||||
color: #444444 !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
#toc a:hover {
|
||||
border-bottom: 1px solid #6D4100;
|
||||
color: #6D4100 !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
div.toclevel1 { margin-top: 0.2em; font-size: 16px; }
|
||||
div.toclevel2 { margin-top: 0.15em; font-size: 14px; }
|
||||
em, dt, td.hdlist1 { color: black; }
|
||||
strong { color: #3E4349; }
|
||||
a { color: #004B6B; text-decoration: none; border-bottom: 1px dotted #004B6B; }
|
||||
a:visited { color: #615FA0; border-bottom: 1px dotted #615FA0; }
|
||||
a:hover { color: #6D4100; border-bottom: 1px solid #6D4100; }
|
||||
div.tableblock > table, table.tableblock { border: 3px solid #E8E8E8; }
|
||||
th.tableblock, td.tableblock { border: 1px solid #E8E8E8; }
|
||||
ul > li > * { color: #3E4349; }
|
||||
pre, tt, .monospaced { font-family: Consolas,Menlo,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace; }
|
||||
tt, .monospaced { font-size: 0.9em; color: black;
|
||||
}
|
||||
div.exampleblock > div.content, div.sidebarblock > div.content, div.listingblock > div.content { border-width: 0 0 0 3px; border-color: #E8E8E8; }
|
||||
div.verseblock { border-left-width: 0; margin-left: 3em; }
|
||||
div.quoteblock { border-left-width: 3px; margin-left: 0; margin-right: 0;}
|
||||
div.admonitionblock td.content { border-left: 3px solid #E8E8E8; }
|
||||
438
asciidoc/themes/volnitsky/volnitsky.css
Normal file
438
asciidoc/themes/volnitsky/volnitsky.css
Normal file
@@ -0,0 +1,438 @@
|
||||
/*
|
||||
* AsciiDoc 'volnitsky' theme for xhtml11 and html5 backends.
|
||||
* Based on css from http://volnitsky.com, which was in turn based on default
|
||||
* theme from AsciiDoc
|
||||
*
|
||||
* FIXME: The styling is still a bit rough in places.
|
||||
*
|
||||
*/
|
||||
|
||||
/* Default font. */
|
||||
body {
|
||||
font-family: Georgia,"Times New Roman",Times,serif;
|
||||
}
|
||||
|
||||
/* Title font. */
|
||||
h1, h2, h3, h4, h5, h6,
|
||||
div.title, caption.title,
|
||||
thead, p.table.header,
|
||||
#toctitle,
|
||||
#author, #revnumber, #revdate, #revremark,
|
||||
#footer {
|
||||
font-family: Candara,Arial,sans-serif;
|
||||
}
|
||||
|
||||
|
||||
#toc a {
|
||||
border-bottom: 1px dotted #999999;
|
||||
color: #3A3A4D !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
#toc a:hover {
|
||||
border-bottom: 1px solid #6D4100;
|
||||
color: #6D4100 !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
a { color: #666688; text-decoration: none; border-bottom: 1px dotted #666688; }
|
||||
a:visited { color: #615FA0; border-bottom: 1px dotted #615FA0; }
|
||||
a:hover { color: #6D4100; border-bottom: 1px solid #6D4100; }
|
||||
|
||||
em {
|
||||
font-style: italic;
|
||||
color: #444466;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
color: #444466;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: #666688;
|
||||
margin-bottom: 0.5em;
|
||||
line-height: 1.3;
|
||||
letter-spacing:+0.15em;
|
||||
}
|
||||
|
||||
h1, h2, h3 { border-bottom: 2px solid #ccd; }
|
||||
h2 { padding-top: 0.5em; }
|
||||
h3 { float: left; }
|
||||
h3 + * { clear: left; }
|
||||
|
||||
div.sectionbody {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 1px solid #444466;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
ul, ol, li > p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#author {
|
||||
color: #444466;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
#footer {
|
||||
font-size: small;
|
||||
border-top: 2px solid silver;
|
||||
padding-top: 0.5em;
|
||||
margin-top: 4.0em;
|
||||
}
|
||||
|
||||
#footer-text {
|
||||
float: left;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
#footer-badges {
|
||||
float: right;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
#preamble {
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
|
||||
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
|
||||
div.admonitionblock {
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
div.admonitionblock {
|
||||
margin-top: 2.5em;
|
||||
margin-bottom: 2.5em;
|
||||
}
|
||||
|
||||
div.content { /* Block element content. */
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Block element titles. */
|
||||
div.title, caption.title {
|
||||
color: #444466;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
div.title + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
td div.title:first-child {
|
||||
margin-top: 0.0em;
|
||||
}
|
||||
div.content div.title:first-child {
|
||||
margin-top: 0.0em;
|
||||
}
|
||||
div.content + div.title {
|
||||
margin-top: 0.0em;
|
||||
}
|
||||
|
||||
div.sidebarblock > div.content {
|
||||
background: #ffffee;
|
||||
border: 1px solid silver;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
div.listingblock > div.content {
|
||||
border: 1px solid silver;
|
||||
background: #f4f4f4;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
div.quoteblock {
|
||||
padding-left: 2.0em;
|
||||
margin-right: 10%;
|
||||
}
|
||||
div.quoteblock > div.attribution {
|
||||
padding-top: 0.5em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.verseblock {
|
||||
padding-left: 2.0em;
|
||||
margin-right: 10%;
|
||||
}
|
||||
div.verseblock > pre.content {
|
||||
font-family: inherit;
|
||||
}
|
||||
div.verseblock > div.attribution {
|
||||
padding-top: 0.75em;
|
||||
text-align: left;
|
||||
}
|
||||
/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
|
||||
div.verseblock + div.attribution {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.admonitionblock .icon {
|
||||
vertical-align: top;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
color: #444466;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
div.admonitionblock td.content {
|
||||
padding-left: 0.5em;
|
||||
border-left: 2px solid silver;
|
||||
}
|
||||
|
||||
div.exampleblock > div.content {
|
||||
border-left: 2px solid silver;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
div.imageblock div.content { padding-left: 0; }
|
||||
span.image img { border-style: none; }
|
||||
a.image:visited { color: white; }
|
||||
|
||||
dl {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
dt {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0;
|
||||
font-style: normal;
|
||||
color: #444466;
|
||||
}
|
||||
dd > *:first-child {
|
||||
margin-top: 0.1em;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
list-style-position: outside;
|
||||
}
|
||||
ol.arabic {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
ol.loweralpha {
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
ol.upperalpha {
|
||||
list-style-type: upper-alpha;
|
||||
}
|
||||
ol.lowerroman {
|
||||
list-style-type: lower-roman;
|
||||
}
|
||||
ol.upperroman {
|
||||
list-style-type: upper-roman;
|
||||
}
|
||||
|
||||
div.compact ul, div.compact ol,
|
||||
div.compact p, div.compact p,
|
||||
div.compact div, div.compact div {
|
||||
margin-top: 0.1em;
|
||||
margin-bottom: 0.1em;
|
||||
}
|
||||
|
||||
div.tableblock > table {
|
||||
border: 3px solid #444466;
|
||||
}
|
||||
thead {
|
||||
font-weight: bold;
|
||||
color: #444466;
|
||||
}
|
||||
tfoot {
|
||||
font-weight: bold;
|
||||
}
|
||||
td > div.verse {
|
||||
white-space: pre;
|
||||
}
|
||||
p.table {
|
||||
margin-top: 0;
|
||||
}
|
||||
/* Because the table frame attribute is overriden by CSS in most browsers. */
|
||||
div.tableblock > table[frame="void"] {
|
||||
border-style: none;
|
||||
}
|
||||
div.tableblock > table[frame="hsides"] {
|
||||
border-left-style: none;
|
||||
border-right-style: none;
|
||||
}
|
||||
div.tableblock > table[frame="vsides"] {
|
||||
border-top-style: none;
|
||||
border-bottom-style: none;
|
||||
}
|
||||
|
||||
|
||||
div.hdlist {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
div.hdlist tr {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
dt.hdlist1.strong, td.hdlist1.strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
td.hdlist1 {
|
||||
vertical-align: top;
|
||||
font-style: normal;
|
||||
padding-right: 0.8em;
|
||||
color: #444466;
|
||||
}
|
||||
td.hdlist2 {
|
||||
vertical-align: top;
|
||||
}
|
||||
div.hdlist.compact tr {
|
||||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.comment {
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
@media print {
|
||||
#footer-badges { display: none; }
|
||||
}
|
||||
|
||||
#toctitle {
|
||||
color: #666688;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 0.1em;
|
||||
}
|
||||
|
||||
div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 { margin-top: 0; margin-bottom: 0; }
|
||||
div.toclevel1 { margin-top: 0.3em; margin-left: 0; font-size: 1.0em; }
|
||||
div.toclevel2 { margin-top: 0.25em; margin-left: 2em; font-size: 0.9em; }
|
||||
div.toclevel3 { margin-left: 4em; font-size: 0.8em; }
|
||||
div.toclevel4 { margin-left: 6em; font-size: 0.8em; }
|
||||
|
||||
body {
|
||||
margin: 1em 5%;
|
||||
max-width: 55em;
|
||||
padding-left: 0;
|
||||
|
||||
}
|
||||
|
||||
.monospaced, tt, div.listingblock > div.content {
|
||||
font-family: Consolas, "Andale Mono", "Courier New", monospace;
|
||||
color: #004400;
|
||||
background: #f4f4f4;
|
||||
max-width: 80em;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
.paragraph p {
|
||||
line-height: 1.5em;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.paragraph p, li, dd, .content { max-width: 45em; }
|
||||
.admonitionblock { max-width: 35em; }
|
||||
|
||||
div.sectionbody div.ulist > ul > li {
|
||||
list-style-type: square;
|
||||
color: #aaa;
|
||||
}
|
||||
div.sectionbody div.ulist > ul > li > * {
|
||||
color: black;
|
||||
/*font-size: 50%;*/
|
||||
}
|
||||
|
||||
|
||||
div.sectionbody div.ulist > ul > li div.ulist > ul > li {
|
||||
color: #ccd ;
|
||||
}
|
||||
div.sectionbody div.ulist > ul > li div.ulist > ul > li > * {
|
||||
color: black ;
|
||||
}
|
||||
|
||||
em {
|
||||
font-style: normal ! important;
|
||||
font-weight: bold ! important;
|
||||
color: #662222 ! important;
|
||||
letter-spacing:+0.08em ! important;
|
||||
}
|
||||
|
||||
span.underline { text-decoration: underline; }
|
||||
span.overline { text-decoration: overline; }
|
||||
span.line-through { text-decoration: line-through; }
|
||||
|
||||
/*
|
||||
* html5 specific
|
||||
*
|
||||
* */
|
||||
|
||||
table.tableblock {
|
||||
margin-top: 1.0em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
thead, p.tableblock.header {
|
||||
font-weight: bold;
|
||||
color: #666688;
|
||||
}
|
||||
p.tableblock {
|
||||
margin-top: 0;
|
||||
}
|
||||
table.tableblock {
|
||||
border-width: 3px;
|
||||
border-spacing: 0px;
|
||||
border-style: solid;
|
||||
border-color: #444466;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th.tableblock, td.tableblock {
|
||||
border-width: 1px;
|
||||
padding: 4px;
|
||||
border-style: solid;
|
||||
border-color: #444466;
|
||||
}
|
||||
|
||||
table.tableblock.frame-topbot {
|
||||
border-left-style: hidden;
|
||||
border-right-style: hidden;
|
||||
}
|
||||
table.tableblock.frame-sides {
|
||||
border-top-style: hidden;
|
||||
border-bottom-style: hidden;
|
||||
}
|
||||
table.tableblock.frame-none {
|
||||
border-style: hidden;
|
||||
}
|
||||
|
||||
th.tableblock.halign-left, td.tableblock.halign-left {
|
||||
text-align: left;
|
||||
}
|
||||
th.tableblock.halign-center, td.tableblock.halign-center {
|
||||
text-align: center;
|
||||
}
|
||||
th.tableblock.halign-right, td.tableblock.halign-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
th.tableblock.valign-top, td.tableblock.valign-top {
|
||||
vertical-align: top;
|
||||
}
|
||||
th.tableblock.valign-middle, td.tableblock.valign-middle {
|
||||
vertical-align: middle;
|
||||
}
|
||||
th.tableblock.valign-bottom, td.tableblock.valign-bottom {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
|
||||
61
asciidoc/xhtml11-quirks.conf
Normal file
61
asciidoc/xhtml11-quirks.conf
Normal file
@@ -0,0 +1,61 @@
|
||||
#
|
||||
# xhtml11-quirks.conf
|
||||
#
|
||||
# Workarounds for IE6's broken # and incomplete CSS2.
|
||||
#
|
||||
|
||||
[image-blockmacro]
|
||||
<div class="imageblock{style? {style}}{role? {role}}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
|
||||
<div class="content">
|
||||
<a class="image" href="{link}">
|
||||
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} />
|
||||
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
|
||||
{data-uri#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}" />
|
||||
{link#}</a>
|
||||
</div>
|
||||
<div class="image-title">{caption={figure-caption} {counter:figure-number}: }{title}</div>
|
||||
</div>
|
||||
|
||||
[sidebarblock]
|
||||
<div class="sidebarblock{role? {role}}"{id? id="{id}"}>
|
||||
<div class="sidebar-content">
|
||||
<div class="sidebar-title">{title}</div>
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[quoteblock]
|
||||
<div class="quoteblock{role? {role}}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="quoteblock-content">
|
||||
|
|
||||
</div>
|
||||
<div class="quoteblock-attribution">
|
||||
<em>{citetitle}</em><br />
|
||||
— {attribution}
|
||||
</div></div>
|
||||
|
||||
[verseblock]
|
||||
<div class="verseblock{role? {role}}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<pre class="verseblock-content">
|
||||
|
|
||||
</pre>
|
||||
<div class="verseblock-attribution">
|
||||
<em>{citetitle}</em><br />
|
||||
— {attribution}
|
||||
</div></div>
|
||||
|
||||
[exampleblock]
|
||||
<div class="exampleblock{role? {role}}"{id? id="{id}"}>
|
||||
<div class="title">{caption={example-caption} {counter:example-number}: }{title}</div>
|
||||
<div class="exampleblock-content">
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[sect2]
|
||||
<div class="sect2{style? {style}}{role? {role}}">
|
||||
# The <div> is because the IE6 adjacent-sibling CSS selector is broken.
|
||||
<h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3><div style="clear:left"></div>
|
||||
|
|
||||
</div>
|
||||
|
||||
726
asciidoc/xhtml11.conf
Normal file
726
asciidoc/xhtml11.conf
Normal file
@@ -0,0 +1,726 @@
|
||||
#
|
||||
# xhtml11.conf
|
||||
#
|
||||
# Asciidoc configuration file.
|
||||
# xhtml11 backend, generates XHTML 1.1 conformant markup.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
outfilesuffix=.html
|
||||
|
||||
[attributes]
|
||||
basebackend=html
|
||||
basebackend-html=
|
||||
basebackend-xhtml11=
|
||||
|
||||
[replacements2]
|
||||
# Line break.
|
||||
(?m)^(.*)\s\+$=\1<br />
|
||||
|
||||
[replacements]
|
||||
ifdef::asciidoc7compatible[]
|
||||
# Superscripts.
|
||||
\^(.+?)\^=<sup>\1</sup>
|
||||
# Subscripts.
|
||||
~(.+?)~=<sub>\1</sub>
|
||||
endif::asciidoc7compatible[]
|
||||
|
||||
[ruler-blockmacro]
|
||||
<hr />
|
||||
|
||||
[pagebreak-blockmacro]
|
||||
<div style="page-break-after:always"></div>
|
||||
|
||||
[blockdef-pass]
|
||||
asciimath-style=template="asciimathblock",subs=()
|
||||
latexmath-style=template="latexmathblock",subs=(),posattrs=(),filter="unwraplatex.py"
|
||||
|
||||
[macros]
|
||||
# math macros.
|
||||
# Special characters are escaped in HTML math markup.
|
||||
(?su)[\\]?(?P<name>asciimath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[specialcharacters]
|
||||
^(?P<name>asciimath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[specialcharacters]
|
||||
(?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?:\$\s*)?(?P<passtext>.*?)(?:\s*\$)?(?<!\\)\]=[specialcharacters]
|
||||
^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?:\\\[\s*)?(?P<passtext>.*?)(?:\s*\\\])?\])$=#[specialcharacters]
|
||||
|
||||
[asciimath-inlinemacro]
|
||||
`{passtext}`
|
||||
|
||||
[asciimath-blockmacro]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
`{passtext}`
|
||||
</div></div>
|
||||
|
||||
[asciimathblock]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
`|`
|
||||
</div></div>
|
||||
|
||||
[latexmath-inlinemacro]
|
||||
${passtext}$
|
||||
|
||||
[latexmath-blockmacro]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
{backslash}[{passtext}{backslash}]
|
||||
</div></div>
|
||||
|
||||
[latexmathblock]
|
||||
<div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
\[|\]
|
||||
</div></div>
|
||||
|
||||
[image-inlinemacro]
|
||||
<span class="image{role? {role}}">
|
||||
<a class="image" href="{link}">
|
||||
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} />
|
||||
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}
|
||||
{data-uri#}{sys:"{python}" -u -c "import mimetypes,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,');"}
|
||||
{data-uri#}{sys3:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}" />
|
||||
{link#}</a>
|
||||
</span>
|
||||
|
||||
[image-blockmacro]
|
||||
<div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
|
||||
<div class="content">
|
||||
<a class="image" href="{link}">
|
||||
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} />
|
||||
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}
|
||||
{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}" />
|
||||
{link#}</a>
|
||||
</div>
|
||||
<div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
|
||||
</div>
|
||||
|
||||
[unfloat-blockmacro]
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
[toc-blockmacro]
|
||||
template::[toc]
|
||||
|
||||
[indexterm-inlinemacro]
|
||||
# Index term.
|
||||
{empty}
|
||||
|
||||
[indexterm2-inlinemacro]
|
||||
# Index term.
|
||||
# Single entry index term that is visible in the primary text flow.
|
||||
{1}
|
||||
|
||||
[footnote-inlinemacro]
|
||||
# footnote:[<text>].
|
||||
<span class="footnote"><br />[{0}]<br /></span>
|
||||
|
||||
[footnoteref-inlinemacro]
|
||||
# footnoteref:[<id>], create reference to footnote.
|
||||
{2%}<span class="footnoteref"><br /><a href="#_footnote_{1}">[{1}]</a><br /></span>
|
||||
# footnoteref:[<id>,<text>], create footnote with ID.
|
||||
{2#}<span class="footnote" id="_footnote_{1}"><br />[{2}]<br /></span>
|
||||
|
||||
[callout-inlinemacro]
|
||||
ifndef::icons[]
|
||||
<b><{index}></b>
|
||||
endif::icons[]
|
||||
ifdef::icons[]
|
||||
ifndef::data-uri[]
|
||||
<img src="{icon={iconsdir}/callouts/{index}.png}" alt="{index}" />
|
||||
endif::data-uri[]
|
||||
ifdef::data-uri[]
|
||||
<img alt="{index}" src="data:image/png;base64,
|
||||
{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{index}.png}")}"}" />
|
||||
endif::data-uri[]
|
||||
endif::icons[]
|
||||
|
||||
# Comment line macros.
|
||||
[comment-inlinemacro]
|
||||
{showcomments#}<br /><span class="comment">{passtext}</span><br />
|
||||
|
||||
[comment-blockmacro]
|
||||
{showcomments#}<p><span class="comment">{passtext}</span></p>
|
||||
|
||||
[literal-inlinemacro]
|
||||
# Inline literal.
|
||||
<code>{passtext}</code>
|
||||
|
||||
# List tags.
|
||||
[listtags-bulleted]
|
||||
list=<div class="ulist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-numbered]
|
||||
# The start attribute is not valid XHTML 1.1 but all browsers support it.
|
||||
list=<div class="olist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol class="{style}"{start? start="{start}"}>|</ol></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-labeled]
|
||||
list=<div class="dlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|
||||
entry=
|
||||
label=
|
||||
term=<dt class="hdlist1{strong-option? strong}">|</dt>
|
||||
item=<dd>|</dd>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-horizontal]
|
||||
list=<div class="hdlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>{labelwidth?<col width="{labelwidth}%" />}{itemwidth?<col width="{itemwidth}%" />}|</table></div>
|
||||
label=<td class="hdlist1{strong-option? strong}">|</td>
|
||||
term=|<br />
|
||||
entry=<tr>|</tr>
|
||||
item=<td class="hdlist2">|</td>
|
||||
text=<p style="margin-top: 0;">|</p>
|
||||
|
||||
[listtags-qanda]
|
||||
list=<div class="qlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
|
||||
entry=<li>|</li>
|
||||
label=
|
||||
term=<p><em>|</em></p>
|
||||
item=
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-callout]
|
||||
ifndef::icons[]
|
||||
list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
endif::icons[]
|
||||
ifdef::icons[]
|
||||
list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div>
|
||||
ifndef::data-uri[]
|
||||
item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}" /></td><td>|</td></tr>
|
||||
endif::data-uri[]
|
||||
ifdef::data-uri[]
|
||||
item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{listindex}.png}")}"}" /></td><td>|</td></tr>
|
||||
endif::data-uri[]
|
||||
text=|
|
||||
endif::icons[]
|
||||
|
||||
[listtags-glossary]
|
||||
list=<div class="dlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|
||||
label=
|
||||
entry=
|
||||
term=<dt>|</dt>
|
||||
item=<dd>|</dd>
|
||||
text=<p>|</p>
|
||||
|
||||
[listtags-bibliography]
|
||||
list=<div class="ulist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
|
||||
item=<li>|</li>
|
||||
text=<p>|</p>
|
||||
|
||||
[tags]
|
||||
# Quoted text.
|
||||
emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em>
|
||||
strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong>
|
||||
monospaced=<code>{1?<span class="{1}">}|{1?</span>}</code>
|
||||
singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo}
|
||||
doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo}
|
||||
unquoted={1?<span class="{1}">}|{1?</span>}
|
||||
superscript=<sup>{1?<span class="{1}">}|{1?</span>}</sup>
|
||||
subscript=<sub>{1?<span class="{1}">}|{1?</span>}</sub>
|
||||
|
||||
ifdef::deprecated-quotes[]
|
||||
# Override with deprecated quote attributes.
|
||||
emphasis={role?<span class="{role}">}<em{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</em>{role?</span>}
|
||||
strong={role?<span class="{role}">}<strong{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</strong>{role?</span>}
|
||||
monospaced={role?<span class="{role}">}<code{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</code>{role?</span>}
|
||||
singlequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8216;|{amp}#8217;{1,2,3?</span>}{role?</span>}
|
||||
doublequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8220;|{amp}#8221;{1,2,3?</span>}{role?</span>}
|
||||
unquoted={role?<span class="{role}">}{1,2,3?<span style="{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}">}|{1,2,3?</span>}{role?</span>}
|
||||
superscript={role?<span class="{role}">}<sup{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sup>{role?</span>}
|
||||
subscript={role?<span class="{role}">}<sub{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sub>{role?</span>}
|
||||
endif::deprecated-quotes[]
|
||||
|
||||
# Inline macros
|
||||
[http-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[https-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[ftp-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[file-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[irc-inlinemacro]
|
||||
<a href="{name}:{target}">{0={name}:{target}}</a>
|
||||
[mailto-inlinemacro]
|
||||
<a href="mailto:{target}">{0={target}}</a>
|
||||
[link-inlinemacro]
|
||||
<a href="{target}">{0={target}}</a>
|
||||
[callto-inlinemacro]
|
||||
<a href="{name}:{target}">{0={target}}</a>
|
||||
# anchor:id[text]
|
||||
[anchor-inlinemacro]
|
||||
<a id="{target}"></a>
|
||||
# [[id,text]]
|
||||
[anchor2-inlinemacro]
|
||||
<a id="{1}"></a>
|
||||
# [[[id]]]
|
||||
[anchor3-inlinemacro]
|
||||
<a id="{1}"></a>[{1}]
|
||||
# xref:id[text]
|
||||
[xref-inlinemacro]
|
||||
<a href="#{target}">{0=[{target}]}</a>
|
||||
# <<id,text>>
|
||||
[xref2-inlinemacro]
|
||||
<a href="#{1}">{2=[{1}]}</a>
|
||||
|
||||
# Special word substitution.
|
||||
[emphasizedwords]
|
||||
<em>{words}</em>
|
||||
[monospacedwords]
|
||||
<code>{words}</code>
|
||||
[strongwords]
|
||||
<strong>{words}</strong>
|
||||
|
||||
# Paragraph substitution.
|
||||
[paragraph]
|
||||
<div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
|
||||
|
|
||||
</p></div>
|
||||
|
||||
[admonitionparagraph]
|
||||
template::[admonitionblock]
|
||||
|
||||
# Delimited blocks.
|
||||
[listingblock]
|
||||
<div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{caption=}{title}</div>
|
||||
<div class="content">
|
||||
<pre><code>
|
||||
|
|
||||
</code></pre>
|
||||
</div></div>
|
||||
|
||||
[literalblock]
|
||||
<div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="content">
|
||||
<pre><code>
|
||||
|
|
||||
</code></pre>
|
||||
</div></div>
|
||||
|
||||
[sidebarblock]
|
||||
<div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="content">
|
||||
<div class="title">{title}</div>
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[openblock]
|
||||
<div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="content">
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[partintroblock]
|
||||
template::[openblock]
|
||||
|
||||
[abstractblock]
|
||||
template::[quoteblock]
|
||||
|
||||
[quoteblock]
|
||||
<div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<div class="content">
|
||||
|
|
||||
</div>
|
||||
<div class="attribution">
|
||||
<em>{citetitle}</em>{attribution?<br />}
|
||||
— {attribution}
|
||||
</div></div>
|
||||
|
||||
[verseblock]
|
||||
<div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{title}</div>
|
||||
<pre class="content">
|
||||
|
|
||||
</pre>
|
||||
<div class="attribution">
|
||||
<em>{citetitle}</em>{attribution?<br />}
|
||||
— {attribution}
|
||||
</div></div>
|
||||
|
||||
[exampleblock]
|
||||
<div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
|
||||
<div class="content">
|
||||
|
|
||||
</div></div>
|
||||
|
||||
[admonitionblock]
|
||||
<div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<table><tr>
|
||||
<td class="icon">
|
||||
{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}" />
|
||||
{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
|
||||
{data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}" />
|
||||
{icons%}<div class="title">{caption}</div>
|
||||
</td>
|
||||
<td class="content">
|
||||
<div class="title">{title}</div>
|
||||
|
|
||||
</td>
|
||||
</tr></table>
|
||||
</div>
|
||||
|
||||
# Tables.
|
||||
[tabletags-default]
|
||||
colspec=<col{autowidth-option! width="{colpcwidth}%"} />
|
||||
bodyrow=<tr>|</tr>
|
||||
headdata=<th {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}" valign="{valign}">|</th>
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}" valign="{valign}">|</td>
|
||||
paragraph=<p class="table">|</p>
|
||||
|
||||
[tabletags-header]
|
||||
paragraph=<p class="table header">|</p>
|
||||
|
||||
[tabletags-emphasis]
|
||||
paragraph=<p class="table"><em>|</em></p>
|
||||
|
||||
[tabletags-strong]
|
||||
paragraph=<p class="table"><strong>|</strong></p>
|
||||
|
||||
[tabletags-monospaced]
|
||||
paragraph=<p class="table"><code>|</code></p>
|
||||
|
||||
[tabletags-verse]
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}" valign="{valign}"><div class="verse">|</div></td>
|
||||
paragraph=
|
||||
|
||||
[tabletags-literal]
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}" valign="{valign}"><div class="literal"><pre><code>|</code></pre></div></td>
|
||||
paragraph=
|
||||
|
||||
[tabletags-asciidoc]
|
||||
bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }align="{halign}" valign="{valign}"><div>|</div></td>
|
||||
paragraph=
|
||||
|
||||
[table]
|
||||
<div class="tableblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
|
||||
<table rules="{grid=all}"
|
||||
style="margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};"
|
||||
style="float:{float};"
|
||||
{autowidth-option%}width="{tablepcwidth}%"
|
||||
{autowidth-option#}{width#width="{tablepcwidth}%"}
|
||||
frame="{frame%border}"
|
||||
frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
|
||||
cellspacing="0" cellpadding="4">
|
||||
<caption class="title">{caption={table-caption} {counter:table-number}. }{title}</caption>
|
||||
{colspecs}
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody>
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Deprecated old table definitions.
|
||||
#
|
||||
|
||||
[miscellaneous]
|
||||
# Screen width in pixels.
|
||||
pagewidth=800
|
||||
pageunits=
|
||||
|
||||
[old_tabledef-default]
|
||||
template=old_table
|
||||
colspec=<col width="{colwidth}{pageunits}" />
|
||||
bodyrow=<tr>|</tr>
|
||||
headdata=<th align="{colalign}">|</th>
|
||||
footdata=<td align="{colalign}">|</td>
|
||||
bodydata=<td align="{colalign}">|</td>
|
||||
|
||||
[old_table]
|
||||
<div class="tableblock"{id? id="{id}"}>
|
||||
<table rules="{grid=none}"
|
||||
frame="{frame%hsides}"
|
||||
frame="{frame@topbot:hsides}{frame@all:border}{frame@none:void}{frame@sides:vsides}"
|
||||
cellspacing="0" cellpadding="4">
|
||||
<caption class="title">{caption={table-caption}}{title}</caption>
|
||||
{colspecs}
|
||||
{headrows#}<thead>
|
||||
{headrows}
|
||||
{headrows#}</thead>
|
||||
{footrows#}<tfoot>
|
||||
{footrows}
|
||||
{footrows#}</tfoot>
|
||||
<tbody valign="top">
|
||||
{bodyrows}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
# End of deprecated old table definitions.
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
[floatingtitle]
|
||||
<h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}{id? id="{id}"} class="float">{title}</h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}>
|
||||
|
||||
[preamble]
|
||||
# Untitled elements between header and first section title.
|
||||
<div id="preamble">
|
||||
<div class="sectionbody">
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
# Document sections.
|
||||
[sect0]
|
||||
<h1{id? id="{id}"}>{title}</h1>
|
||||
|
|
||||
|
||||
[sect1]
|
||||
<div class="sect1{style? {style}}{role? {role}}">
|
||||
<h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
|
||||
<div class="sectionbody">
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[sect2]
|
||||
<div class="sect2{style? {style}}{role? {role}}">
|
||||
<h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3>
|
||||
|
|
||||
</div>
|
||||
|
||||
[sect3]
|
||||
<div class="sect3{style? {style}}{role? {role}}">
|
||||
<h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4>
|
||||
|
|
||||
</div>
|
||||
|
||||
[sect4]
|
||||
<div class="sect4{style? {style}}{role? {role}}">
|
||||
<h5{id? id="{id}"}>{title}</h5>
|
||||
|
|
||||
</div>
|
||||
|
||||
[appendix]
|
||||
<div class="sect1{style? {style}}{role? {role}}">
|
||||
<h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
|
||||
<div class="sectionbody">
|
||||
|
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[toc]
|
||||
<div id="toc">
|
||||
<div id="toctitle">{toc-title}</div>
|
||||
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
|
||||
</div>
|
||||
|
||||
[header]
|
||||
<?xml version="1.0" encoding="{encoding}"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang=en}">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
|
||||
<meta name="generator" content="AsciiDoc {asciidoc-version}" />
|
||||
<meta name="description" content="{description}" />
|
||||
<meta name="keywords" content="{keywords}" />
|
||||
<title>{title}</title>
|
||||
{title%}<title>{doctitle=}</title>
|
||||
ifdef::linkcss[]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css" />
|
||||
ifdef::quirks[]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/xhtml11-quirks.css" type="text/css" />
|
||||
endif::quirks[]
|
||||
ifeval::["{source-highlighter}"=="pygments"]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
|
||||
endif::[]
|
||||
|
||||
# DEPRECATED: 'pygments' attribute.
|
||||
ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css" />]
|
||||
|
||||
ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
|
||||
<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css" />
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<style type="text/css">
|
||||
include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
|
||||
include1::{themedir}/{theme}.css[]
|
||||
ifdef::quirks[]
|
||||
include1::{stylesdir=./stylesheets}/xhtml11-quirks.css[]
|
||||
endif::quirks[]
|
||||
ifeval::["{source-highlighter}"=="pygments"]
|
||||
include1::{stylesdir=./stylesheets}/pygments.css[]
|
||||
endif::[]
|
||||
|
||||
# DEPRECATED: 'pygments' attribute.
|
||||
ifdef::pygments[]
|
||||
include1::{stylesdir=./stylesheets}/pygments.css[]
|
||||
endif::pygments[]
|
||||
|
||||
ifdef::toc2[]
|
||||
include1::{stylesdir=./stylesheets}/toc2.css[]
|
||||
endif::toc2[]
|
||||
include1::{stylesheet}[]
|
||||
</style>
|
||||
endif::linkcss[]
|
||||
ifndef::disable-javascript[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
|
||||
<script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
asciidoc.install({toc,toc2?{toclevels}});
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/asciidoc.js[]
|
||||
include1::{themedir}/{theme}.js[warnings=False]
|
||||
asciidoc.install({toc,toc2?{toclevels}});
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::disable-javascript[]
|
||||
ifdef::asciimath[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/ASCIIMathML.js[]
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::asciimath[]
|
||||
ifdef::latexmath[]
|
||||
ifdef::linkcss[]
|
||||
<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
|
||||
endif::linkcss[]
|
||||
ifndef::linkcss[]
|
||||
<script type="text/javascript">
|
||||
# Escape as CDATA to pass validators.
|
||||
/*<![CDATA[*/
|
||||
include1::{scriptsdir=./javascripts}/LaTeXMathML.js[]
|
||||
/*]]>*/
|
||||
</script>
|
||||
endif::linkcss[]
|
||||
endif::latexmath[]
|
||||
ifdef::mathjax[]
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js"],
|
||||
jax: ["input/TeX", "output/HTML-CSS"],
|
||||
tex2jax: {
|
||||
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
||||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
|
||||
processEscapes: true
|
||||
},
|
||||
"HTML-CSS": { availableFonts: ["TeX"] }
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
||||
endif::mathjax[]
|
||||
{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
|
||||
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
|
||||
template::[docinfo]
|
||||
</head>
|
||||
<body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
|
||||
# Article, book header.
|
||||
ifndef::doctype-manpage[]
|
||||
<div id="header">
|
||||
ifndef::notitle[<h1>{doctitle}</h1>]
|
||||
ifdef::doctitle[]
|
||||
<span id="author">{author}</span><br />
|
||||
<span id="email"><code><<a href="mailto:{email}">{email}</a>></code></span><br />
|
||||
<span id="revnumber">version {revnumber}{revdate?,}</span>
|
||||
<span id="revdate">{revdate}</span>
|
||||
<br /><span id="revremark">{revremark}</span>
|
||||
endif::doctitle[]
|
||||
{toc,toc2#}{toc-placement$auto:}{template:toc}
|
||||
</div>
|
||||
endif::doctype-manpage[]
|
||||
# Man page header.
|
||||
ifdef::doctype-manpage[]
|
||||
<div id="header">
|
||||
<h1>
|
||||
{doctitle} Manual Page
|
||||
</h1>
|
||||
{toc,toc2#}{toc-placement$auto:}{template:toc}
|
||||
<h2>{manname-title}</h2>
|
||||
<div class="sectionbody">
|
||||
<p>{manname} -
|
||||
{manpurpose}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
endif::doctype-manpage[]
|
||||
<div id="content">
|
||||
|
||||
[footer]
|
||||
</div>
|
||||
{disable-javascript%<div id="footnotes"><hr /></div>}
|
||||
<div id="footer">
|
||||
# Removing footer date and version if footer-style set to none
|
||||
ifeval::["{footer-style=default}"!="none"]
|
||||
<div id="footer-text">
|
||||
template::[footer-text]
|
||||
</div>
|
||||
endif::[]
|
||||
ifdef::badges[]
|
||||
<div id="footer-badges">
|
||||
ifndef::icons[]
|
||||
Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a>
|
||||
and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
|
||||
endif::icons[]
|
||||
ifdef::icons[]
|
||||
<a href="http://validator.w3.org/check?uri=referer">
|
||||
<img style="border:0;width:88px;height:31px"
|
||||
src="http://www.w3.org/Icons/valid-xhtml11-blue"
|
||||
alt="Valid XHTML 1.1" height="31" width="88" />
|
||||
</a>
|
||||
<a href="http://jigsaw.w3.org/css-validator/">
|
||||
<img style="border:0;width:88px;height:31px"
|
||||
src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
|
||||
alt="Valid CSS!" />
|
||||
</a>
|
||||
endif::icons[]
|
||||
</div>
|
||||
endif::badges[]
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
[footer-date]
|
||||
# Default footer date is document modification time
|
||||
ifeval::["{footer-style=default}"!="revdate"]
|
||||
{docdate} {doctime}
|
||||
endif::[]
|
||||
# If set to "revdate", it'll be set to the revision date
|
||||
ifeval::["{footer-style=default}"=="revdate"]
|
||||
{revdate}
|
||||
endif::[]
|
||||
|
||||
ifdef::doctype-manpage[]
|
||||
[synopsis]
|
||||
template::[sect1]
|
||||
endif::doctype-manpage[]
|
||||
|
||||
ifdef::quirks[]
|
||||
include::xhtml11-quirks.conf[]
|
||||
endif::quirks[]
|
||||
Reference in New Issue
Block a user