EpubRole

What a piece of content IS, for readers that speak rather than draw. Taken from the source element, so <h2> is a heading whatever CSS does to it and a styled <div> that only looks like one is not.

Entries

Link copied to clipboard

Running text: <p>, a bare text block, anything with no better name.

Link copied to clipboard

<h1>..<h6>; the depth is in EpubReadingItem.headingLevel.

Link copied to clipboard

One <li>.

Link copied to clipboard

<blockquote>.

Link copied to clipboard

<pre> or <code>.

Link copied to clipboard

<td> / <th>.

Link copied to clipboard

<figcaption>.

Link copied to clipboard

An image; the text is its alt (or aria-label), empty when it has none.

Link copied to clipboard

epub:type="pagebreak": the print edition's page number, not content.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): EpubRole

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.