Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/schema/document-epub.yml
12921 views
1
2
- name: identifier
3
tags:
4
formats: [$epub-all]
5
schema:
6
anyOf:
7
- string
8
- object:
9
closed: true
10
properties:
11
text:
12
string:
13
description: The identifier value.
14
schema:
15
enum: ['ISBN-10', 'GTIN-13', 'UPC',
16
'ISMN-10', 'DOI', 'LCCN', 'GTIN-14',
17
'ISBN-13', 'Legal deposit number',
18
'URN', 'OCLC', 'ISMN-13',
19
'ISBN-A', 'JP', 'OLCC'
20
]
21
description: The identifier schema (e.g. `DOI`, `ISBN-A`, etc.)
22
description: The identifier for this publication.
23
24
- name: creator
25
tags:
26
formats: [$epub-all]
27
schema:
28
ref: epub-contributor
29
description: Creators of this publication.
30
31
- name: contributor
32
tags:
33
formats: [$epub-all]
34
schema:
35
ref: epub-contributor
36
description: Contributors to this publication.
37
38
39
- name: type
40
tags:
41
formats: [$epub-all]
42
schema: string
43
description:
44
short: Text describing the specialized type of this publication.
45
long: |
46
Text describing the specialized type of this publication.
47
48
An informative registry of specialized EPUB Publication
49
types for use with this element is maintained in the
50
[TypesRegistry](https://www.w3.org/publishing/epub32/epub-packages.html#bib-typesregistry),
51
but Authors may use any text string as a value.
52
53
- name: format
54
tags:
55
formats: [$epub-all]
56
schema: string
57
description: Text describing the format of this publication.
58
59
- name: relation
60
tags:
61
formats: [$epub-all]
62
schema: string
63
description: Text describing the relation of this publication.
64
65
- name: coverage
66
tags:
67
formats: [$epub-all]
68
schema: string
69
description: Text describing the coverage of this publication.
70
71
- name: rights
72
tags:
73
formats: [$epub-all]
74
schema: string
75
description: Text describing the rights of this publication.
76
77
- name: belongs-to-collection
78
tags:
79
formats: [$epub-all]
80
schema: string
81
description: Identifies the name of a collection to which the EPUB Publication belongs.
82
83
- name: group-position
84
tags:
85
formats: [$epub-all]
86
schema: number
87
description: |
88
Indicates the numeric position in which this publication
89
belongs relative to other works belonging to the same
90
`belongs-to-collection` field.
91
92
- name: page-progression-direction
93
tags:
94
formats: [$epub-all]
95
schema:
96
enum: [ltr, rtl]
97
description: Sets the global direction in which content flows (`ltr` or `rtl`)
98
99
- name: ibooks
100
description: iBooks specific metadata options.
101
tags:
102
formats: [$epub-all]
103
schema:
104
object:
105
closed: true
106
properties:
107
version:
108
string:
109
description: What is new in this version of the book.
110
specified-fonts:
111
boolean:
112
description: Whether this book provides embedded fonts in a flowing or fixed layout book.
113
scroll-axis:
114
enum: [vertical, horizontal, default]
115
description: The scroll direction for this book (`vertical`, `horizontal`, or `default`)
116
117
118
- name: epub-metadata
119
tags:
120
formats: [$epub-all]
121
schema: path
122
description:
123
short: |
124
Look in the specified XML file for metadata for the EPUB.
125
The file should contain a series of [Dublin Core elements](https://www.dublincore.org/specifications/dublin-core/dces/).
126
long: |
127
Look in the specified XML file for metadata for the EPUB.
128
The file should contain a series of [Dublin Core elements](https://www.dublincore.org/specifications/dublin-core/dces/).
129
For example:
130
131
```xml
132
<dc:rights>Creative Commons</dc:rights>
133
<dc:language>es-AR</dc:language>
134
```
135
136
By default, pandoc will include the following metadata elements:
137
`<dc:title>` (from the document title), `<dc:creator>` (from the
138
document authors), `<dc:date>` (from the document date, which should
139
be in [ISO 8601 format]), `<dc:language>` (from the `lang`
140
variable, or, if is not set, the locale), and `<dc:identifier
141
id="BookId">` (a randomly generated UUID). Any of these may be
142
overridden by elements in the metadata file.
143
144
Note: if the source document is Markdown, a YAML metadata block
145
in the document can be used instead.
146
147
148
- name: epub-subdirectory
149
tags:
150
formats: [$epub-all]
151
schema:
152
anyOf: [path, null]
153
default: EPUB
154
description: |
155
Specify the subdirectory in the OCF container that is to hold the
156
EPUB-specific contents. The default is `EPUB`. To put the EPUB
157
contents in the top level, use an empty string.
158
159
- name: epub-fonts
160
tags:
161
formats: [$epub-all]
162
schema:
163
arrayOf: path
164
description:
165
short: "Embed the specified fonts in the EPUB"
166
long: |
167
Embed the specified fonts in the EPUB. Wildcards can also be used: for example,
168
`DejaVuSans-*.ttf`. To use the embedded fonts, you will need to add declarations
169
like the following to your CSS:
170
171
```css
172
@font-face {
173
font-family: DejaVuSans;
174
font-style: normal;
175
font-weight: normal;
176
src:url("DejaVuSans-Regular.ttf");
177
}
178
```
179
180
- name: epub-chapter-level
181
tags:
182
formats: [$epub-all]
183
schema: number
184
default: 1
185
description:
186
short: |
187
Specify the heading level at which to split the EPUB into separate
188
chapter files.
189
long: |
190
Specify the heading level at which to split the EPUB into separate
191
chapter files. The default is to split into chapters at level-1
192
headings. This option only affects the internal composition of the
193
EPUB, not the way chapters and sections are displayed to users. Some
194
readers may be slow if the chapter files are too large, so for large
195
documents with few level-1 headings, one might want to use a chapter
196
level of 2 or 3.
197
198
- name: epub-cover-image
199
tags:
200
formats: [$epub-all]
201
schema: path
202
description: |
203
Use the specified image as the EPUB cover. It is recommended
204
that the image be less than 1000px in width and height.
205
206
- name: epub-title-page
207
schema: boolean
208
default: true
209
tags:
210
formats: [$epub-all]
211
description: If false, disables the generation of a title page.
212
213