epub2epub

XProc library for migrating mostly older EPUBs to newer EPUB standards

Repository
Git URL https://github.com/transpect/epub2epub.git
SVN URL https://github.com/transpect/epub2epub
Base URI http://transpect.io/epub2epub/

Source ⬇

e2e:copy-resources

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/copy-resources.xpl"/>

Dependencies

Synopsis

<e2e:copy-resources xmlns:e2e="http://transpect.io/epub2epub">
  <p:input port="source"/>
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true" primary="false"/>
  <p:option name="outdir"/>
  <p:option name="remove-chars-regex" select="'\s'"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="terminate-on-error" select="'no'"/>
</e2e:copy-resources>

e2e:create-config

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/create-config.xpl"/>

Dependencies

Synopsis

<e2e:create-config xmlns:e2e="http://transpect.io/epub2epub">
  <p:input port="source"/>
  <p:output port="result"/>
  <p:option name="outdir"/>
  <p:option name="epub-version" select="'3.0'"/>
  <p:option name="html-subdir-name" select="'content'"/>
  <p:option name="remove-chars-regex" select="'\s'"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
</e2e:create-config>

e2e:epub2epub

Pipeline to migrate an EPUB2. Consumes an EPUB file and converts output suitable for processing with the epubtools module to generate a new EPUB.

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/epub2epub.xpl"/>

Dependencies

Synopsis

<e2e:epub2epub xmlns:e2e="http://transpect.io/epub2epub">
  <p:output port="result" primary="true"/>
  <p:output port="html" primary="false"/>
  <p:output port="report" sequence="true" primary="false"/>
  <p:output port="input-for-schematron" sequence="true" primary="false"/>
  <p:option name="href"/>
  <p:option name="outdir" select="'out'"/>
  <p:option name="create-epub" select="'yes'"/>
  <p:option name="epub-version" select="'EPUB3'"/>
  <p:option name="html-subdir-name" select="'content'"/>
  <p:option name="toc-page" select="4"/>
  <p:option name="remove-chars-regex" select="'([\p{Zs}]|%20)'"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
  <p:option name="terminate-on-error" select="'no'"/>
</e2e:epub2epub>

e2e:error-handler

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/error-handler.xpl"/>

Dependencies

Synopsis

<e2e:error-handler xmlns:e2e="http://transpect.io/epub2epub">
  <p:input port="source"/>
  <p:output port="result"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="pipeline-step"/>
  <p:option name="terminate-on-error" select="'no'"/>
</e2e:error-handler>

e2e:load-html

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/load-html.xpl"/>

Dependencies

Synopsis

<e2e:load-html xmlns:e2e="http://transpect.io/epub2epub">
  <p:input port="source"/>
  <p:output port="result" primary="true"/>
  <p:output port="html" primary="false"/>
  <p:output port="report" sequence="true" primary="false"/>
  <p:option name="href"/>
  <p:option name="remove-chars-regex" select="'\s'"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="terminate-on-error" select="'no'"/>
</e2e:load-html>

e2e:load-rootfile

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/load-rootfile.xpl"/>

Dependencies

Synopsis

<e2e:load-rootfile xmlns:e2e="http://transpect.io/epub2epub">
  <p:input port="source"/>
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true" primary="false"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="terminate-on-error" select="'no'"/>
</e2e:load-rootfile>

e2e:ncx-to-nav

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/ncx-to-nav.xpl"/>

Dependencies

Synopsis

<e2e:ncx-to-nav xmlns:e2e="http://transpect.io/epub2epub">
  <p:input port="source"/>
  <p:output port="result"/>
  <p:option name="toc-page" select="4"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
</e2e:ncx-to-nav>

e2e:unzip

Import

<p:import href="https://raw.githubusercontent.com/transpect/epub2epub/main/xpl/unzip.xpl"/>

Dependencies

Synopsis

<e2e:unzip xmlns:e2e="http://transpect.io/epub2epub">
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true" primary="false"/>
  <p:option name="href" required="true"/>
  <p:option name="outdir" required="true"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
  <p:option name="terminate-on-error" select="'no'"/>
</e2e:unzip>

GitHub sync date: 2024-04-23+02:00