epub-slicer formats

23rd June 2018

epubble format

The epubble format packages publications as a ~TiddlyWiki plugin. They can be created from off-the-shelf .epub files by using the epub-slicer plugin, or newly created publications can be authored directly in the new format for enhanced flexibility.

Plugin Tiddler

The fields of an epubble publication plugin are as follows:

FieldDescription
descriptionShort description of the publication
epub-creatorIdentifies the person or entity that produced the publication
epub-titleThe original title of the publication (see below)
listThe shortnames of the tabs to be displayed in control panel for the plugin (generally just "readme")
plugin-typeAlways set to plugin
titleBy convention, the title of the plugin is $:/plugins/epubble/ plus the human readable title of the publication
typeAlways set to application/json

This filter expression lists all the loaded epubble plugins:

[plugin-type[plugin]has[epub-title]]

Spine Tiddler

The spine tiddler contains the overall structure of the publication.

It contains the following fields:

FieldDescription
cover-imageThe title of the tiddler containing the cover image for the publication
dc-creatorThe creator responsible for the publication
dc-titleThe title of the publication
listLists the titles of the tiddlers describing the sections of the publication
roleAlways set to epubble-spine
table-of-contentsThe title of the tiddler containing the table of contents for the publication (see below)
titleMatches the epub-title field of the publication plugin

Default Tiddlers

Each epubble publication plugin contains a $:/DefaultTiddlers tiddler that lists the individual tiddlers making up the default story river for the publication.

Publication Sections

Publication section tiddlers split the publication up into logical groups of tiddler (e.g. corresponding to a chapter in a novel; for converted epubs each section corresponds to a separate HTML file). Publication tiddlers are listed in the list field of the spine tiddler, and contain the following fields:

FieldDescription
listLists the titles of the content tiddlers making up this section
roleAlways set to epubble-content
slicer-output-modeSpecific to epub-slicer (eg "html")
slicer-rulesSpecific to epub-slicer (eg "html-linear")
titleMatches the title specified in the spine tiddler
toc-typeAlways set to document

Content Tiddlers

Sequences of content tiddlers are the smallest level of structure within a publication, typically corresponding to a paragraph. Content tiddlers have the following fields:

FieldDescription
roleAlways set to epubble-content
tagsTagged with the title of the section tiddler to which this content tiddler belongs
titleGenerated title for the tiddler (the title isn't displayed to users)
toc-typeAlways set to paragraph

Table of Contents

The table of contents referenced in the spine tiddler is structured as usual for TiddlyWiki, with each child entry being tagged with the title of its parent. The caption field carries the text of the TOC entry.