The purpose of this transformer is to split Daisy DTB file sets into subvolumes of a given size.
In its current version the transformer supports splitting Daisy 2.02, Z39.86-2002 and Z39.86-2005 file sets.
The programmatic flow of this transformer in summary:
org.daisy.util.fileset.interfaces.Fileset instance on the input file (with DTD validation turned on).org.daisy.util.fileset.FilesetType
instantiate an appropriate extension of se_tpb_dtbSplitterMerger.spilt.DtbSplitter:
se_tpb_dtbSplitterMerger.spilt.DtbSplitter202 for FilesetType.DAISY_202se_tpb_dtbSplitterMerger.spilt.DtbSplitter3 for FilesetType.Z3986This transformer is meant for splitting Daisy 2.02, Z39.86-2002 or Z39.86-2005 file sets. If an org.daisy.util.fileset.interfaces.Fileset cannot be built or the built Fileset is not of a supported type, an exception will be thrown.
In the output directory there will be a number of subfolders containing the subvolumes of the split Daisy DTB file set.
Distribution of the SMIL and media files in the subvolumes is described in modified copies of the navigation files - ncc and full text files - placed in each subvolume. Each modified copy of a navigation file contains references to the SMIL files available in a given subvolume. References to SMIL files placed in another subvolume are replaced with prompt SMIL references telling the reader of a book to which subvolume he/she should move to be able to continue reading.
Distribution of the SMIL and media files in the subvolumes is described in the distinfo.dinf file.
On error, this transformer will send a fatal message, then throw an exception and abort.
See further Parameters.
None.
The abstract class se_tpb_dtbSplitterMerger.spilt.DtbSplitter implements base functionality needed for splitting DTB Daisy file sets, that can be used or overridden by its subclasses. Current extensions are:
se_tpb_dtbSplitterMerger.spilt.DtbSplitter202se_tpb_dtbSplitterMerger.spilt.DtbSplitter3The abstract class se_tpb_dtbSplitterMerger.spilt.DtbSplitter may be extended to support new types of Daisy DTB file sets when they come up.
Piotr Kiernicki, TPB
LGPL