Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2012, 10:10 AM   #1
jonalbert
Member
jonalbert began at the beginning.
 
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
jonalbert is offline   Reply With Quote
Old 10-26-2012, 02:16 PM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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>
Toxaris is offline   Reply With Quote
Advert
Old 10-26-2012, 02:27 PM   #3
jonalbert
Member
jonalbert began at the beginning.
 
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>
jonalbert is offline   Reply With Quote
Old 10-26-2012, 02:38 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is offline   Reply With Quote
Old 10-26-2012, 03:01 PM   #5
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
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.
kiwidude is offline   Reply With Quote
Advert
Old 10-26-2012, 03:08 PM   #6
jonalbert
Member
jonalbert began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
Thanks to both of you. I'll give it a try.

Jon
jonalbert is offline   Reply With Quote
Old 10-26-2012, 05:04 PM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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...
Toxaris is offline   Reply With Quote
Old 10-31-2012, 11:38 AM   #8
Emlyn
Junior Member
Emlyn began at the beginning.
 
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
Emlyn is offline   Reply With Quote
Old 10-31-2012, 03:03 PM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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?
Toxaris is offline   Reply With Quote
Old 11-01-2012, 11:18 AM   #10
Emlyn
Junior Member
Emlyn began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: None
Red face

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.
Emlyn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:55 PM.


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