|
|
Thread Tools | Search this Thread |
03-24-2011, 06:36 AM | #1 |
Grand Sorcerer
Posts: 13,030
Karma: 37197878
Join Date: Nov 2010
Location: USA
Device: Nexus 7 2, Samsung Galaxy Tab A 8" (retired=Sony PRS650, Kobo Mini)
|
Converted ePub file displays correctly in Calibre Viewer, but not on Sony
When I convert one of my LIT files to ePub, the section breaks appear correctly in the Calibre viewer, but do not appear in ADE or on my Sony 650.
After conversion to ePub, the string appears as <div class="calibre6"> <br class="calibre6"/> </div> <div class="calibre6"> <br class="calibre6"/> </div> <div class="calibre6"> <br class="calibre6"/> </div> Is there a reason "calibre6" doesn't work with ADE/Sony to create the white space? |
03-24-2011, 08:53 AM | #2 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
It's unlikely that it has anything to do with the "calibre6" style, but since you haven't posted the css for this style it's hard to tell you for certain what's going on. It's more likely that ADE doesn't acknowledge a <br> inside an empty <div>. (and the Sony uses the same rendering engine as ADE)
You can use search replace to replace this string: Code:
<div[^>]*>\s*<br(\s?/)?>\s*</div> Code:
<p></p> |
Advert | |
|
03-24-2011, 09:22 AM | #3 |
Grand Sorcerer
Posts: 13,030
Karma: 37197878
Join Date: Nov 2010
Location: USA
Device: Nexus 7 2, Samsung Galaxy Tab A 8" (retired=Sony PRS650, Kobo Mini)
|
Where do I find the css? There is a line which has stylesheet1.css
I never put anything in the "extra css" field, just use the defaults Calibre has. I usually manage to muddle through with the little bit of info I understand from reading this board, but confess I don't do anything too fancy. And everytime I think I am beginning to undertand regular expressions, it just makes me realize how much more I have to learn. |
03-24-2011, 09:29 AM | #4 | |
Well trained by Cats
Posts: 30,538
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Or select the book in the Library (view) of Calibre: Tap 'T' (tweak) Explode the book. Locate stylesheet1.css BTW there appears to be a missing space (required) before the closing /> in the BR |
|
03-24-2011, 09:42 AM | #5 |
Grand Sorcerer
Posts: 13,030
Karma: 37197878
Join Date: Nov 2010
Location: USA
Device: Nexus 7 2, Samsung Galaxy Tab A 8" (retired=Sony PRS650, Kobo Mini)
|
Spoiler:
I did manage to fix with an ePub to ePub conversion using the coding ldolse gave me. Thanks for all of your help. Moderator Notice
Please wrap long paste's in 'spoiler' tags (eye with red X) Last edited by theducks; 03-24-2011 at 10:19 AM. |
Advert | |
|
03-24-2011, 10:33 AM | #6 |
Well trained by Cats
Posts: 30,538
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The code makes even less sense now.
BTW Conversion can only work so many wonders GIGO You have some 'G' in your original. IMHO Top, Bottom Margins or Padding the preceding or next block is the way to space out paragraphs,headers ... calibre6 is a Block with a Line height increase which would be OK for the Div, but NOT for the BR which is part of the (non-existent) content within the div. If yo must stay with the Div, simply replace the BR with a <p> </p> ( a space has height) |
03-24-2011, 10:58 AM | #7 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
That's essentially why I suggested the search and replace with the format scene breaks option - it would do this for you during conversion, but you wouldn't want to stick in the replace box, entities can sometimes have un-desirable effects in the middle of conversion.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transfer Calibre converted file to Amazon via email | RunnerGirl | Calibre | 3 | 11-11-2010 10:17 AM |
calibre bloating converted file? | blubb | Calibre | 3 | 10-18-2010 02:59 PM |
Problems Transferring Converted Epub File to Nook | Flyweight | Calibre | 0 | 08-10-2010 09:44 PM |
Calibre viewer setting file time | banjomike | Calibre | 6 | 06-14-2010 06:18 PM |
Calibre viewer no longer displays covers | Sigwolf | Calibre | 3 | 04-21-2010 12:27 PM |