![]() |
#16 |
Member
![]() Posts: 16
Karma: 10
Join Date: Jun 2012
Location: Vosges Mountains
Device: Ipad
|
Okay ! This makes snese ! Still learning me ! ;-)
|
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Also for iPad epubs, you'll need create a com.apple.ibooks.display-options.xml file that contains the following text: Code:
<?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <option name="specified-fonts">true</option> </platform> </display_options> |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
I assume this means the epub has to be unzipped, then the file has to be copied, and the epub re-zipped - unless I've missed an option in Sigil to get to META-INF?
Seems like another FAQ item... |
![]() |
![]() |
![]() |
#19 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(Winzip/7Zip and other archive programs generally don't create valid epub zip files.) |
|
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
On Windows you can simply rename the epub to *.zip, copy the "com.apple.ibooks.display-options.xml" file, browse to the META-INF folder using the standard file explorer and paste it in. Then rename the file back to epub.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Or if you use Calibre, Use the TweakEPUB feature and drop the file, make the Manifest edit and rebuild.
Have the current developers considered adding a 'extension' to the EPUB spec support to do these kind of things even though it is not official EPUB 2? |
![]() |
![]() |
![]() |
#22 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Well, actually that is the question. This is an adaptation specifically for iBooks and falls outside the normal ePUB specs. Sigil produces generic ePUB files, so it is not designed to make this kind of changes from the start.
Then again, it is across this site in several posts. |
![]() |
![]() |
![]() |
#23 |
Member
![]() Posts: 16
Karma: 10
Join Date: Jun 2012
Location: Vosges Mountains
Device: Ipad
|
Thank you very much, DiapDealer - I will try this out.
Right now I managed to get the Ebook together by using only image files, compiled in Epubizator and refined in Sigil. Looks good in Ibooks, hope it would so so in other readers. @all: I learned a lot from your help and support, big thanks ! |
![]() |
![]() |
![]() |
#24 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42
Karma: 13888
Join Date: Jun 2011
Device: Kindle
|
I'm a newbie as well and I'm stymied from the get-go. According to the manual, when you open an HTML File, "The file and and linked files, images or stylesheets are imported if possible and placed into the appropriate folders."
To me this means if I load a file that has one or more hrefs to another file (in the same directory, using relative path), that other file will be loaded as well. But it isn't. The stylesheet and images are loaded, but not the linked HTML files. What am I missing? |
![]() |
![]() |
![]() |
#25 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
The guide is imprecise - only images and styles are imported automatically when you open an HTML file.
It might be possible to import linked HTML files as well, but that would be a new feature. I'll add it to the list for consideration. Note that the online guide is for 0.6.0 since the beta is out, so it will be slightly different than 0.5.3. |
![]() |
![]() |
![]() |
#26 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42
Karma: 13888
Join Date: Jun 2011
Device: Kindle
|
I must say I'm baffled by the way Sigil deals with multiple files. After adding several existing files I found that Sigil had stripped the (relative) paths from all the hrefs, so that the links were broken. Having fixed those with S&R, I now find that links to pathless #anchors in the same file don't work.
Re importing linked files: the way I'm used to doing this in Calibre is to create a book file that contains nothing but links to the various source files. It's very easy to re-create the book by simply opening this file. Last edited by SkookumPete; 06-10-2012 at 12:53 PM. |
![]() |
![]() |
![]() |
#27 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Stripping the paths from the hrefs appears to be intentional. There is an open issue about it that has a fix, but more time has to be spent looking at it to make sure it doesn't cause more problems than it fixes. Correcting links after splitting/merging should be fixed in the new beta.
But a simple link to a fileless anchor in the same file should work fine. What do you mean by "doesn't work"? What does the code for the link look like? What does the code for the anchor look like? |
![]() |
![]() |
![]() |
#28 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42
Karma: 13888
Join Date: Jun 2011
Device: Kindle
|
Reference:
Code:
<a href="#noteP1C11_1">[note 1]</a> Code:
<a class="ref" href="../Text/vtext.htm#refP1C11_1" id="noteP1C11_1">1</a> Update: I installed the 64-bit version and it seems to have cleared up that problem. However, now the links work within Sigil, but not when the epub is loaded into a reader! Also, the stylesheet is ignored outside Sigil. This program does bewilder me. Last edited by SkookumPete; 06-12-2012 at 10:47 PM. |
![]() |
![]() |
![]() |
#29 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Links outside Sigil work exactly like they work in any HTML file. They use standard unix style linking where the ePub itself is the top of the tree but most people code relative links. Dale |
|
![]() |
![]() |
![]() |
#30 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42
Karma: 13888
Join Date: Jun 2011
Device: Kindle
|
Thanks for the tip about the CSS.
The endnote thing is very strange. I finally put all my HTML files into one huge file and brought that into Sigil. Notes worked fine. Then I had Sigil split it into chapters. Notes still work in Sigil and in the browser when I unzip the epub, but not in Azardi or a couple of readers I've tried on Android. Worse, if I try different things like stripping the "../Text/" from the URLs, Sigil helpfully reverts all my changes when I reload the epub. Epubcheck detects no problems. Last edited by SkookumPete; 06-11-2012 at 11:22 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-350 Help me get started please! | ApK | Sony Reader | 17 | 06-03-2011 04:15 PM |
Can't Get Started... | raggedpelicanllc | Calibre | 2 | 10-22-2010 03:36 PM |
Trying to get started . . . | GLL | Calibre | 3 | 04-29-2010 03:36 AM |
Getting Started | Pinecone | Calibre | 2 | 11-02-2009 01:14 AM |
Let's getting started ! ^^ | scaza | Introduce Yourself | 2 | 03-04-2009 12:25 PM |