![]() |
#61 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try --margin-top. Not sure if it's overriden by --header, try it and see.
Yeah send me the lit file. |
![]() |
![]() |
![]() |
#62 |
MonkeyWrench
![]() Posts: 22
Karma: 10
Join Date: Aug 2007
Device: SE K800i & PSP - looking at PRS500 :D
|
OK, probably a really stupid question, but just want to make sure.
It's not possible to convert from within the GUI (libprs500.exe)? So I have to use the command prompt (with the various separate converters individually) to convert files to lrf? - Again, sorry for the (probably dumb) question. I just ordered my PRS500 from the US (can't get it in shops here in europe) and need to convert hundreds & hundreds of ebooks in various formats all mixed together (I'm not very organized). EDIT: As stated, very stupid question. Already found the answer on your website. Thanks for a great piece of software btw! (oh, and this means just ignore the rest of the post) Last edited by ZeBuddha; 08-16-2007 at 07:25 PM. Reason: Answer already on website. |
![]() |
![]() |
Advert | |
|
![]() |
#63 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
no the gui doesn't have an interface to the converters. Though that should change in the next few weeks ;-)
Last edited by kovidgoyal; 08-16-2007 at 09:09 PM. |
![]() |
![]() |
![]() |
#64 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,750
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
The driver doesn´t work for Windows 64 Bit. Should be no problem to compile it for 64 Bit Windows (it is open source, isn´t it). Will check that out ...
|
![]() |
![]() |
![]() |
#65 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah i dont have a 64-bit machine or it would be no problem.
|
![]() |
![]() |
Advert | |
|
![]() |
#66 | |
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Quote:
C:\Documents and Settings\your_user_name_here |
|
![]() |
![]() |
![]() |
#67 |
MonkeyWrench
![]() Posts: 22
Karma: 10
Join Date: Aug 2007
Device: SE K800i & PSP - looking at PRS500 :D
|
At the risk of asking a stupid question again, is there any way to batch-convert files? I've tried using wildcards (eg. lit2lrf X:\SomeDir\*.lit or lit2lrf *.lit) but it doesn't work.
----------------- Actually, I'm not even able to convert a single file in the same directory as libprs500 (renamed the .lit in the example below to remove spaces, etc.): C:\Program Files\libprs500>lit2lrf Blah.lit +---[ ConvertLIT (Version 1.8) ]---------------[ Copyright (c) 2002,2003 ]--- ConvertLIT comes with ABSOLUTELY NO WARRANTY; for details see the COPYING file or visit "http://www.gnu.org/license/gpl.html". This is free software, and you are welcome to redistribute it under certain conditions. See the GPL license for details. LIT INFORMATION......... DRM = 1 Timestamp = 2d04461c Creator = 00000026 Language = 00000809 Writing out "Something_or_other" as "Something or other.htm" ... Traceback (most recent call last): File "convert_from.py", line 83, in <module> File "convert_from.py", line 54, in main File "convert_from.py", line 42, in generate_html libprs500.ebooks.ConversionError: WARNING: Read went past the end of file by 121057 bytes. If the conversion process doesn't work, try to redownload the file. Error reading file "C:\Program Files\libprs500\Blah.lit" -- LZXdecompress failed, status = 3. EDIT: Tested w/ PDF file, following result after trying to convert: C:\Program Files\libprs500>pdf2lrf blah2.pdf Processing libprs500_0.3.95_zgqjkc.html Parsing HTML... Converting to BBeB... Traceback (most recent call last): File "convert_from.py", line 82, in <module> File "convert_from.py", line 78, in main File "libprs500\ebooks\lrf\html\convert_from.pyo", line 1365, in process_file File "libprs500\ebooks\lrf\html\convert_from.pyo", line 414, in __init__ File "libprs500\ebooks\lrf\html\convert_from.pyo", line 511, in parse_file libprs500.ebooks.ConversionError: libprs500_0.3.95_zgqjkc.html does not seem to have any content Last edited by ZeBuddha; 08-16-2007 at 09:24 PM. |
![]() |
![]() |
![]() |
#68 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You have to write a script to do batch conversions. As for that failing lit file, it's convertlit that's failing. You should contact that programs author. Most probably that lit file is either DRM'ed or corrupt.
|
![]() |
![]() |
![]() |
#69 |
MonkeyWrench
![]() Posts: 22
Karma: 10
Join Date: Aug 2007
Device: SE K800i & PSP - looking at PRS500 :D
|
That's strange. I have a separate instance of convertlit 1.8, and it can convert the .lit file from the test above with no problems whatsoever to HTML.
|
![]() |
![]() |
![]() |
#70 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
lit2lrf is on your PATH you dont need to run it from the libprs500 directory. Try it from elsewhere.
|
![]() |
![]() |
![]() |
#71 | |
Member
![]() Posts: 17
Karma: 10
Join Date: Aug 2007
Device: Sony eReader 500
|
Quote:
Code:
for %%f in (*.lit) do lit2lrf --blank-after-para "%%f" ![]() Also, if you're finding that the stuff in your libprs500 directory isn't in your path when you open cmd, make sure you're not using Microsoft's "Command Line Here" power toy. I've noticed that for some reason, it doesn't use the path. Just go to start>run>cmd then hit enter. You'll have to navigate to the directory you want to convert lit files in, but if you make it a sub folder off your C:\ drive, there shouldn't be any problems. |
|
![]() |
![]() |
![]() |
#72 |
Member
![]() ![]() Posts: 11
Karma: 142
Join Date: Aug 2007
Location: Seattle
Device: Kindle
|
I'm getting a strange error any time I upload a book to my prs500:
Unable to send book.lrf to device Traceback (most recent call last): File "main.py", line 348, in upload_books File "libprs500\devices\prs500\driver.pyo", line 168, in run_session File "libprs500\devices\prs500\driver.pyo", line 929, in add_book File "libprs500\devices\prs500\books.pyo", line 282, in add_book KeyError: 'tags' The book shows up fine, but I'm afraid there might be some issue that pops up later. Can I safely ignore this message? I've uninstalled the Connect drivers & rebooted before installing libprs500, and the reader is on the latest firmware from initially hooking it up to the Connect software. |
![]() |
![]() |
![]() |
#73 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah that's a side effect of some changes i made in the driver for the new beta gui. You can ignore it. It will be fixed in the next release.
|
![]() |
![]() |
![]() |
#74 |
Member
![]() Posts: 17
Karma: 10
Join Date: Aug 2007
Device: Sony eReader 500
|
Just attempted to convert another LIT file to LRF and get this error:
X:\eBooks\>lit2lrf --blank-after-para book.Lit Traceback (most recent call last): File "convert_from.py", line 94, in <module> File "convert_from.py", line 89, in main File "convert_from.py", line 48, in process_file AttributeError: 'str' object has no attribute 'verbose' I'll add this to the bugtracker. |
![]() |
![]() |
![]() |
#75 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
typo use any2lrf in the meantime.
|
![]() |
![]() |
![]() |
Tags |
libprs500 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
a simple epub/lit to mobi converter that isn't calibre? | grechzoo | General Discussions | 18 | 08-18-2010 05:20 PM |
Amber Lit Converter is merging txt | Amalthia | Workshop | 7 | 07-16-2008 05:33 PM |
Quick/easy LIT to LRF converter? | OUTATIME | Sony Reader Dev Corner | 10 | 02-29-2008 09:44 AM |
ABC Amber LIT Converter | MrFinch | Workshop | 11 | 08-09-2007 09:06 PM |
Using lit2lrf | zander_nyrond | Sony Reader | 10 | 08-02-2007 02:40 PM |