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-08-2007, 01:42 PM   #316
Valdhor
Member
Valdhor began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2007
Device: Sony Reader PRS-500
Thank you.

That will make it much easier to find where the error is.

I have been looking for days trying to find a complex or nested table but with over 4700 lines and lots of small tables it's gonna take a while
Valdhor is offline   Reply With Quote
Old 08-08-2007, 01:43 PM   #317
Valdhor
Member
Valdhor began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2007
Device: Sony Reader PRS-500
sorry, that should have been 47000 lines.
Valdhor is offline   Reply With Quote
Old 08-08-2007, 01:53 PM   #318
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
why dont you run html2lrf on the individual files? that way you can narrow down the search a lot.
kovidgoyal is offline   Reply With Quote
Old 08-08-2007, 03:16 PM   #319
Valdhor
Member
Valdhor began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2007
Device: Sony Reader PRS-500
Well, that would have worked but I figured out where the problem was - rowspan="2".
Valdhor is offline   Reply With Quote
Old 08-08-2007, 03:49 PM   #320
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm was that in a relatively simple table? Because if it was it's a bug in html2lrf and i'd like you to send me the html file so I can fix it.
kovidgoyal is offline   Reply With Quote
Old 08-09-2007, 10:05 AM   #321
Valdhor
Member
Valdhor began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2007
Device: Sony Reader PRS-500
Basically, there are a whole bunch of these type constructs which are small tips...

Code:
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.gif"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
When specifying multiple parents for a Role, keep in mind that the last parent 
listed is the first one searched for rules applicable to an authorization query.
</p></td></tr>
</table></div>
If you remove the rowspan="2" then html2lrf works fine.

I will email you the entire file separately.
Valdhor is offline   Reply With Quote
Old 08-09-2007, 11:10 AM   #322
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
thanks it wasn't rowspan=2 it was this table in particular that's causing the problem:
Code:
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.gif"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
When specifying multiple parents for a Role, keep in mind that the last parent 
listed is the first one searched for rules applicable to an authorization query.
</p></td></tr>
</table></div>
kovidgoyal is offline   Reply With Quote
Old 08-09-2007, 09:24 PM   #323
DNel
Member
DNel began at the beginning.
 
Posts: 14
Karma: 29
Join Date: Jul 2007
Device: Sony eReader
Install Error

I just downloaded the libprs500.exe windows installer. In the installation I chose not to install the drivers as I don't have my eReader yet and don't want to lose the ability to use the Connect. After installing, I clicked on the libprs500 icon to launch the program and got the following error message in the associated log

Traceback (most recent call last):
File "main.py", line 25, in <module>
File "libprs500\devices\prs500\driver.pyo", line 56, in <module>
File "libprs500\devices\libusb.pyo", line 32, in <module>
File "libprs500\__init__.pyo", line 50, in load_library
File "ctypes\__init__.pyo", line 423, in LoadLibrary
File "ctypes\__init__.pyo", line 340, in __init__
WindowsError: [Error 126] The specified module could not be found

Any ideas? I uninstalled and then did a reinstall and got the same error. Is it because I unchecked the driver?

Thanks
DNel
DNel is offline   Reply With Quote
Old 08-09-2007, 09:46 PM   #324
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah its a bug. I'll fix it in the next release. You can install the drivers and then uninstall libprs500 and the connect software wont be affected.
kovidgoyal is offline   Reply With Quote
Old 08-10-2007, 02:10 PM   #325
DNel
Member
DNel began at the beginning.
 
Posts: 14
Karma: 29
Join Date: Jul 2007
Device: Sony eReader
Thanks

Thanks, I was able to run libprs500 after I reinstalled with the drivers. However, being completely illiterate when it comes to using it I see that there are icons for add books to library, delete books, edit meta information. After adding the HTML file to library, I don't see how to convert it to LRF. THere is also no place to enter command lines. One of the previous posts mentioned the command line program was in the libprs500 folder. I only see libprs500 (the gui interface) uninstall, and a link to your web page. How do I convert it now to LRF format?

Thanks
DNel

Sorry for being so computer illiterate
DNel is offline   Reply With Quote
Old 08-10-2007, 02:17 PM   #326
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah yes the conversion tools have not yet been integrated with the GUI. At the moment what you need to do is the following:
1) Open a command prompt (Start->run->cmd.exe)
2) change to the folder with the html file (cd "c:\myfolder")
3) html2lrf "myfile.html"

As I get the time I will integrate the conversion tools into the GUI, but that's going to take a while.
kovidgoyal is offline   Reply With Quote
Old 08-10-2007, 03:46 PM   #327
DNel
Member
DNel began at the beginning.
 
Posts: 14
Karma: 29
Join Date: Jul 2007
Device: Sony eReader
Thanks

Thanks,
I tried it on a sample web page and it work great.
DNel
DNel is offline   Reply With Quote
Old 08-11-2007, 06:53 PM   #328
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,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Albertane posted the following....

I can't find any way to generate left justified text with html2lrf. Everything ends up fully justified even if I specify align="left" or style="text-align:left".

Please, please, please add a way to generate left justified text!

Thanks

P.S. copied since it does belong here.
JSWolf is offline   Reply With Quote
Old 08-11-2007, 06:55 PM   #329
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,756
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 JSWolf View Post
I can't find any way to generate left justified text with html2lrf. Everything ends up fully justified even if I specify align="left" or style="text-align:left".

Please, please, please add a way to generate left justified text!

Thanks
You cannot have left justified text unless you put in the hard returns. It's just the way LRF for the Sony Reader works. So get to hitting return.
JSWolf is offline   Reply With Quote
Old 08-11-2007, 08:08 PM   #330
Excalibur
Member
Excalibur began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2007
Device: Sony eReader 500
Hey, just wanted to say thanks for a decent set of conversion utilities.

I did, however, want to point out that you should be reading the .opf file instead of the .html file that is generated with ConvertLit. I noticed that you have probably hardcoded the .htm extension into the converter, bad practice. The .opf has all the file names necessary for the content, covers, etc. and you should instead focus on that while still not hard coding file extensions.

The reason I suggest this? Some of the LIT files I have have text instead of HTML as the body of the book and your tool craps out when it doesn't find an HTML file. The OPF, which is always parsed and output by ConvertLit consistently uses the id of "content" for the main body. You could grab that file name instead of relying on an HTML file being generated. It'd make the tool a bit more stable.

Just my opinion.

Do you know where the format specs for LIT and LRF can be found? I would like to take a look at how the files are set up...

Also, a feature request:
Could you set it up so that we could make CSS style changes from the commandline as well? For instance, setting text-indent for <p> tags. This would make the books look oh so much nicer with some indentation going on

Last edited by Excalibur; 08-11-2007 at 08:18 PM. Reason: Added feature request to avoid double-posting
Excalibur 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 06:31 PM.


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