Path: blob/main/src/resources/schema/document-epub.yml
12921 views
1- name: identifier2tags:3formats: [$epub-all]4schema:5anyOf:6- string7- object:8closed: true9properties:10text:11string:12description: The identifier value.13schema:14enum: ['ISBN-10', 'GTIN-13', 'UPC',15'ISMN-10', 'DOI', 'LCCN', 'GTIN-14',16'ISBN-13', 'Legal deposit number',17'URN', 'OCLC', 'ISMN-13',18'ISBN-A', 'JP', 'OLCC'19]20description: The identifier schema (e.g. `DOI`, `ISBN-A`, etc.)21description: The identifier for this publication.2223- name: creator24tags:25formats: [$epub-all]26schema:27ref: epub-contributor28description: Creators of this publication.2930- name: contributor31tags:32formats: [$epub-all]33schema:34ref: epub-contributor35description: Contributors to this publication.363738- name: type39tags:40formats: [$epub-all]41schema: string42description:43short: Text describing the specialized type of this publication.44long: |45Text describing the specialized type of this publication.4647An informative registry of specialized EPUB Publication48types for use with this element is maintained in the49[TypesRegistry](https://www.w3.org/publishing/epub32/epub-packages.html#bib-typesregistry),50but Authors may use any text string as a value.5152- name: format53tags:54formats: [$epub-all]55schema: string56description: Text describing the format of this publication.5758- name: relation59tags:60formats: [$epub-all]61schema: string62description: Text describing the relation of this publication.6364- name: coverage65tags:66formats: [$epub-all]67schema: string68description: Text describing the coverage of this publication.6970- name: rights71tags:72formats: [$epub-all]73schema: string74description: Text describing the rights of this publication.7576- name: belongs-to-collection77tags:78formats: [$epub-all]79schema: string80description: Identifies the name of a collection to which the EPUB Publication belongs.8182- name: group-position83tags:84formats: [$epub-all]85schema: number86description: |87Indicates the numeric position in which this publication88belongs relative to other works belonging to the same89`belongs-to-collection` field.9091- name: page-progression-direction92tags:93formats: [$epub-all]94schema:95enum: [ltr, rtl]96description: Sets the global direction in which content flows (`ltr` or `rtl`)9798- name: ibooks99description: iBooks specific metadata options.100tags:101formats: [$epub-all]102schema:103object:104closed: true105properties:106version:107string:108description: What is new in this version of the book.109specified-fonts:110boolean:111description: Whether this book provides embedded fonts in a flowing or fixed layout book.112scroll-axis:113enum: [vertical, horizontal, default]114description: The scroll direction for this book (`vertical`, `horizontal`, or `default`)115116117- name: epub-metadata118tags:119formats: [$epub-all]120schema: path121description:122short: |123Look in the specified XML file for metadata for the EPUB.124The file should contain a series of [Dublin Core elements](https://www.dublincore.org/specifications/dublin-core/dces/).125long: |126Look in the specified XML file for metadata for the EPUB.127The file should contain a series of [Dublin Core elements](https://www.dublincore.org/specifications/dublin-core/dces/).128For example:129130```xml131<dc:rights>Creative Commons</dc:rights>132<dc:language>es-AR</dc:language>133```134135By default, pandoc will include the following metadata elements:136`<dc:title>` (from the document title), `<dc:creator>` (from the137document authors), `<dc:date>` (from the document date, which should138be in [ISO 8601 format]), `<dc:language>` (from the `lang`139variable, or, if is not set, the locale), and `<dc:identifier140id="BookId">` (a randomly generated UUID). Any of these may be141overridden by elements in the metadata file.142143Note: if the source document is Markdown, a YAML metadata block144in the document can be used instead.145146147- name: epub-subdirectory148tags:149formats: [$epub-all]150schema:151anyOf: [path, null]152default: EPUB153description: |154Specify the subdirectory in the OCF container that is to hold the155EPUB-specific contents. The default is `EPUB`. To put the EPUB156contents in the top level, use an empty string.157158- name: epub-fonts159tags:160formats: [$epub-all]161schema:162arrayOf: path163description:164short: "Embed the specified fonts in the EPUB"165long: |166Embed the specified fonts in the EPUB. Wildcards can also be used: for example,167`DejaVuSans-*.ttf`. To use the embedded fonts, you will need to add declarations168like the following to your CSS:169170```css171@font-face {172font-family: DejaVuSans;173font-style: normal;174font-weight: normal;175src:url("DejaVuSans-Regular.ttf");176}177```178179- name: epub-chapter-level180tags:181formats: [$epub-all]182schema: number183default: 1184description:185short: |186Specify the heading level at which to split the EPUB into separate187chapter files.188long: |189Specify the heading level at which to split the EPUB into separate190chapter files. The default is to split into chapters at level-1191headings. This option only affects the internal composition of the192EPUB, not the way chapters and sections are displayed to users. Some193readers may be slow if the chapter files are too large, so for large194documents with few level-1 headings, one might want to use a chapter195level of 2 or 3.196197- name: epub-cover-image198tags:199formats: [$epub-all]200schema: path201description: |202Use the specified image as the EPUB cover. It is recommended203that the image be less than 1000px in width and height.204205- name: epub-title-page206schema: boolean207default: true208tags:209formats: [$epub-all]210description: If false, disables the generation of a title page.211212213