xml.xproc.epub3-to-pef.xpl Maven / Gradle / Ivy
EPUB 3 to PEF
Transforms a EPUB 3 publication into a PEF.
Extends XML to PEF.
Input EPUB 3
The EPUB you want to convert to braille. You may alternatively use the EPUB package document (the OPF-file) if your input is a unzipped/"exploded" version of an EPUB.
Apply document-specific CSS
If this option is enabled, any pre-existing CSS in the EPUB with `media="embossed"` will be used.
The input EPUB may already contain CSS that applies to embossed media (using media="embossed").
Such document-specific CSS takes precedence over any CSS attached when running this script.
For instance, if the EPUB already contains the rule `p { padding-left: 2; }`,
and using this script the rule `p#docauthor { padding-left: 4; }` is provided, then the
`padding-left` property will get the value `2` because that's what was defined in the EPUB,
even though the provided CSS is more specific.