Segment
data class Segment(val locator: Locator, val text: String, val attributes: List<Content.Attribute<*>>) : Content.AttributesHolder
Ranged portion of text with associated attributes.
Parameters
locator
Locator to the segment of text.
text
Text in the segment.
attributes
Attributes associated with this segment, e.g. language.