Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2009, 12:37 AM   #1
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 300
Karma: 1182942
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura
html conversion bug in 0.6xx series?

Okay, I have noticed on some of my zipped html books that ePub conversion in 0.6xx produces ePubs with the body text "squished" into about an inch of the middle of the screen on my 505. Previously, the conversions using the 0.5xx series of calibre handled this just fine. I was wondering if anyone else has noticed this as well.
slantybard is offline   Reply With Quote
Old 09-03-2009, 01:54 AM   #2
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: 25,814
Karma: 5006091
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
0.6 tries to more faithfully replace the formatting in the source HTML. It's likely that your source html has its contents either ina table or with large margins.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 09-03-2009, 02:43 AM   #3
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 146
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
Quote:
Originally Posted by kovidgoyal View Post
0.6 tries to more faithfully replace the formatting in the source HTML. It's likely that your source html has its contents either ina table or with large margins.
On, maybe, a related question:
Does Calibre preserve the existing CSS information when converting for example from a zipped html source to ePub?
From the question it might be obvious that I'm expericing problems with that and have resorted to using Sigil for converting html+css to epub.

Regards,

Joop
JvdW is offline   Reply With Quote
Old 09-03-2009, 09:48 AM   #4
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,343
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Quote:
Originally Posted by slantybard View Post
Okay, I have noticed on some of my zipped html books that ePub conversion in 0.6xx produces ePubs with the body text "squished" into about an inch of the middle of the screen on my 505. Previously, the conversions using the 0.5xx series of calibre handled this just fine. I was wondering if anyone else has noticed this as well.
Actually, I have...

When I've seen it, it's been with a MS Word generated HTML file, and right at the end of the in-line CSS, there's been this...

Code:
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
The problem is that the viewer's honoring the "margin:1.0in 1.25in 1.0in 1.25in;", specifically the 1.25 inch left & right margins! I don't know why Calibre now passes it whereas before it stripped it, but one work around is to edit the HTML and delete the section above, although you could try just passing "div.Section1 {}" in Calibre's CSS override box. (Not tested)
gwynevans is offline   Reply With Quote
Old 09-03-2009, 11:29 AM   #5
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: 25,814
Karma: 5006091
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, calibre does preserve CSS.
kovidgoyal is offline   Reply With Quote
Old 09-03-2009, 02:38 PM   #6
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 146
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
Quote:
Originally Posted by kovidgoyal View Post
Yes, calibre does preserve CSS.
Then the epub generated by Sigil should be the same as the one generated by Calibre, right? (I haven't touched the custom CSS part or the remove empty lines stuff)

Joop
JvdW is offline   Reply With Quote
Old 09-03-2009, 03:09 PM   #7
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: 25,814
Karma: 5006091
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does perform some transforms on the CSS, as I'm sure Sigil must as well.
kovidgoyal is offline   Reply With Quote
Old 09-03-2009, 07:30 PM   #8
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,433
Karma: 950001
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by JvdW View Post
Then the epub generated by Sigil should be the same as the one generated by Calibre, right?
Nope. Sigil pushes all CSS into the top of the HTML file for editing. This can result in css from multiple files being combined for unexpected results. See Issue 58 for an example of how it combines and produces multiple style settings for the same entry. Only one will be used, not necessarily the one you want.
user_none is offline   Reply With Quote
Old 09-04-2009, 03:34 AM   #9
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 146
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
Quote:
Originally Posted by user_none View Post
Nope. Sigil pushes all CSS into the top of the HTML file for editing. This can result in css from multiple files being combined for unexpected results. See Issue 58 for an example of how it combines and produces multiple style settings for the same entry. Only one will be used, not necessarily the one you want.
Thanks for the info and Sigil and combining various CSS styles. I'll try to come up with a simple example of what Calibre does with CSS that I think shouldn't happen.

Joop
JvdW is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
minor bug report - html conversion cybmole Calibre 18 09-30-2010 11:26 AM
conversion TO html in_the_fade Calibre 4 04-29-2010 10:51 AM
Small html/css bug twaits Calibre 5 01-12-2010 10:26 AM
conversion help needed - possible bug Nate the great Calibre 3 04-05-2009 04:18 PM
Burroughs, Edgar Rice: Barsoom Series. HTML jbenny Other Books 11 09-03-2007 04:33 PM


All times are GMT -4. The time now is 12:33 AM.


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