|
|
Thread Tools | Search this Thread |
10-31-2011, 02:51 PM | #1 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Jul 2010
Location: Denver, Colorado
Device: iphone, ipad, kindle, nook
|
Nook formatting, publisher defaults do weird things to a simple epub
So I've been working on this epub and I've had a lot of success with many devices. And I thought I had 100% clearance with the Nook until our QA person discovered when you turn the 'publisher defaults' off the fonts get a little screwy,,, in completely random places. I've looked at my .opf file and all the fonts seem pretty solid. When I turn the 'publisher defaults' on,, all the style and fonts etc. seem perfect. Does anybody else have this problem? Can somebody suggest what I'm doing wrong?
Thanks, T— |
11-01-2011, 02:29 PM | #2 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Jul 2010
Location: Denver, Colorado
Device: iphone, ipad, kindle, nook
|
What!!! Nobody has had this experience? Am I missing something?
|
Advert | |
|
11-02-2011, 03:18 PM | #3 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Jul 2010
Location: Denver, Colorado
Device: iphone, ipad, kindle, nook
|
I would image these errors are attributing to my Nook problems?
OEBPS/Misc/Times-Bold • This resource is present in the OPF <manifest>, but it's not reachable (it's unused). |
11-02-2011, 04:20 PM | #4 |
Evangelist
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
|
Publisher Defaults off means the nook is generating a user style sheet that does overrides of the body, p and other selectors for fonts, linespacing, margin width and justification, based upon user selection.
This will interact in interesting way depending upon what the style sheet and the xhtml. I would suggest editing the stylesheet to move moving the font-family attribute to the most general selector possible (body or p if possible), so that it will get overridden cleanly. Future updates of the Nook Color firmware will 'fix' this by simply ignoring all @font-face rules except for what is specified in the user style, when publisher defaults are off. Last edited by Jim Lester; 11-02-2011 at 04:44 PM. Reason: Edited for clarity and helpfulness. |
11-02-2011, 05:14 PM | #5 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Jul 2010
Location: Denver, Colorado
Device: iphone, ipad, kindle, nook
|
Ok.. But my @font-face (s) are pretty clean, at least I think..
@font-face { font-family : "Times", serif; font-style : normal; font-weight : 500; src:local("Times.ttf"); } @font-face { font-family : "Times", serif; font-style : normal; font-weight : bold; src : url("../Misc/Times-Bold.ttf"); } @font-face { font-family : "Times", serif; font-style : italic ; font-weight : 500; src : url("../Misc/Times-Italic.ttf"); } @font-face { font-family : "Times", serif; font-style : italic ; font-weight : 5; src : url("../Misc/Times.ttf"); } @font-face { font-family : "Times", serif; font-style : normal; font-weight : 5; src : url("../Misc/Times.ttf"); } @page { margin : 0.5em; } tbody, thead, tfoot, tr, td, th { border-style : inherit; border-width : inherit; border-color : inherit; And for god sakes it's TIMES! I will say this, Sigil has put my fonts in a Misc folder as opposed to the Fonts folder. But I've changed the OPF file to reflect that: <item href="Misc/Times-Italic" id="Times-Italic" media-type="text/plain" /> <item href="Misc/Times-BoldItalic" id="Times-BoldItalic" media-type="text/plain" /> <item href="Misc/Times-Roman" id="Times-Roman" media-type="text/plain" /> <item href="Misc/Times-Bold" id="Times-Bold" media-type="text/plain" /> <item href="Misc/Times-Roman.dfont" id="Times-Roman.dfont" media-type="text/plain" /> <item href="Misc/Times-Italic.dfont" id="Times-Italic.dfont" media-type="text/plain" /> <item href="Misc/Times-BoldItalic.dfont" id="Times-BoldItalic.dfont" media-type="text/plain" /> <item href="Misc/Times-Bold.dfont" id="Times-Bold.dfont" media-type="text/plain" /> |
Advert | |
|
11-02-2011, 07:55 PM | #6 |
Evangelist
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
|
It's not your @font-face rules, it's the font-family attribute in subsequent rules in your OPF.
For instance, if you had body { font-family: "Times" .... } This would get nicely overridden by the user style sheet to be what the user actually selected. If however you had p.myclassid { font-family: "Times" } This isn't currently being overridden by the user style sheet. The result at worse is a ransom note effect with the fonts being a mix of the author (your) selected fonts, and the user selected fonts. Putting the font-family attribute in the least specific selector (such as p, div, or body) that you can get away will potentially avoid this. |
11-03-2011, 08:59 PM | #7 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Jul 2010
Location: Denver, Colorado
Device: iphone, ipad, kindle, nook
|
Thanks for the input.. I'm somewhat confused.
However, I managed to force the text I was having a problem with to stick to a font/style. But it won't adjust in size etc. I checked my OPF file, the fonts seem to be pretty good. Are you suggesting to make these inline styles to override my external css? Thank you. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Weird formatting | khalleron | General Discussions | 18 | 11-23-2011 05:28 PM |
Touch 'Publisher Defaults' seems broken | tomsem | Barnes & Noble NOOK | 4 | 06-18-2011 10:20 PM |
Weird formatting issues - Sigil .epub in Calibre viewer | december | Sigil | 9 | 06-18-2010 04:04 PM |
Weird formatting. | lininjim | Calibre | 7 | 12-11-2009 10:50 AM |
Weird error caused by the publisher | sassanik | Reading Recommendations | 16 | 03-10-2009 03:33 AM |