Closed slonopotamus closed 2 years ago
You can add linear="no"
by doing this in current API.
book = GEPUB::Book.new
item = book.add_ordered_item 'nav.xhtml'
book.spine.itemref_by_id[item.id].linear = 'no'
Yes, I know it is not clear and not clean at all. I will consider to add more clear API for linear
and page-spread
.
I ended up not using linear="no"
because it works inconsistently across ebook readers, so there isn't much value fixing this issue.
Suppose, I have:
This will add
<itemref idref="nav.xhtml"/>
to<spine>
inpackage.opf
.Now I want to set
linear="no"
attribute for this itemref. How I do that?