Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2008, 10:21 PM   #256
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Quote:
Originally Posted by kovidgoyal View Post
Works for me.
I can reproduct this in my two archlinux machine.

After some debuging, I found that ZipFile::__del__ is not called, so ZipFile::close is not called two. But I can't tell why ZipFile::__del__ has not been called with override-css options.

Maybe a explicit del will solve this problem?
thawk is offline   Reply With Quote
Old 11-10-2008, 12:06 AM   #257
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,397
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I've added an explicit call to close. Hopefully that will fix it for you.
kovidgoyal is offline   Reply With Quote
Old 11-10-2008, 12:16 AM   #258
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Quote:
Originally Posted by kovidgoyal View Post
I've added an explicit call to close. Hopefully that will fix it for you.
Thank you!
thawk is offline   Reply With Quote
Old 11-10-2008, 01:33 AM   #259
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Can you ignore some css styles, just like font-family? So it will not override the font set by '--override-css' ?
thawk is offline   Reply With Quote
Old 11-10-2008, 02:39 AM   #260
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
html2epub will delete < and the trailing characters in the line.

testcase:
Code:
<html>
<head>
</head>
<body>
<p> A line with lt : &lt; something </p>
<p> A line with gt : &gt; something </p>
</body>
</html>
the &lt; and the following characters will be deleted in the output.
thawk is offline   Reply With Quote
Old 11-10-2008, 04:58 AM   #261
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,397
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by thawk View Post
Can you ignore some css styles, just like font-family? So it will not override the font set by '--override-css' ?
Not sure what you mean?
kovidgoyal is offline   Reply With Quote
Old 11-10-2008, 05:30 PM   #262
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by kovidgoyal View Post
Not sure what you mean?
I'm pretty sure this is about the fact that some of the calibre-generated CSS gets added after the CSS specified by --override-css, which means that it isn't possible to alter all style behavior in your branch with just --override-css.
llasram is offline   Reply With Quote
Old 11-10-2008, 05:59 PM   #263
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,397
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by llasram View Post
I'm pretty sure this is about the fact that some of the calibre-generated CSS gets added after the CSS specified by --override-css, which means that it isn't possible to alter all style behavior in your branch with just --override-css.
Well I've fixed that --override-css now has second highest priority behind <style title="override_css"> elements in the html file
kovidgoyal is offline   Reply With Quote
Old 11-10-2008, 06:30 PM   #264
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,397
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by thawk View Post
html2epub will delete &lt; and the trailing characters in the line.

testcase:
Code:
<html>
<head>
</head>
<body>
<p> A line with lt : &lt; something </p>
<p> A line with gt : &gt; something </p>
</body>
</html>
the &lt; and the following characters will be deleted in the output.
Will be fixed in next release
kovidgoyal is offline   Reply With Quote
Old 11-10-2008, 07:24 PM   #265
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Quote:
Originally Posted by kovidgoyal View Post
Well I've fixed that --override-css now has second highest priority behind <style title="override_css"> elements in the html file
A more specific style may has higher priority than the style specified in --override-css. For example, ".myfont {font-family:...}" has higher priority than a --override-css "body {font-family:...}". I can't alter the font-family unless I know there's a .myfont class, and override the style for myfont class.

If html2epub can filter out the font-family property, the font-family specified in --override-css will always be used without exception.
thawk is offline   Reply With Quote
Old 11-10-2008, 07:39 PM   #266
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
[QUOTE=JeffElkins;285508]
Quote:
Originally Posted by kovidgoyal View Post
Code:
--override-css "p {margin-top: 0pt; margin-bottom:0pt;padding:0pt; text-indent:20pt}"
Kovid, I have a bunch of converted epubs that --override-css and --remove-paragraph-spacing refuse to remove paragraph spacing from. Do you want a ticket with a sample book?
Is my problem addressed in the next release?
JeffElkins is offline   Reply With Quote
Old 11-10-2008, 07:43 PM   #267
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,397
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by thawk View Post
A more specific style may has higher priority than the style specified in --override-css. For example, ".myfont {font-family:...}" has higher priority than a --override-css "body {font-family:...}". I can't alter the font-family unless I know there's a .myfont class, and override the style for myfont class.

If html2epub can filter out the font-family property, the font-family specified in --override-css will always be used without exception.
html2epub doesn't filter CSS rules. However, it will eventually support embedded fonts, which should do what you need.
kovidgoyal is offline   Reply With Quote
Old 11-10-2008, 07:43 PM   #268
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,397
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
[quote=JeffElkins;286618]
Quote:
Originally Posted by JeffElkins View Post

Is my problem addressed in the next release?
No, your problem is caused by not having any <p> tags in the HTML. Instead it uses <br><br>, so the css wont have any effect on that
kovidgoyal is offline   Reply With Quote
Old 11-10-2008, 07:48 PM   #269
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
[QUOTE=kovidgoyal;286620]
Quote:
Originally Posted by JeffElkins View Post

No, your problem is caused by not having any <p> tags in the HTML. Instead it uses <br><br>, so the css wont have any effect on that
Thanks.
JeffElkins is offline   Reply With Quote
Old 11-10-2008, 07:52 PM   #270
thawk
Connoisseur
thawk began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Oct 2008
Device: prs 505
Quote:
Originally Posted by kovidgoyal View Post
html2epub doesn't filter CSS rules. However, it will eventually support embedded fonts, which should do what you need.
OK.
Embedded fonts is not so useful for CJK, because CJK font set is too large.
Anyway, thanks.

To JeffElkins:
You can try substituting <br> to <p> before using html2epub. I may helps.
thawk is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 09:27 AM
EPUB output justification toki08 Calibre 10 01-08-2011 04:14 PM
Calibre epub output details and Nook squidward Calibre 6 11-24-2010 03:21 PM
epub output metadata troymc Calibre 5 05-22-2010 12:23 AM
Problem with epub output in Cybook Gen3 fjf Calibre 3 02-03-2010 02:23 AM


All times are GMT -4. The time now is 08:21 AM.


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