DAISY 2.02 to EPUB 3 (2024)

The “DAISY 2.02 to EPUB 3” script will convert a DAISY 2.02 DTB (Digital Talking Book) into an EPUB 3 publication.This page describes the steps, comments and issues related to this transformation.

Table of contents

  • DAISY 2.02 To EPUB 3
    • Table of contents
    • Synopsis
      • Inputs
      • Outputs
      • Options
    • Example running from command line
    • Outline
    • Errors
    • See Also
      • Main Specifications
      • Related Specifications

Synopsis

Inputs

Outputs

  • EPUB 3

Options

  • Include Media Overlay

    Whether or not to include media overlays and associated audio files.

    Possible values: true or false

    Default value: true

  • Backwards compatible

    Whether or not to include NCX-file, OPF guide element and backwards-compatible metadata.

    Possible values: true or false

    Default value: true

  • EPUB 3 file name

    By default, the file name is the dc:identifier with a ".epub" file extension.

    By default, the file name is the dc:identifier with a ".epub" file extension.

    This option can be used to set a custom file name.

    Possible values: Any <string>

    Default value:

Usage: dp2 [GLOBAL_OPTIONS] daisy202-to-epub3 [OPTIONS]Options:
--source source
--mediaoverlay [mediaoverlay]Include Media Overlay (default: true)
--compatibility-mode [compatibility-mode]Backwards compatible (default: true)
--epub-filename [epub-filename]EPUB 3 file name (default: )
-o,--output [OUTPUT]Path where to store the results. This option is mandatory when the job is not executed in the background
-z,--zipWrite the output to a zip file rather than to a folder
-n,--nicename [NICENAME]Set job's nice name
-r,--priority [PRIORITY]Set job's priority (high|medium|low)
-q,--quietDo not print the job's messages
-p,--persistentDelete the job after it is executed
-b,--backgroundSends the job and exits

Example running from command line

On Linux and Mac OS X:

$ cli/dp2 daisy202-to-epub3 --x-href samples/daisy202/dontworrybehappy/ncc.html --x-output ~/Desktop/out --x-mediaoverlay false --x-compatibility-mode false

On Windows:

$ cli\dp2.exe daisy202-to-epub3 --x-href samples\daisy202\dontworrybehappy\ncc.html --x-output C:\Pipeline2-Output --x-mediaoverlay false --x-compatibility-mode false

This command will create two entries in the output directory. One is a folder called “epub”, which is a temporary directory created by the converter. The second is the resulting EPUB 3 file. The EPUB 3 file is given a name based on the dc:identifier and dc:title metadata elements from the original NCC; “dc:identifier - dc:title.epub”.

Outline

The high-level conversion workflow is as follows:

  • Get the SMIL-based reading order from the NCC
  • Load all the SMILs and upgrade them to EPUB 3 Media Overlays
  • Extract content document references from each SMIL
  • Make a content-based reading order
  • Load all the content documents, upgrade them to EPUB 3 Content Documents
  • If mediaoverlay = ‘true’
    • Rearrange the Media Overlays to match the Content Documents
    • Get all referenced audio, images, etc.
  • Make the EPUB 3 Navigation Document based on the NCC
  • Make the EPUB 3 Package Document
  • Store the EPUB 3 Publication in a OCF ZIP Container

Errors

This is a list of defined errors for this script. Each error has a unique error code for easy identification.

  • PDE01: href must be a valid URI. In practice this simply means that the path must be prefixed with “file://”, and in Windows, all directory separators () must be replaced with forward slashes (/).
  • PDE02: output must be a valid URI. In practice this simply means that the path must be prefixed with “file://”, and in Windows, all directory separators () must be replaced with forward slashes (/).
  • PDE03: When given, mediaoverlay must be either “true” (default) or “false”.
  • PDE04: When given, compatibility-mode must be either “true” (default) or “false”.

See Also

Main Specifications

DAISY 2.02 Specification

EPUB 3 Overview

Related Specifications

DAISY 2.02 to EPUB 3 (2024)

FAQs

How do I convert EPUB 2 to EPUB 3? ›

To start a conversion to EPUB 3, open an EPUB 2 file and go to the 'Plugins' menu again. A new option, 'Output' has appeared, which has the 'ePub3-itizer' plugin. Select it and the conversion will happen automatically.

Should I use EPUB 2 or 3? ›

ePub 2 is the older format and was adopted by most organizations as their standard eBook format. However, ePub 2 offers minimal controls for formatting text and images to its users. On the other hand, ePub 3 does a much better job when it comes to formatting text and images.

How do I convert a PDF to ePub3? ›

How to Convert PDF to a Fixed Layout ePUB Format - A Simple Step-By-Step Guide to epub3 conversion:
  1. Step 1 - Import your PDF file: ...
  2. Step 2 - Choose the Fixed Layout ePUB Template: ...
  3. Step 3 - Choose How to Import your Fonts: ...
  4. Step 4 - Preview and Edit your File: ...
  5. Step 5 - Prepare your Final Copy:
Jan 15, 2024

What is the difference between EPUB and EPUB 3? ›

ePUB 3 is the latest version of ePUB, and it is an HTML5 standard-based file format. It allows the ePUB 3 files to contain videos, audio, and interactive multimedia elements. In a nutshell, it is an enhanced and more versatile version of the ePUB format.

Top Articles
Latest Posts
Article information

Author: Arline Emard IV

Last Updated:

Views: 6494

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Arline Emard IV

Birthday: 1996-07-10

Address: 8912 Hintz Shore, West Louie, AZ 69363-0747

Phone: +13454700762376

Job: Administration Technician

Hobby: Paintball, Horseback riding, Cycling, Running, Macrame, Playing musical instruments, Soapmaking

Introduction: My name is Arline Emard IV, I am a cheerful, gorgeous, colorful, joyous, excited, super, inquisitive person who loves writing and wants to share my knowledge and understanding with you.