Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2023, 11:13 PM   #1
sHiN3
Member
sHiN3 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2010
Device: Kindle Oasis 3, Boox Leaf, Kobo Libra 2
"Hide Non-linear Fragments" not shown in menu

Hi,

I have a epub3 book with epub3 standard footnote format, also in Sigil, it's reported as Epub3. But in KO menu, "Hide Non-linear Fragments" is not shown, I couldn't hide those footnots.

I want to know what will trigger KO to show this option, so I could tweak this book a little.

Thanks.
sHiN3 is offline   Reply With Quote
Old 04-24-2023, 06:28 AM   #2
sHiN3
Member
sHiN3 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2010
Device: Kindle Oasis 3, Boox Leaf, Kobo Libra 2
OK, I think I've figured out.

https://github.com/koreader/crengine.../data/epub.css

From line 11 to 24

Code:
/* EPUB container of each individual HTML file */
DocFragment {
    page-break-before: always;
}
/* Non-linear fragments (hideable) */
DocFragment[NonLinear] {
    -cr-hint: non-linear;
}
section[type=footnotes] {
    -cr-hint: non-linear;
}
aside[type=footnote] {
    -cr-hint: non-linear-combining;
}
As long as you have one of the following HTML tags in your epub file:
  • <aside epub:type="footnote">XXX</aside>
  • <section epub:type="footnotes">XXX</section>

You will have "Hide Non-linear Fragments" option.

Of course, your epub must be Epub3 which supports those tags.
sHiN3 is offline   Reply With Quote
Old 04-24-2023, 12:27 PM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The "Hide non-linear fragments" option should appear if there are non-linear fragments in the book. I don't know enough about ePub3, but are those footnotes defined as "linear=no" in the spine? If not, then it's working as expected.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auxiliary content? (with linear="no" in <spine>) un_pogaz Sigil 2 06-13-2018 06:25 AM
Try to remove : This item was downloaded by caliber from .... and "Section Menu", "Ma poulardalber Recipes 4 08-21-2012 05:23 AM
Convert "Section Menu" in "Main Menu" zeener Recipes 2 11-23-2010 10:33 AM
Creator taking control of the "first page" link in the "content" menu cyberbaffled Kindle Formats 2 07-11-2010 04:21 PM
"Menu" and "Mark" keys does not work murad Sony Reader 4 07-11-2009 12:35 PM


All times are GMT -4. The time now is 05:53 PM.


MobileRead.com is a privately owned, operated and funded community.