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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 07-08-2024, 05:56 PM   #1
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,572
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Property linear="no" on epub2

Hi;

Maybe some of you had this problem and were able to solve it. For my part, I haven't been successful so far and I would like to know how those who were successful handled the issue.

It turns out that I have a couple of .xhtml files that I don't want to be seen in the epub (epub2); I want them to only be accessed through a link. I tried to achieve this via the linear="no" property in the <spine> section of the .opf file. But nothing to do; at least in ADE 2.x/3.x the .xhtml files can be accessed like any of the others. Interestingly, under epub3 everything works fine, as expected, but under epub2, nothing seems to take effect.

Thank you very much in advance for any advice that allows me to solve this problem.
RbnJrg is offline   Reply With Quote
Old 07-08-2024, 06:15 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,932
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RbnJrg View Post
Hi;

Maybe some of you had this problem and were able to solve it. For my part, I haven't been successful so far and I would like to know how those who were successful handled the issue.

It turns out that I have a couple of .xhtml files that I don't want to be seen in the epub (epub2); I want them to only be accessed through a link. I tried to achieve this via the linear="no" property in the <spine> section of the .opf file. But nothing to do; at least in ADE 2.x/3.x the .xhtml files can be accessed like any of the others. Interestingly, under epub3 everything works fine, as expected, but under epub2, nothing seems to take effect.

Thank you very much in advance for any advice that allows me to solve this problem.
linear="no" does not work in ADE 2/3. It's ignored. I don't know abut ADE 4.
JSWolf is offline   Reply With Quote
Old 07-08-2024, 07:10 PM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,572
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
linear="no" does not work in ADE 2/3. It's ignored. I don't know abut ADE 4.
Ok, thank you very much! Do you know any other way to hide a .xhtml file? I don't want it to show in the epub spine. I'm speaking about epub2.
RbnJrg is offline   Reply With Quote
Old 07-08-2024, 07:16 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,549
Karma: 149859178
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by RbnJrg View Post
Ok, thank you very much! Do you know any other way to hide a .xhtml file? I don't want it to show in the epub spine. I'm speaking about epub2.
The only way to hide a xhtml file in an ePub2 that I am aware of is removing it from the spine. This, of course, causes validation errors.
DNSB is offline   Reply With Quote
Old 07-08-2024, 10:57 PM   #5
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,572
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by DNSB View Post
The only way to hide a xhtml file in an ePub2 that I am aware of is removing it from the spine. This, of course, causes validation errors.
Thanks. I will try it; if it works, a validation error is not important to me (in this case).
RbnJrg is offline   Reply With Quote
Old 07-09-2024, 11:43 AM   #6
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,520
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You can put it at the end of the spine. It will still appear and be counted in the total pages, but you don't need to page through it when reading.

Or you can use a KOReader, which supports linear="no" (Hide non-linear flows), if it's just for your own use.
Jellby is offline   Reply With Quote
Old 07-09-2024, 05:18 PM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,572
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Jellby View Post
You can put it at the end of the spine. It will still appear and be counted in the total pages, but you don't need to page through it when reading.

Or you can use a KOReader, which supports linear="no" (Hide non-linear flows), if it's just for your own use.
Hi;

I tried KOReader without success; linear="no" seems not to be supported there either. Yes, I put the .xhtml files at the end of the epub, so the reading is not disturbed. But I wanted to hide those files if had been possible. By suppressing those files inside the spine section in the .opf file, the .xhtml are not showed at all, but they can not be accessed by links to them either
RbnJrg is offline   Reply With Quote
Old 07-09-2024, 05:39 PM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,849
Karma: 5449552
Join Date: Nov 2009
Device: many
Could you make images of each extra xhtml page that could be loaded on demand? Perhaps an svg image with actual text?

And if I remember the epub2 spec had something about "xml islands" that might be a way to hide a page but still load it. Or maybe use frames or iframes in some way or the object tag to fall back to what you want?

Last edited by KevinH; 07-09-2024 at 05:46 PM.
KevinH is offline   Reply With Quote
Old 07-09-2024, 07:37 PM   #9
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,572
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
Could you make images of each extra xhtml page that could be loaded on demand? Perhaps an svg image with actual text?
Hi Kevin; how do I do that? That is, the .xhtml pages loaded on demand. I have some images (one for each .xhtml file); those images should be showed when the user do click (or tap) in a link. Of that way, I avoid blank spaces in a epub2 because instead of an image in middle of a text, I have one line of text (with the link to the image); it works as a kind of "pop up image". Those .xhtml files are at the end of the epub and I don't want to be showed, if possible.

Quote:
And if I remember the epub2 spec had something about "xml islands" that might be a way to hide a page but still load it.
Epub2 supports that? I thought that was only for IE browsers. And that works without javascript?
RbnJrg is offline   Reply With Quote
Old 07-09-2024, 09:13 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,849
Karma: 5449552
Join Date: Nov 2009
Device: many
No idea what they meant by "xml islands" exactly. I am just spitballing ideas here.

I am thinking of the "object" tag that can fallback to an xhtml file but won't if it current data attribute content loads. So try taking each of those xhtml files and in the body have an object tag that defaults to link to an image then in the object tag's content keep the remainder of the body which will never get loaded.

You should be able to link to those xhtml files normally but the object tag will just load the image instead.

But I am not sure that it will do what you want, but it might be worth playing around with.
KevinH is offline   Reply With Quote
Old 07-10-2024, 05:27 AM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,932
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The idea of putting those HTML files at the end is a good idea. To go with that, make one HTML file that says to stop reading here and put that before the ones at the end you don't want to read in order.
JSWolf is offline   Reply With Quote
Old 07-10-2024, 10:03 AM   #12
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,520
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by RbnJrg View Post
I tried KOReader without success; linear="no" seems not to be supported there either.
Did you enable "Hide non-linear flows"? It has worked for me so far, hiding pages of foot-/endnotes for example. (Disclaimer: It was I who did the initial implementation of the feature.)
Jellby 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
Odd behavior CSS "content" property in kobo devices DrChiper Kobo Reader 3 07-17-2023 02:54 PM
"Hide Non-linear Fragments" not shown in menu sHiN3 KOReader 2 04-24-2023 12:27 PM
"Error while parsing file 'Multiple occurrences of the 'cover-image' property " BKh ePub 11 10-19-2018 01:19 PM
Auxiliary content? (with linear="no" in <spine>) un_pogaz Sigil 2 06-13-2018 06:25 AM
New "Intellectual Property Protection" law enacted. NatCh News 23 10-18-2008 09:58 AM


All times are GMT -4. The time now is 09:03 AM.


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