04-25-2011, 12:21 PM | #1 |
Addict
Posts: 234
Karma: 40
Join Date: Apr 2010
Device: The Nook, iPad
|
Add xml in META-INF
OK, I was trying to edit an existing epub file that has embedded fonts to make it work in the new iBooks on iPad.
The example epub I was given (when unzipped) contains a com.apple.ibooks.display-options.xml file in the META-INF folder which only contains basically one line as <option name="specified-fonts">true</true> However when I open this example epub in Sigil, there is no such thing as META-INF, and I do not see that xml file, nor the container.xml file. When I open my own epub file that already had fonts embedded, I don't see that META-INF folder either. I was told all I have to do to make embedded fonts work is just to add that com.apple.ibooks.display-options.xml file to my epub's META-INF folder, but as I cannot even see that folder in Sigil, how can I add a new xml to that folder? Any suggestions? BTW, I am using 0.3.4 if it matters. Thanks a lot. |
04-25-2011, 12:36 PM | #2 |
Addict
Posts: 234
Karma: 40
Join Date: Apr 2010
Device: The Nook, iPad
|
OK, I upgraded to version 0.4, still no luck, the online Sigil documentation I found has the following: EPUB files also must have a META-INF folder with a container.xml file pointing to the OPF file of the publication. Sigil takes care of all of this for you.
Could someone explain to me what "takes care of all" mean, does that mean I cannot add anything to the META-INF folder in Sigil? if that's the case, any application external to Sigil that I can use to add that xml file to the META-INF folder? Many thanks. |
04-25-2011, 12:57 PM | #3 |
Connoisseur
Posts: 61
Karma: 12096
Join Date: Sep 2010
Location: Tasmania
Device: Sony PRS 650
|
If you still have the unzipped version with the XML file, try opening the epub version in Sigil then right click any folder in the left panel and select 'Add Existing Item...'.
Locate and open the XML file in question and see what happens. It may say it's already present or it may accept it. Sorry, couldn't be more helpful, but don't have Apple - too expensive for me. |
04-25-2011, 02:07 PM | #4 |
Addict
Posts: 234
Karma: 40
Join Date: Apr 2010
Device: The Nook, iPad
|
Thanks for the tip, it didn't work, the file was added that way but added to a wrong folder. I did figure out that I can unzip the epub and manually add the file to the right folder and then re-zip everything and rename it to epub, but iPad still does not show the embedded font. I guess it only works with English fonts, mine is Chinese font, ibooks just keeps on crashing on me.
|
04-25-2011, 05:19 PM | #5 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Sigil doesn't mess with the META-INF folder. iTunes does, in contradiction to the epub standard. That's how Apple rolls.
|
04-26-2011, 03:17 AM | #6 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
There are better readers than iBooks which follow the standard better. Use those instead.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add HTML with meta tags | Pixelmagic | Calibre | 9 | 04-19-2020 05:47 PM |
Importing meta data from xml file exported from Google "My Library" | net-buoy | Library Management | 0 | 03-14-2011 06:17 PM |
How do I edit/add Meta Data | 4jacks | Kindle Formats | 4 | 10-07-2010 04:33 AM |
Add books - Meta Data format | wwaldo | Calibre | 2 | 03-17-2010 07:38 PM |
Add the Commments in meta data to an existing LRF file | mgrunk | Calibre | 3 | 07-26-2009 12:35 PM |