Package-level declarations

Types

Link copied to clipboard
interface Content

Provides an iterable list of content Elements.

Link copied to clipboard

Provides a way to extract the raw Content of a Publication.

Link copied to clipboard

A tokenizer splitting a Content.Element into smaller pieces.

Link copied to clipboard
class DefaultContentService(manifest: Manifest, container: Container<Resource>, services: PublicationServicesHolder, resourceContentIteratorFactories: List<ResourceContentIteratorFactory>) : ContentService

Default implementation of DefaultContentService, delegating the content parsing to ResourceContentIteratorFactory.

Link copied to clipboard
class TextContentTokenizer(language: Language?, overrideContentLanguage: Boolean = false, contextSnippetLength: Int = 50, textTokenizerFactory: (Language?) -> TextTokenizer) : ContentTokenizer

A ContentTokenizer using a TextTokenizer to split the text of the Content.Element into smaller portions.

Properties

Functions

Link copied to clipboard
fun Publication.content(start: Locator? = null): Content?

Creates a Content starting from the given start location, or the beginning of the publication when missing.