Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2013, 10:10 PM   #46
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Update:

This is an HTML error somewhere in the file. I sent the OP his ePUB, pared down, that built at KDP with fonts; I suspect an open tag somewhere in one of the XHTML files I'd pulled out. He should be able to find the error in pretty quick order now that he knows it's not his CSS, etc. File was clean otherwise and it's not the font-names, spaces, lack of spaces, etc.

Hitch
Hitch is offline   Reply With Quote
Old 07-23-2013, 12:52 AM   #47
Mathew Reuther
SpecFic Writer
Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.
 
Posts: 31
Karma: 20000
Join Date: Jan 2013
Location: Vista, CA
Device: Kindle Voyage, Kindle Fire, Nook, HTC One M8
Just for the record, the issue appears to be somewhere in the html (which validates...all tags are closed) or how the css interacts with the html of the body of the work. Hitch has been elping me with this issue over the weekend and this is what we've narrowed it down to.

So, it's still not resolved, but we have been steadily eliminating issues. I am about to strip every custom style from the first chapter and start adding them back in one at a time to see where it breaks.
Mathew Reuther is offline   Reply With Quote
Advert
Old 07-23-2013, 01:15 AM   #48
Mathew Reuther
SpecFic Writer
Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.
 
Posts: 31
Karma: 20000
Join Date: Jan 2013
Location: Vista, CA
Device: Kindle Voyage, Kindle Fire, Nook, HTC One M8
So, I'm not 100% positive that this works as I have not fully reassembled the book yet, but KDP apparently errors when you give it a heading declaration with a class that affects the font. Never mind that this is wholly legitimate HTML/CSS...

So, it is absolutely a case of there being a bug in the KDP conversion process. The workaround is moving from this:

<h2 class="fontchange"><a href="link details">Chapter One</a></h2>

to this:

<h2><span class="fontchange"><a href="link details">Chapter One</a></span></h2>

