-
Notifications
You must be signed in to change notification settings - Fork 4
/
asciidoc_epub.conf
128 lines (102 loc) · 2.19 KB
/
asciidoc_epub.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[miscellaneous]
newline=\n
[attributes]
disable-javascript=True
warnings=False
highlight=False
book_target=True
html_target=True
encoding=UTF-8
sectids!
lsquo=‘
rsquo=’
ldquo=“
rdquo=”
[quotes]
`=#monospaced
[macros]
(?su)(?<!\w)indexsee:\[(?P<attrlist>[^\]]*?)\]=indexsee
\(!html (?P<text>(?:.|\n)*?)!\)=included
\(!tex (?P<text>(?:.|\n)*?)!\)=excluded
\(!interactive (?P<text>(?:.|\n)*?)!\)=excluded
\(!book (?P<text>(?:.|\n)*?)!\)=included
(?su)(?<!\()[\\]?\(\(\((?P<attrlist>[^(](?:[^()]|\n)*?)\)\)\)(?!\))=indexterm
(?<!\()[\\]?\(\((?P<attrlist>[^\s\(][^(](?:[^()]|\n)*?)\)\)(?!\))=indexterm2
[replacements]
(\w)\'(\w)=\1’\2
(?<!\\)\.\.\.=...
[source-highlight-block]
<pre{id? id="{id}"}>
|
</pre>
[source-filter-style]
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered","src_tab"),filter="./bin/blockfilter -s {language}"
[blockdef-listing]
template::[source-filter-style]
[listingblock]
<pre{id? id="{id}"}>
|
</pre>
[indexsee-inlinemacro]
{empty}
[included-inlinemacro]
{text}
[excluded-inlinemacro]
{empty}
[header]
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>{doctitle}</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<article>
<h1 id="{docid}">{chap_num?<span class="chap_num">Chapter {chap_num}</span>}{doctitle}</h1>
[footer]
</article>
</body>
</html>
[preamble]
|
[paragraph]
<p{id? id="{id}"}>
|
</p>
[tags]
monospaced=<code>|</code>
[literal-inlinemacro]
<code>{passtext}</code>
[sect1]
<h2{id? id="{id}"}>{title}</h2>
|
[sect2]
<h3{id? id="{id}"}>{title}</h3>
|
[sect3]
<h4{id? id="{id}"}>{title}</h4>
|
[quoteblock]
<blockquote>
|
{attribution? <footer>{attribution}{citetitle?, <cite>{citetitle}</cite>}</footer>}
</blockquote>
[image-blockmacro]
<div class="image"{id? id="{id}"}>
<img src="{target}" alt="{alt={target}}"/>
</div>
[table]
<table{id? id="{id}"}>
{headrows#}<thead>
{headrows}
{headrows#}</thead>
{footrows#}<tfoot>
{footrows}
{footrows#}</tfoot>
{bodyrows}
</table>
[tabletags-default]
bodyrow=<tr>|</tr>
headdata=<th>|</th>
bodydata=<td>|</td>
paragraph=|