Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2007, 11:32 PM   #301
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You have my word.
kovidgoyal is offline   Reply With Quote
Old 08-01-2007, 11:35 PM   #302
RWood
Technogeezer
RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.
 
RWood's Avatar
 
Posts: 7,233
Karma: 1601464
Join Date: Nov 2006
Location: Virginia, USA
Device: Sony PRS-500
Quote:
Originally Posted by JSWolf View Post
Please make sure it's gotten around to after version 10.9.
Jon, cut him some slack, maybe version 22.07.11. Blank lines after paragraphs are not that easy to generate.
RWood is offline   Reply With Quote
Advert
Old 08-02-2007, 01:20 AM   #303
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RWood View Post
Jon, cut him some slack, maybe version 22.07.11. Blank lines after paragraphs are not that easy to generate.
Oh wait, that's a MobiPocket format feature. LRF doesn't do extra blank lines after paragraphs unless it's part of the book.
JSWolf is offline   Reply With Quote
Old 08-02-2007, 04:29 PM   #304
astra
The Introvert
astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.
 
astra's Avatar
 
Posts: 8,307
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
Do I understand it right, that I can use lib500prs windows installer which has GUI interface instead of Connect software?

I am going on holiday in a few days and I am taking my laptop with me. It does NOT have Connect software atm but I might want to charge my reader via USB, so I need a software that would recognise the reader. If I install lib500prs and it will allow me to charge the reader I would like to install it. Good opportunity to explore the program without messing Connect software.
astra is offline   Reply With Quote
Old 08-02-2007, 05:49 PM   #305
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah it will allow you to charge your reader.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-02-2007, 05:55 PM   #306
astra
The Introvert
astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.
 
astra's Avatar
 
Posts: 8,307
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
Thanks.

I will install it tomorrow evening
astra is offline   Reply With Quote
Old 08-02-2007, 11:13 PM   #307
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
v 0.3.83 is on its way to the servers:
1) --blank-after-para
2) bug fixes
3) internal re-organization that may have introduced some regressions
4) increased default para indent
kovidgoyal is offline   Reply With Quote
Old 08-05-2007, 08:18 PM   #308
flyneo
Junior Member
flyneo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2007
Device: SONY PRS-500
Got an error

Hi,

I used this tool to convert a big HTML file (30M with images). However, I got the following error after a while:

Processing 0-201-63354-X_Joined.htm
Parsing HTML... done
Converting to BBeB...Unhandled/malformed CSS key: text-align left

Traceback (most recent call last):
File "convert_from.py", line 1453, in <module>
File "convert_from.py", line 1387, in main
File "convert_from.py", line 1288, in process_file
File "convert_from.py", line 377, in __init__
File "convert_from.py", line 461, in parse_file
File "convert_from.py", line 672, in process_children
File "convert_from.py", line 1196, in parse_tag
File "convert_from.py", line 672, in process_children
File "convert_from.py", line 1196, in parse_tag
File "convert_from.py", line 672, in process_children
File "convert_from.py", line 1194, in parse_tag
File "convert_from.py", line 1205, in process_table
File "libprs500\ebooks\lrf\html\table.pyo", line 359, in blocks
IndexError: list assignment index out of range

Could you help me with that? Thanks!

Last edited by flyneo; 08-05-2007 at 08:31 PM.
flyneo is offline   Reply With Quote
Old 08-05-2007, 09:25 PM   #309
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Attach the html file or send it to me.
kovidgoyal is offline   Reply With Quote
Old 08-06-2007, 12:34 AM   #310
flyneo
Junior Member
flyneo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2007
Device: SONY PRS-500
Quote:
Originally Posted by kovidgoyal View Post
Attach the html file or send it to me.
Thanks for the quick reply. Please see the attachment for the file that caused the problem. This is the main file I passed to html2lrf. There are some additional files which I can send to you if needed.

Basically what I was doing is convert a tech book which is in chm format into a lrt file. There are more than 1000 pages and hundreds of images and tables with the chm book. I firstly decompiled it using 'hh' to a bunch of html files and images. Then I joined these html files using BookDesigner into a few files. And passed the joined html file to html2lrf converter. Before doing this, I also tried to pass the original html files directly to html2lrf without joining. But the program ran for about an hour then exit with errors.

Again thank you for the help!
Attached Files
File Type: rar 0-201-63354-X_Joined.rar (478.6 KB, 344 views)
flyneo is offline   Reply With Quote
Old 08-06-2007, 12:48 AM   #311
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This file seems to use tables for formatting included nested tables.html2lrf supports only simple tables. Try using the --ignore-tables option.
kovidgoyal is offline   Reply With Quote
Old 08-06-2007, 01:22 AM   #312
flyneo
Junior Member
flyneo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2007
Device: SONY PRS-500
It works great now. Thanks a lot!
flyneo is offline   Reply With Quote
Old 08-08-2007, 12:32 PM   #313
Valdhor
Member
Valdhor began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2007
Device: Sony Reader PRS-500
CSS for <pre> tags gives "Unhandled/malformed CSS key" errors

If you have CSS declared for <pre> tags, you will get errors.

HTML File:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Bug Testing</title>
<link rel="stylesheet" href="bugtest.css" type="text/css" />
</head>
<body>
<pre>Some Stuff</pre>
</body>
</html>
CSS File (bugtest.css):
Code:
pre {
	border: solid 1px #444;
	background-color: #e0e0e0;
	padding: 0.1in;
	margin: 0.2in;
	clear: right;
}
This will produce the following errors:
Quote:
Unhandled/malformed CSS key: border solid 1px #444
Unhandled/malformed CSS key: clear right
Unhandled/malformed CSS key: margin 0.2in
Unhandled/malformed CSS key: background-color #e0e0e0
Unhandled/malformed CSS key: text-align left
Valdhor is offline   Reply With Quote
Old 08-08-2007, 12:43 PM   #314
Valdhor
Member
Valdhor began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2007
Device: Sony Reader PRS-500
More complete error messages

I keep getting the error
Quote:
WARNING: An error occurred while processing a table: list assignment index out of range
Ignoring table markup
Unfortunately, this is a 3.2MB file that has been generated from multiple (Read hundreds) HTML files into one big file. What would be useful is something to the effect...

Quote:
WARNING: An error occurred while processing a table: list assignment index out of range
at line xxx near sometextthatwasreadnearwheretheerroroccurred
Ignoring table markup
so that I can figure out where the problem is and fix it.
Valdhor is offline   Reply With Quote
Old 08-08-2007, 12:55 PM   #315
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The CSS messages are not error they just indicate that those CSS properties have been ignored.

The tables error message is most likely generated because of a complex and/or nested table. I'll output the first hundred characters of the table tag in the next version, but line numbers are not going to be possible because of the way the html parser is designed.
kovidgoyal is offline   Reply With Quote
Reply

Tags
html2lrf, libprs500


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font of header for LRF Output on PRS 505 duckbill Calibre 3 05-15-2010 11:07 AM
Pissed off with LRF formatting: LRF/LRS clean tool? grimborg LRF 8 02-15-2010 01:14 PM
Fonts for LRF output krischik Calibre 1 10-03-2009 05:01 AM
CBZ > LRF (LRF>HTML/MOBI????) sideburnt Calibre 4 09-15-2009 06:44 AM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 12:16 PM


All times are GMT -4. The time now is 04:56 AM.


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