![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
Font Problems for ipad
I've read the explanations about the com.apple.ibooks.display-options.xml. I unzipped the epub file and added the file.
file contents: <?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <option name="specified-fonts">true</option> </platform> </display_options> I rezip the file, rename it to .epub and open it in Sigil 0.5.3 the file appears at the end of all the books .xhtml files When I double click the file name in Sigil, the book view displays "True" the code view displays: <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <p>true</p> </body> </html> NOT the text for the file. I'm pretty sure I've done something stupid but not sure what! Any help? thanks |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The xml file must be placed in the META-INF directory. The content must read:
Code:
<?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <option name="specified-fonts">true</option> </platform> </display_options> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
but when I do that and open the file in Sigil or DW, the contents of the file has turned to html as below:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <p>true</p> </body> </html> |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,542
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Once you add the xml file to the ePub, you have no need to edit it in Sigil -- nor will you be able to (unless making use of the "Open With" feature of the latest beta to edit with an external program). Make the xml file, put it in the META-INF folder and forget about it.
Last edited by DiapDealer; 10-26-2012 at 02:41 PM. |
![]() |
![]() |
![]() |
#5 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,728
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@jonalbert - you *cannot* add the file to an epub using Sigil. You have to add it using your method you described in the first post of adding it manually to the "zip" file outside of Sigil. Once you have put it in the META-INF folder then as DiapDealer says it becomes a "read-only" file as far as Sigil is concerned that it basically ignores.
Perhaps one day Sigil will have the ability to add these files natively. They are an Apple-specific hack of the epub specification, but if people are going to be using Sigil to create lots of books that need this file then perhaps it needs to support it. Certainly the upcoming 0.6 release doesn't change this behaviour. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
Thanks to both of you. I'll give it a try.
Jon |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you place it in the ePUB, you can see it in the Misc directory within Sigil. Leave it and don't touch...
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2012
Device: None
|
Like jonalbert I am having the same problem, I follow the instructions to embed the fonts, which display in normal type instead of greek and hebrew.
Emlyn |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you really have the same problem, the answers are in this thread. If not, there is a mistake in your code. Does the alternative font display in ADE and/or Sigil?
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2012
Device: None
|
![]()
I have found my problem, it was in the css file. I had included a font family in the span.greek section; instead of leaving it to the @font-face section.
I knew it would be something silly. It now works in both ADE and on my ipad. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Font problems between PW and Fire | sirmaru | Amazon Kindle | 2 | 10-05-2012 08:11 PM |
Font size problems with KF8 - solved | Tugger | Kindle Formats | 21 | 10-05-2012 09:47 AM |
font problems in ADE | iain robinson | ePub | 11 | 06-25-2012 02:53 AM |
Help with font and justification problems from Calibre to Kindle | clarient | Conversion | 1 | 06-29-2011 12:17 AM |
Font Problems | HarryT | Bookeen | 36 | 03-17-2008 03:46 AM |