Step dtbook-cleaner.script {http://www.daisy.org/ns/pipeline/xproc}

DTBook Cleaner

Apply cleanup routines and optionally tag sentences on a given DTBbook

Online documentation
Authors:
Name:
Nicolas Pavie
E-mail:
pavie.nicolas@gmail.com
Organisation:
DAISY Consortium
Defined in:

Input Ports

PortDescription
source primary sequence

DTBook file(s)

One or more DTBook files to be cleaned

Options

Local NameNamespace URIDefaultDescription
result required

DTBook file(s)

Cleaned DTBooks

repair'false'

Repair the DTBook

Apply repair routines on the DTBook.

tidy'false'

Tidy up the DTBook

Apply tidying routines on the DTBook.

simplifyHeadingLayout'false'

Tidy - Simplify headings layout

Simplify the level structure Redundant level structure is sometimes used to mimic the original layout, but can pose a problem in some circumstances. By selecting this option the script simplifies the level structure by removing redundant levels (subordinate levels will be moved upwards). Note that the headings of the affected levels will also change, which will alter the appearance of the layout.

externalizeWhitespace'false'

Tidy - Externalize whitespaces

Externalize leading and trailing whitespace from em, strong, sub, sup, pagenum, noteref.

documentLanguage''

Tidy - Document language

Set a document language

narrator'false'

Cleanup the document for audio synthesis

Apply cleaning routines on the document to prepare it for text-to-speech processes.

publisher''

Narrator - Publisher

Publisher metadata (dc:Publisher) to be added if none is defined in the DTBook

ApplySentenceDetection'false'

Apply sentences detection

Encapsulate sentences within the document

WithDoctype'true'

Include doctype in resulting DTBook(s)

Include doctype in resulting DTBook(s) The resulting DTBook will have a standard DTBook 2005-3 doctype, optionally with MathML declaration if MathML is present in the document.