Colibrio Reader Framework API - Cloud license
    Preparing search index...

    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.

    interface IEpubWordsContentPositionTimelineMappingOptions {
        audioElementWeight?: number;
        iframeElementWeight?: number;
        imageElementWeight?: number;
        videoElementWeight?: number;
    }

    Properties

    audioElementWeight?: number

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

    10
    
    iframeElementWeight?: number

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

    10
    
    imageElementWeight?: number

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

    10
    
    videoElementWeight?: number

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

    10