<
p:declare-step xmlns:p=
"http://www.w3.org/ns/xproc" xmlns:px=
"http://www.daisy.org/ns/pipeline/xproc" xmlns:cx=
"http://xmlcalabash.com/ns/extensions" xmlns:c=
"http://www.w3.org/ns/xproc-step" xmlns:xs=
"http://www.w3.org/2001/XMLSchema" type=
"px:epub3-to-ssml" version=
"1.0" exclude-inline-prefixes=
"#all" name=
"main">
<
p:documentation>
<
p>Specialization of the SSML generation for EPUB3</
p>
</
p:documentation>
<
p:input port=
"fileset.in" sequence=
"false"/>
<
p:input port=
"content.in" primary=
"true" sequence=
"false"/>
<
p:input port=
"sentence-ids" sequence=
"false"/>
<
p:input port=
"skippable-ids"/>
<
p:input port=
"config"/>
<
p:option name=
"user-lexicons" cx:as=
"xs:anyURI*" select=
"()"/>
<
p:output port=
"result" primary=
"true" sequence=
"true">
<
p:documentation>The SSML output.</
p:documentation>
<
p:pipe port=
"result" step=
"ssml-gen"/>
</
p:output>
<
p:import href=
"http://www.daisy.org/pipeline/modules/tts-common/library.xpl">
<
p:documentation>
px:text-to-ssml
</
p:documentation>
</
p:import>
<
p:import href=
"http://www.daisy.org/pipeline/modules/mathml-utils/library.xpl">
<
p:documentation>
px:mathml-to-ssml
</
p:documentation>
</
p:import>
<
p:xslt>
<
p:documentation>
Prepare HTML document:
- create text nodes for page number
- handle inline SSML phonemes
</
p:documentation>
<
p:input port=
"stylesheet">
<
p:document href=
"prepare-html.xsl"/>
</
p:input>
<
p:input port=
"parameters">
<
p:empty/>
</
p:input>
</
p:xslt>
<
px:mathml-to-ssml>
<
p:documentation>Transform MathML to SSML islands</
p:documentation>
</
px:mathml-to-ssml>
<
px:text-to-ssml name=
"ssml-gen">
<
p:input port=
"fileset.in">
<
p:pipe port=
"fileset.in" step=
"main"/>
</
p:input>
<
p:input port=
"sentence-ids">
<
p:pipe port=
"sentence-ids" step=
"main"/>
</
p:input>
<
p:input port=
"skippable-ids">
<
p:pipe port=
"skippable-ids" step=
"main"/>
</
p:input>
<
p:with-option name=
"user-lexicons" select=
"$user-lexicons"/>
<
p:with-option name=
"word-element" select=
"'span'"/>
<
p:with-option name=
"word-attr" select=
"'role'"/>
<
p:with-option name=
"word-attr-val" select=
"'word'"/>
</
px:text-to-ssml>
<
p:sink/>
</
p:declare-step>