KiteReadingItem
One stop in a page's reading order: what a screen reader would announce, in the order it would announce it. KitePage.readingOrder gives the items of a page of any format.
for (item in page.readingOrder()) {
when (item.role) {
KiteRole.HEADING -> speakHeading(item.text, item.headingLevel)
else -> speak(item.text)
}
}Properties
the phonetic alphabet of pronunciation, such as ipa, or null.
where the item is on its page, in display space: points from the top-left corner, y down, with the smaller y in KiteRectangle.bottom. Null when the page cannot tell, such as for a PDF figure whose structure gives no box (#427).
1 to 6 for a KiteRole.HEADING, 0 for everything else.
how a speech engine says text, from an EPUB ssml:ph, or null. The item then holds the words of that element only.
the source's own name for the content, or null: the epub:type of an EPUB element, such as footnote, or the structure type of a tagged PDF element, such as Note.