Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2015, 08:31 PM   #1
shuantsu
Junior Member
shuantsu began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2015
Device: samsung galaxy tab 3
Question How to hide content from epub

Hey guys, this is my first post.

I'm using Sigil 0.7.4 to make something like this Epub:

http://www.jw.org/download/?issue=20...ng=T&isBible=0

It has endnotes and additional information. But notice that when you open it on a tablet with MoonReader, it hides the endnotes and additional information from the flow.

I tryed checking the Css and XHTML but it has nothing special. I don't know how they managed to do that.

Is there a way to hide the endnotes and additional information from the flow using Sigil?
shuantsu is offline   Reply With Quote
Old 08-24-2015, 01:50 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,689
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
You can hide chapters from the flow by manually adding a linear="no" attribute in the spine section of the .opf file.
However, many reading apps ignore this attribute.
Doitsu is offline   Reply With Quote
Advert
Old 08-24-2015, 02:30 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
moon reader thinks that it knows best and does it's own thing with some content. e.g. it also over rules some header tags sizes & layouts, changes blockquote indents....

SO test in apps that play by the rules e,g, mantano, and test on PC in different readers , such as adobe digital editions, calibre... to get a sense of what is honoured by different renderers. ADE is a good proxy for my e-ink readers, as they use it's code.
cybmole is offline   Reply With Quote
Old 08-24-2015, 05:00 PM   #4
shuantsu
Junior Member
shuantsu began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2015
Device: samsung galaxy tab 3
Figured it out

Quote:
Originally Posted by cybmole View Post
moon reader thinks that it knows best and does it's own thing with some content. e.g. it also over rules some header tags sizes & layouts, changes blockquote indents....

SO test in apps that play by the rules e,g, mantano, and test on PC in different readers , such as adobe digital editions, calibre... to get a sense of what is honoured by different renderers. ADE is a good proxy for my e-ink readers, as they use it's code.
I have to use MoonReader because it is the app that everyone here uses.

Quote:
Originally Posted by Doitsu View Post
You can hide chapters from the flow by manually adding a linear="no" attribute in the spine section of the .opf file.
However, many reading apps ignore this attribute.
Thanks, this worked! But examining the epub that I posted, I found a way to hide the endnotes using this code:

Put this on the HTML tag:
Code:
xmlns:epub="http://www.idpf.org/2007/ops"
Put this on the a tag:

Code:
epub:type="noteref"
And finally use epub:type=footnote on the aside and div of the citation:

Code:
<aside epub:type="footnote">
    <div epub:type="footnote" id="citation3">
        <p><a href="#citation_ref1">^ <strong>[1]</strong></a>Citation</p>
    </div>
</aside>
shuantsu is offline   Reply With Quote
Old 08-24-2015, 05:44 PM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,689
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by shuantsu View Post
Thanks, this worked! But examining the epub that I posted, I found a way to hide the endnotes using this code [...]
Note that the code that you posted is officially only supported by ePub3 apps and Sigil generates ePub2 books by default unless you export your book with the ePub3 plugin.

The Moonreader Plus developer appears to have modeled the rendering engine after the engine used by iBooks. Like iBooks it automatically hides aside footnotes; it even handles rearnotes without problems, which iBooks for iOS can't handle.

However, not all ePub3 apps behave in this way, because the ePub3 specs don't require reading apps to hide aside footnotes; they also don't require reading apps to display them as popups.

I.e., you can't rely on all apps behaving like Moonreader Plus.
Doitsu is offline   Reply With Quote
Advert
Old 08-24-2015, 06:37 PM   #6
shuantsu
Junior Member
shuantsu began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2015
Device: samsung galaxy tab 3
Quote:
Originally Posted by Doitsu View Post
Note that the code that you posted is officially only supported by ePub3 apps and Sigil generates ePub2 books by default unless you export your book with the ePub3 plugin.

The Moonreader Plus developer appears to have modeled the rendering engine after the engine used by iBooks. Like iBooks it automatically hides aside footnotes; it even handles rearnotes without problems, which iBooks for iOS can't handle.

However, not all ePub3 apps behave in this way, because the ePub3 specs don't require reading apps to hide aside footnotes; they also don't require reading apps to display them as popups.

I.e., you can't rely on all apps behaving like Moonreader Plus.
Yeah, but I only want it to work with moonreader.
shuantsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide a book from Content Server? RobFreundlich Calibre 4 10-17-2013 12:39 PM
Presenting EPUB and/or EPUB content over internet to visitors - automatically? carlosbcg ePub 21 02-24-2013 07:35 PM
How do you hide/make not-visible sections in CSS/epub? FatDog ePub 2 02-23-2012 05:54 PM
how to hide page numbers from epub pages Areej Introduce Yourself 2 06-24-2011 08:52 PM
epub locked content Maur Calibre 3 08-02-2010 10:18 AM


All times are GMT -4. The time now is 06:36 PM.


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