Once I confirm that this is the issue I will write Amazon a bug report and send it to support. (I'll also make sure to check back in here.)

Last edited by Mathew Reuther; 07-23-2013 at 01:22 AM.
Mathew Reuther is offline   Reply With Quote
Old 07-23-2013, 01:32 AM   #49
Mathew Reuther
SpecFic Writer
Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.Mathew Reuther can self-interpret dreams as they happen.
 
Posts: 31
Karma: 20000
Join Date: Jan 2013
Location: Vista, CA
Device: Kindle Voyage, Kindle Fire, Nook, HTC One M8
Oh, no, wait, it gets better.

KDP has an issue when the h2 default font is specified and then an h2 class overwrites it.

I just moved from having h2 default to an embedded font and instead made two different classes which switch the font.

It works.

So now I have <h2 class="ch"> and <h2 class="head"> in my html, with h2.head defined as font1 and h2.ch defined as font2 in the CSS. This is the winning combo, after months of back and forth, and Amazon telling me to code better, I get to go back and tell them what the bug in KDP is.
Mathew Reuther is offline   Reply With Quote
Old 07-23-2013, 03:14 AM   #50
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Excellent - well done for tracking it down, you two. Delighted to hear that you've come up with a solution.
HarryT is offline   Reply With Quote
Advert
Old 04-15-2014, 07:42 AM   #51
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
I prepared minimal test case with following html code:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
  <h1>test</h1>
  <p>test</p>
</body>
</html>
and stylesheet:
Code:
@font-face {
  src: url(../Fonts/Lobster.otf);
  font-family: "Lobster 1.4";
  }

p {
  font-family: "Lobster 1.4";
}
The above code causes deleting Lobster.otf file from Mobi file send to Personal Documents Service. Mobi file, and source epub file attached.
Attached Files
File Type: epub test20.epub (28.4 KB, 271 views)
File Type: mobi test20.mobi (80.6 KB, 258 views)
quiris is offline   Reply With Quote
Old 04-15-2014, 10:06 AM   #52
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by quiris View Post
The above code causes deleting Lobster.otf file from Mobi file send to Personal Documents Service. Mobi file, and source epub file attached.
AFAIK, the Personal Documents Service creates a Mobi7 file by default. And Mobi7 files don't support embedded fonts.

If you want to see the file(s) that KDP will offer to the readers, compile your book with Kindle Previewer. Then get the Calibre KindleUnpack plugin and unpack the .mobi file that KindlePreviewer has generated from your .ePub file. You'll end up with an azw3 file with an embedded font, a plain old mobi7 file without an embedded font file and the source files. (KDP will send the azw3 file to users who have a K3 or higher and the mobi7 file to all other users.)

Note that Kindle Previewer's eink preview is buggy, on a real Kindle the embedded font is being displayed (see screenshot).
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	395
Size:	27.6 KB
ID:	121729  
Doitsu is offline   Reply With Quote
Old 04-15-2014, 11:15 AM   #53
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
Quote:
Originally Posted by Doitsu View Post
AFAIK, the Personal Documents Service creates a Mobi7 file by default. And Mobi7 files don't support embedded fonts.
No, you are wrong. Mobi files created with kindlegen and uploaded to Personal Documents Service are converted to proper KF8 files with embedded fonts feature as well. You can check it yourself with below test cases (test21). The test21.mobi uploaded to PDS works without problem and displays emedded font (lobster.otf)

The only change is in CSS:

p, h1 {
font-family: "Lobster 1.4";
}
Attached Files
File Type: mobi test21.mobi (80.6 KB, 276 views)
File Type: epub test21.epub (28.5 KB, 307 views)
quiris is offline   Reply With Quote
Old 04-15-2014, 11:18 AM   #54
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by quiris View Post
No, you are wrong. Mobi files created with kindlegen and uploaded to Personal Documents Service are converted to proper KF8 files with embedded fonts feature as well. You can check it yourself with below test cases (test21). The test21.mobi uploaded to PDS works without problem and displays emedded font (lobster.otf)
IF that is true, then this is something new. It certainly used to be the case that Amazon did not accept KF8 files as personal docs.
HarryT is offline   Reply With Quote
Old 04-15-2014, 11:26 AM   #55
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
Quote:
Originally Posted by HarryT View Post
IF that is true, then this is something new. It certainly used to be the case that Amazon did not accept KF8 files as personal docs.
Personal Documents Service accepts dual (hybrid) mobi files (Mobi6 + KF8) created with kindlegen (or Kindle Previewer) and it converts them to two distinct files (AZW + AZW3) available for download with Kindle devices.

You can not send KF8 only file. It will be refused. Only dual (hybrid) mobi files are accepted.
quiris is offline   Reply With Quote
Old 04-15-2014, 12:07 PM   #56
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
I had another look at test20.mobi, which is indeed a hybrid .mobi file. However, the embedded font in the .azw3 file displays fine on my K3 after activating the Publisher Font option. I.e., I cannot reproduce your problem.

1. Did you try transferring the .mobi file via USB cable instead of PDS?
2. Did you test test20.mobi with devices other than your PW?
3. Does toggling the Publisher Font option display the embedded font?
Doitsu is offline   Reply With Quote
Old 04-15-2014, 12:47 PM   #57
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
Doitsu, you have to upload test20.mobi to PDS to see the described issue (stripped embedded font). Sending mobi file via USB is irrelevant to the issue since Amazon cloud servers are responsible for font stripping.
quiris is offline   Reply With Quote
Old 04-15-2014, 12:51 PM   #58
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
After downloading AZW3 file from Personal Documents Service to your Kindle, you can transfer it to your computer and after KindleUnpacking it you can see that lobster.off is not present in the AZW3 file
quiris is offline   Reply With Quote
Old 04-15-2014, 01:08 PM   #59
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by quiris View Post
Doitsu, you have to upload test20.mobi to PDS to see the described issue (stripped embedded font). Sending mobi file via USB is irrelevant to the issue since Amazon cloud servers are responsible for font stripping.
Sending mobi file via USB is not irrelevant, because you have to make sure that KindleGen does not strip the fonts, and the only way to do this is to transfer your test file via USB.

Also since PDS and KDP use different toolchains, it's quite possible that your particular font stripping problem only occurs with documents delivered via PDS. I.e., it might be a non-issue.
Doitsu is offline   Reply With Quote
Old 04-15-2014, 01:56 PM   #60
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
Doitsu, I can check presence of embedded font simple KindleUnpacking it

I will try later perform the same test using KDP.
quiris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Embedding? teh603 Writer2ePub 75 01-08-2013 07:57 PM
Font embedding sachin Sigil 36 03-30-2012 03:26 AM
Font embedding sachin Sigil 3 03-21-2012 09:19 AM
Do I need a font license if all I'm doing is referring to the font (not embedding)? Stodder Workshop 21 04-21-2011 04:19 AM
Special chararcters on the iPad or why does Apple not support Font-embedding? georg3200 ePub 13 10-06-2010 10:32 AM


All times are GMT -4. The time now is 03:58 PM.


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