|
|
#1 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,031
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
OPF & guide
Thank you.
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
#2 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Here is from the most recent conversion using Calibre from MS Reader to ePub and the guide tags are used.
Code:
<guide>
<reference href="titlepage.xhtml" type="cover" title="Cover"/>
<reference href="huntersthe_split_0.html#cop" type="copyright-page" title="Copyright link"/>
<reference href="huntersthe_split_5.html#contents" type="toc" title="Table of Contents"/>
<reference href="huntersthe_split_0.html#cop" type="title-page" title="About this title link"/>
</guide>
__________________
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,031
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Quote:
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
|
#4 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,495
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre uses the type="cover" entry in <guide> in epub books to know if the first entry in the spine is a cover or not. So if the user specifies their own cover and then re-converts, the original cover is replaced instead of becmoing the second item in the spine
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#5 | ||
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
Quote:
Quote:
BTW Sigil doesn't create it and it will strip it from your input epub if it has one. |
||
|
|
|
|
|
#6 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,495
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Could you change that to leave type="cover" alone, there's no other way to know if the first element in the spine is a cover or not.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#7 |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
Create an issue for it and I'll see what I can do.
|
|
|
|
|
|
#8 | |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,031
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Quote:
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
|
#9 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
How would you generate the cover?
__________________
|
|
|
|
|
|
#10 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,031
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
There are several possibilities:
autodetection, have a check box in the spine creation step for "first item is a cover", prompt the user to add it it by hand, and I'm sure there are a couple other ways it could be done.
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
#11 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,031
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
BTW, I wouldn't generate the cover; I'd simply create a reference to it if it existed.
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
#12 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,495
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Whether the cover is generated or not is immaterial, the point is that given an epub file, if the user wants software to automatically replace the existing cover the only way the software can know that the file has an existing cover is via the guide.
This is not an issue for an editing software like Sigil, since the user can just manually remove the cover, but it is for an automatic converter like calibre.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#13 | |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
Quote:
I also wouldn't want to do this automatically on export, not in an editor. An editor (unlike a converter) should never change the structure of the document the user sees in the editor. WYSIWYG means something very specific. I would welcome suggestions on how could this be handled, because I can't see how it can be. |
|
|
|
|
|
|
#14 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,792
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
- Ahi |
|
|
|
|
|
|
#15 | |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
Quote:
Also, what happens when the user loads in an epub comic book? |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free Book (Kindle) - Periodic Table & Acupressure Guide | koland | Deals, Freebies, and Resources (No Self-Promotion) | 0 | 09-15-2010 10:56 PM |
| Adding a <reference> item to <guide> in OPF file | GRiker | Sigil | 2 | 04-12-2010 01:06 PM |
| EFF's guide to e-book buying & privacy | grimo1re | News | 52 | 12-25-2009 08:17 PM |
| HTML, NCX & OPF --> MESS | pakiyabhai | Workshop | 2 | 12-22-2009 10:43 AM |
| Can html2epub create the OPF & NCX files? | Acey | Calibre | 4 | 11-17-2008 12:33 AM |