Segment

constructor(locator: Locator, text: String, attributes: List<Content.Attribute<*>>)

Parameters

locator

Locator to the segment of text.

text

Text in the segment.

attributes

Attributes associated with this segment, e.g. language.