EpubWordsContentPositionTimelineMappingOptions

data class EpubWordsContentPositionTimelineMappingOptions(val audioElementWeight: Int = 10, val iframeElementWeight: Int = 10, val imageElementWeight: Int = 10, val videoElementWeight: Int = 10)

Options used when creating EPUB ContentPositionTimeline objects with WORDS as unit of measurement.

In publications with lots of media, it might be desirable to count media elements (or other replaced elements) as X number of words to get a better estimation of the "length" of the rendered publication. By default each replaced element is counted as 10 words.

Constructors

fun EpubWordsContentPositionTimelineMappingOptions(audioElementWeight: Int = 10, iframeElementWeight: Int = 10, imageElementWeight: Int = 10, videoElementWeight: Int = 10)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The number of words each audio element should be counted as.

Link copied to clipboard

The number of words each iframe element should be counted as.

Link copied to clipboard

The number of words each image element should be counted as.

Link copied to clipboard

The number of words each video element should be counted as.