|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1030358
Join Date: Nov 2010
Location: USA
Device: Sony PRS650
|
Converted ePub file displays correctly in Calibre Viewer, but not on Sony
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? |
|
|
|
|
|
#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> |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1030358
Join Date: Nov 2010
Location: USA
Device: Sony PRS650
|
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. |
|
|
|
|
|
#4 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,752
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
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
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#5 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1030358
Join Date: Nov 2010
Location: USA
Device: Sony PRS650
|
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 09:19 AM. |
|
|
|
|
|
#6 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,752
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
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)
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#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.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Transfer Calibre converted file to Amazon via email | RunnerGirl | Calibre | 3 | 11-11-2010 09:17 AM |
| calibre bloating converted file? | blubb | Calibre | 3 | 10-18-2010 01:59 PM |
| Problems Transferring Converted Epub File to Nook | Flyweight | Calibre | 0 | 08-10-2010 08:44 PM |
| Calibre viewer setting file time | banjomike | Calibre | 6 | 06-14-2010 05:18 PM |
| Calibre viewer no longer displays covers | Sigwolf | Calibre | 3 | 04-21-2010 11:27 AM |