idml_docx-to-docbook_epub-demo

Repository
Git URLhttps://github.com/transpect/idml_docx-to-docbook_epub-demo.git
SVN URLhttps://github.com/transpect/idml_docx-to-docbook_epub-demo
Base URI

Source ⬇

trdemo:convert-input

trdemo:convert-input

This step takes the paths document and converts either a DOCX or IDML file first to flat and then to evolved Hub XML.

Dependencies

Synopsis

<trdemo:convert-input xmlns:trdemo="http://transpect.io/demo">
  <p:input port="paths"/>
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true"/>
  <p:option name="debug" select="'yes'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
</trdemo:convert-input>

trdemo:epub-convert

Dependencies

Synopsis

<trdemo:epub-convert xmlns:trdemo="http://transpect.io/demo">
  <p:input port="source" primary="true"/>
  <p:input port="paths" primary="false"/>
  <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="status-dir-uri" select="'status'"/>
  <p:option name="local-css" select="'false'"/>
</trdemo:epub-convert>

trdemo:hub2dbk

Dependencies

Synopsis

<trdemo:hub2dbk xmlns:trdemo="http://transpect.io/demo">
  <p:input port="source" primary="true"/>
  <p:input port="paths" primary="false"/>
  <p:output port="result" primary="true"/>
  <p:output port="dbk-htmltables"/>
  <p:option name="debug" select="'yes'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
</trdemo:hub2dbk>

trdemo:hub2html

Dependencies

Synopsis

<trdemo:hub2html xmlns:trdemo="http://transpect.io/demo">
  <p:input port="source" primary="true"/>
  <p:input port="paths" primary="false"/>
  <p:output port="result"/>
  <p:option name="debug" select="'no'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
</trdemo:hub2html>

trdemo:main

trdemo:main

This is the frontend pipeline for the transpect demo. It checks and converts a DOCX or IDML file to HTML, EPUB and Docbook XML and provides an HTML report.

Dependencies

Synopsis

<trdemo:main xmlns:trdemo="http://transpect.io/demo">
  <p:input port="conf" primary="true"/>
  <p:input port="schema" primary="false"/>
  <p:output port="result" primary="true"/>
  <p:output port="docbook" primary="false"/>
  <p:output port="docbook-htmltables" primary="false"/>
  <p:output port="html" primary="false"/>
  <p:option name="file" required="true"/>
  <p:option name="debug" select="'yes'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
</trdemo:main>

trdemo:patch-and-copy-filerefs

trdemo:patch-and-copy-filerefs

This step patches absolute and relative file references in a Hub file. The new location is relative to the file-uri provided in the paths document. Accordingly, the referenced files are copied to the new location.

Dependencies

Synopsis

<trdemo:patch-and-copy-filerefs xmlns:trdemo="http://transpect.io/demo">
  <p:input port="source" primary="true"/>
  <p:input port="paths" primary="false"/>
  <p:output port="result"/>
  <p:option name="assets-dirname" select="'assets'"/>
  <p:option name="debug" select="'yes'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
</trdemo:patch-and-copy-filerefs>

trdemo:paths

trdemo:paths

The paths step evaluates dynamically publisher, book series, work name and paths by the input filename. It provides a c:param-set document for subsequent steps.

Dependencies

Synopsis

<trdemo:paths xmlns:trdemo="http://transpect.io/demo">
  <p:input port="conf" primary="true"/>
  <p:input port="params"/>
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true"/>
  <p:option name="file" required="false" select="''"/>
  <p:option name="pipeline" select="'unknown'"/>
  <p:option name="debug" select="'yes'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="progress" select="'yes'"/>
  <p:option name="status-dir-uri" select="'status'"/>
  <p:option name="interface-language" select="'en'"/>
  <p:option name="clades" select="''"/>
</trdemo:paths>

trdemo:validate

Dependencies

Synopsis

<trdemo:validate xmlns:trdemo="http://transpect.io/demo">
  <p:input port="source" primary="true"/>
  <p:input port="paths" primary="false"/>
  <p:input port="schema" primary="false"/>
  <p:output port="result" primary="true"/>
  <p:output port="report" sequence="true" primary="false"/>
  <p:option name="check" required="false" select="'yes'"/>
  <p:option name="debug" select="'yes'"/>
  <p:option name="debug-dir-uri" select="'debug'"/>
  <p:option name="status-dir-uri" select="'status'"/>
</trdemo:validate>

GitHub sync date: 2017-03-24+01:00