Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-07-2014, 10:04 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
epub-azw3 @page in comment prevents publisher fonts

I think there is a conversion problem epub --> azw3 that affects Publisher Fonts in my Kindle touch

I have this is my style sheet for an epub. Doing a 'defaults' conversion makes the Publisher Font what looks like bold Helvetica

If I insert a space between '@' and 'page' or '@ page' then the publisher font setting is correct.

I would have thought that the comment would be ignored during conversion or by the KT

Code:
/* Pixels are used for @page and body (for the ereaders that will recognize 
 them) because pixels don't scale and if a reader increases the text size, we 
 don't want the margins to blow up. Note that these values will produce 
 extra-wide margins on the Kindle Fire, because the view for that ereader is 
 narrow already. */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  border-width: 0;
  font-family: "Georgia", serif;
}
@page {
  margin: 5pt;
  }
It's easy enough to fix, but I have to re-edit a number of epubs to insert that space
phossler is offline   Reply With Quote
Old 08-07-2014, 10:22 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,484
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You will need to post the entire CSS so we can see what the coding is for the embedded fonts. @page is not the problem.
JSWolf is online now   Reply With Quote
Advert
Old 08-08-2014, 10:49 AM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by JSWolf View Post
You will need to post the entire CSS so we can see what the coding is for the embedded fonts. @page is not the problem.
No problem. I'll do a 'before' and 'after' with a bare bones epub, and convert to azw3.

I'm using KindlePreviewer to check

That can be my week end project

Now with my luck, it won't be reproduce-able with a small epub.

I have an epub (#1) that converted fine, and an epub (#2) that didn't

Transplanting the 2 stylesheets #1 --> #2 caused #2 to convert

Transplanting the 2 stylesheets #2 --> #1 caused #1 to not convert correctly

Inserting the space into the @page inside the comment in #1 and then converting allowed publisher fonts to be used

BTW, KindleGen did not work either, so I really don't think it a Calibre issue, but more of a Kindle issue

Last edited by phossler; 08-08-2014 at 10:51 AM.
phossler is offline   Reply With Quote
Old 08-08-2014, 12:25 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,262
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
All calibre conversions contain @page, that is definitely not the problem. Most likely there is something in the stylesheet the kindle cannot handle and puttin a space after @ is causing parsing for the whole stylesheet to fail, thereby allowing the book to work.
kovidgoyal is offline   Reply With Quote
Old 08-08-2014, 01:37 PM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
All calibre conversions contain @page, that is definitely not the problem. Most likely there is something in the stylesheet the kindle cannot handle and putting a space after @ is causing parsing for the whole stylesheet to fail, thereby allowing the book to work.
I realize that @page is used and normally does not cause any problems.

However, in this case the @page was in a comment in a stylesheet with regular text/words following it. The rest of the stylesheet had the @font lines needed to embed the publisher fonts

I'm leaning towards a problem on the Kindle side

I was thinking that the Kindle was not honoring the comments and trying to actually process the @page command unsuccessfully and caused the style sheet to be ignored, and therefore the publisher fonts also in the failed stylesheet were ignored

It appeared to me that adding the space and making it '@ page' would pass the Kindle parser, and then the style sheet would not fail and thus the embedded fonts would be displayable bu using the Kindle Publisher Font.

I want to run a simple test to do a little more testing

Last edited by phossler; 08-08-2014 at 01:40 PM.
phossler is offline   Reply With Quote
Advert
Old 08-08-2014, 01:41 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,484
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If you don't post your CSS, it's all a guessing game.
JSWolf is online now   Reply With Quote
Old 08-08-2014, 02:48 PM   #7
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by JSWolf View Post
If you don't post your CSS, it's all a guessing game.
Understand

After I try my tests to verify that I can reproduce my issue, I'll post
phossler is offline   Reply With Quote
Old 08-08-2014, 04:34 PM   #8
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
The 'With At' have the @page in the comment on line 28 of Georgia.css

The 'Without At' have a space between the @ and the page in the comment on line 28 of Georgia.css

As far as I can tell, that's the only difference.

Side_by_Side show the Kindle Previewer with Publisher Fonts for both.

Thanks for looking
Attached Thumbnails
Click image for larger version

Name:	Side_by_Side.JPG
Views:	230
Size:	113.1 KB
ID:	126544   Click image for larger version

Name:	StyleSheet_WithAT.JPG
Views:	231
Size:	56.5 KB
ID:	126545   Click image for larger version

Name:	StyleSheet_WithoutAT.JPG
Views:	235
Size:	80.0 KB
ID:	126546  
Attached Files
File Type: azw3 With 'At' - paul.azw3 (461.5 KB, 131 views)
File Type: epub With 'At' - paul.epub (395.6 KB, 155 views)
File Type: azw3 Without 'At' - paul.azw3 (462.8 KB, 126 views)
File Type: epub Without 'At' - paul.epub (395.6 KB, 143 views)
phossler is offline   Reply With Quote
Old 08-08-2014, 11:56 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,262
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...5fe2531066ac0b
kovidgoyal is offline   Reply With Quote
Old 08-09-2014, 07:48 AM   #10
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
phossler is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting ePub > AZW3 so the cover shows up as the first page JSWolf Kindle Formats 5 06-30-2014 01:52 PM
Publisher font mobi/AZW3 woes gers1978 Conversion 12 09-03-2013 03:43 PM
Getting Fonts from epub to azw3? jonalbert Conversion 5 04-21-2013 10:19 PM
epub to azw3 conversion: fonts issue topquark Conversion 7 02-18-2013 06:22 AM
PRS-T1 PRS-T1 - Changing page margins prevents 'touch' page turning Berzelius Sony Reader 2 08-24-2012 04:02 AM


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


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