Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This completes all of the stylesheet updates needed to produce working (but not necessarily particularly attractive) EPUB files. Affects: #13
- Loading branch information
Showing
14 changed files
with
663 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
...umentation/src/main/resources/com/io7m/xstructural/documentation/cmdline-epub-example.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
$ xstructural epub \ | ||
--sourceFile com.io7m.xstructural.documentation/target/documentation/main.xml \ | ||
--outputDirectory out \ | ||
--outputFileName example.epub | ||
xstructural: XSValidator: INFO: validate (xstructural) com.io7m.xstructural.documentation/target/documentation/main.xml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e168.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e311.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e33.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/colophon.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/cover.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e109.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e331.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e14.xhtml | ||
xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e16.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/d2e168.xhtml out/epub/OEBPS/d2e168.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/d2e311.xhtml out/epub/OEBPS/d2e311.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/d2e33.xhtml out/epub/OEBPS/d2e33.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/colophon.xhtml out/epub/OEBPS/colophon.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/cover.xhtml out/epub/OEBPS/cover.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/d2e109.xhtml out/epub/OEBPS/d2e109.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/d2e331.xhtml out/epub/OEBPS/d2e331.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/toc.xhtml out/epub/OEBPS/toc.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/d2e14.xhtml out/epub/OEBPS/d2e14.xhtml | ||
xstructural: XSEPUBCreator: INFO: copy out/d2e16.xhtml out/epub/OEBPS/d2e16.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry mimetype | ||
xstructural: XSEPUBCreator: INFO: zip entry content.opf | ||
xstructural: XSEPUBCreator: INFO: zip entry META-INF/container.xml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/d2e168.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/d2e311.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/d2e33.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/colophon.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/cover.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/d2e109.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/d2e331.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/toc.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/d2e14.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/d2e16.xhtml | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/reset.css | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/structural-epub.css | ||
xstructural: XSEPUBCreator: INFO: zip entry OEBPS/document.css | ||
xstructural: XSEPUBCreator: INFO: validating out/example.epub | ||
xstructural: XSEPUBCreator: INFO: epubcheck: stdout: Validating using EPUB version 3.2 rules. | ||
xstructural: XSEPUBCreator: INFO: epubcheck: stdout: No errors or warnings detected. | ||
xstructural: XSEPUBCreator: INFO: epubcheck: stdout: Messages: 0 fatals / 0 errors / 0 warnings / 0 infos | ||
xstructural: XSEPUBCreator: INFO: epubcheck: stdout: | ||
xstructural: XSEPUBCreator: INFO: epubcheck: stdout: EPUBCheck completed | ||
|
||
$ ls -alF out/ | ||
total 128 | ||
drwxr-xr-x 3 xs xs 4096 Jun 26 12:59 ./ | ||
drwxr-xr-x 15 xs xs 4096 Jun 26 12:59 ../ | ||
-rw-r--r-- 1 xs xs 713 Jun 26 12:59 colophon.xhtml | ||
-rw-r--r-- 1 xs xs 566 Jun 26 12:59 cover.xhtml | ||
-rw-r--r-- 1 xs xs 6256 Jun 26 12:59 d2e109.xhtml | ||
-rw-r--r-- 1 xs xs 3572 Jun 26 12:59 d2e14.xhtml | ||
-rw-r--r-- 1 xs xs 4077 Jun 26 12:59 d2e16.xhtml | ||
-rw-r--r-- 1 xs xs 10530 Jun 26 12:59 d2e168.xhtml | ||
-rw-r--r-- 1 xs xs 3767 Jun 26 12:59 d2e311.xhtml | ||
-rw-r--r-- 1 xs xs 7158 Jun 26 12:59 d2e33.xhtml | ||
-rw-r--r-- 1 xs xs 36763 Jun 26 12:59 d2e331.xhtml | ||
drwxr-xr-x 4 xs xs 4096 Jun 26 12:59 epub/ | ||
-rw-r--r-- 1 xs xs 0 Jun 26 12:59 epub-resources.txt | ||
-rw-r--r-- 1 xs xs 19337 Jun 26 12:59 example.epub | ||
-rw-r--r-- 1 xs xs 99 Jun 26 12:59 messages.log | ||
-rw-r--r-- 1 xs xs 2460 Jun 26 12:59 toc.xhtml | ||
-rw-r--r-- 1 xs xs 2501 Jun 26 12:59 trace.xml |
69 changes: 69 additions & 0 deletions
69
...ural.documentation/src/main/resources/com/io7m/xstructural/documentation/cmdline-epub.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<Section xmlns="urn:com.io7m.structural:7:0" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
title="XHTML"> | ||
|
||
<Subsection title="Name"> | ||
<Paragraph> | ||
<Term type="command">epub</Term> - Produce an EPUB file | ||
</Paragraph> | ||
</Subsection> | ||
|
||
<Subsection title="Description"> | ||
<Paragraph> | ||
The <Term type="command">epub</Term> command produces a self-contained EPUB file for the given input document. | ||
The produced EPUB file is unconditionally checked with | ||
<LinkExternal target="https://github.com/w3c/epubcheck">EPUBCheck</LinkExternal>. | ||
</Paragraph> | ||
<FormalItem title="Parameters"> | ||
<Table type="parametersTable"> | ||
<Columns> | ||
<Column>Parameter</Column> | ||
<Column>Type</Column> | ||
<Column>Required</Column> | ||
<Column>Description</Column> | ||
</Columns> | ||
<Row> | ||
<Cell><Term type="parameter">--messagesFile</Term></Cell> | ||
<Cell>Path</Cell> | ||
<Cell>false</Cell> | ||
<Cell>A file that will contain XSLT debugging messages.</Cell> | ||
</Row> | ||
<Row> | ||
<Cell><Term type="parameter">--traceFile</Term></Cell> | ||
<Cell>Path</Cell> | ||
<Cell>false</Cell> | ||
<Cell>A file that will contain XSLT trace messages.</Cell> | ||
</Row> | ||
<Row> | ||
<Cell><Term type="parameter">--sourceFile</Term></Cell> | ||
<Cell>Path</Cell> | ||
<Cell>true</Cell> | ||
<Cell>The path to the input document.</Cell> | ||
</Row> | ||
<Row> | ||
<Cell><Term type="parameter">--outputDirectory</Term></Cell> | ||
<Cell>Path</Cell> | ||
<Cell>true</Cell> | ||
<Cell>The directory to which output files will be written.</Cell> | ||
</Row> | ||
<Row> | ||
<Cell><Term type="parameter">--outputFileName</Term></Cell> | ||
<Cell>Path</Cell> | ||
<Cell>true</Cell> | ||
<Cell>The name of the output file.</Cell> | ||
</Row> | ||
</Table> | ||
</FormalItem> | ||
</Subsection> | ||
|
||
<Subsection title="Example"> | ||
<FormalItem title="Example" type="example"> | ||
<Verbatim> | ||
<xi:include parse="text" | ||
href="cmdline-epub-example.txt"/> | ||
</Verbatim> | ||
</FormalItem> | ||
</Subsection> | ||
</Section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
...xstructural.documentation/src/main/resources/com/io7m/xstructural/documentation/usage.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +0,0 @@ | ||
Usage: xstructural [options] [command] [command options] | ||
Options: | ||
--verbose | ||
Set the minimum logging verbosity level | ||
Default: info | ||
Possible Values: [trace, debug, info, warn, error] | ||
Commands: | ||
validate Validate a structural document | ||
Usage: validate [options] | ||
Options: | ||
* --sourceFile | ||
The source document | ||
--verbose | ||
Set the minimum logging verbosity level | ||
Default: info | ||
Possible Values: [trace, debug, info, warn, error] | ||
|
||
xhtml Transform a structural document to XHTML | ||
Usage: xhtml [options] | ||
Options: | ||
--brandingFile | ||
The branding XML file | ||
--copyResources | ||
Should resources (such as CSS) be copied into the output | ||
directory? | ||
Default: true | ||
--messagesFile | ||
The output file for XSLT messages | ||
* --outputDirectory | ||
The output directory | ||
* --sourceFile | ||
The source document | ||
--stylesheet | ||
The stylesheet | ||
Default: SINGLE_FILE | ||
Possible Values: [SINGLE_FILE, MULTIPLE_FILE] | ||
--traceFile | ||
The output file for trace messages | ||
--verbose | ||
Set the minimum logging verbosity level | ||
Default: info | ||
Possible Values: [trace, debug, info, warn, error] | ||
|
||
schema Export the structural schemas to files | ||
Usage: schema [options] | ||
Options: | ||
* --outputDirectory | ||
The output directory | ||
--replace | ||
Replace output files if they already exist | ||
Default: false | ||
--verbose | ||
Set the minimum logging verbosity level | ||
Default: info | ||
Possible Values: [trace, debug, info, warn, error] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.