EpubReadingItem
class EpubReadingItem
One stop in a page's reading order: what a screen reader would announce, in the order it would announce it.
for (item in book.readingOrder(page = 3)) {
when (item.role) {
EpubRole.HEADING -> speakHeading(item.text, item.headingLevel)
else -> speak(item.text)
}
}Content copied to clipboard