Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : KOVID THANK YOU!!!


kycrout
12-31-2007, 01:54 AM
As a recent owner of the PRS-505, I did not understand the full benefit of your application until I started experimenting.

To be frank, my reading experience would not even be close to what it is, if it where not for your efforts ..

For this, I thank you !

I am a stickler for perfection. One area I seem to muck up is creating a LRF from txt and jpg. Obviously your interpreter does not know chapter heading in order to make line breaks etc .. whereas in html it works really well ..

Two questions if I may
1) I have noticed really nice conversion tools (behind the scenes exe's the GUI uses) but do not seem to find a txt2html.exe. This would be perfect to create a standard converted html doc, which I could then tag with chapter headings (Tried this with word and it stuffed the document up with unnessary tags and rubbish!) and then convert to lrf .. Am I missing it ?

2) Is there actually a way to edit an LRF? Obviously Q1 assumes not, but I just though I ask


I love your work !!

Thanks again !

kycrout

kovidgoyal
12-31-2007, 10:09 AM
Glad you find it useful. The command markdown-libprs500 will convert txt to html. No there is no easy way to edit LRF files I'm afraid.

kycrout
12-31-2007, 10:53 AM
Thank you Sir - I shall use that command and then edit the html to put the appropriate tags in !!

Happy New Year to you ...

kycrout
12-31-2007, 12:07 PM
Sorry to bug again .. could you give me an example command please

i tried markdown-libprs500 d:\c.txt -f d:\c.html but it gave me errors

thanks ..

kovidgoyal
12-31-2007, 01:30 PM
Hmm works for me on linux. What errors does it give you?

kycrout
01-01-2008, 07:41 AM
Don't worry about it .. It complained about utf-8 code. If you would like the exact error again Im happy to run it ..

i did however find I could place h tags directly into txt files and your conversion worked perfectly !!! so problem solved ...

many thanks

:2thumbsup

shousa
01-13-2008, 04:07 AM
A massive thanks from me as well for kovid.

Have just converted .lit to .lrf. :thanks:

kovidgoyal
01-13-2008, 10:05 AM
Thanks :)

jennaclaire
01-15-2008, 07:34 PM
Kovid, I just installed your tool today and am playing with it now and man, you are genius. This is the tool that Sony wishes it created. Its elegant to look at and it does it all and I am sure I haven't even scratched the surface.

I am sitting here loading my books now. I noticed you have a ticket for an upcoming release to support adding a folder to import data. Can I suggest taking it one step further to folders and their subfolders? I found my list of ebooks confusing so I sorted them into subfolders within my overall folder. I did this because the Sony software sucks so badly, but I also feel like it winds up looking more orderly. If you can load by folder, could you consider adding in the contents of subfolders too?

I also noticed, because i am a moron sometimes, that you can add the same book to the library multiple times. Adding in the check to see if it is already there might be problematic in implementaton, but I wanted to put that out there as well.

Look for my donation to your awesome software once the bill from the holidays is settled. I've never been so excited to settle a bill before. :)

you rock.

kovidgoyal
01-15-2008, 07:49 PM
Glad you like it. Always a pleasure to hear from satisfied users :)

The import filter is going to be a recursive import. As for not adding the same book twice, good idea, open a ticket for it so I don't forget.

jennaclaire
01-15-2008, 08:07 PM
I added it. #471.
Another interesting thing I just saw... I keep most of my stuff over on a secondary partition. If I like it, its over there so if my OS gets wonky (its a windows PC), I don't lose the other drive. My c drive is always notoriously full and i just can't be bothered to partitionmagic my way around it. I put the db itself onto my F (data) drive, but the news feeds seem to want to go over onto my c drive anyway which throws an error. does it store it on the root drive by default? (this may be my reason to partitionmagic the bad boy afterall... once i saw i can read the economist over here!)

kovidgoyal
01-15-2008, 08:23 PM
The news feeds use a temporary directory that ends up on the C:\ drive. You can control it by setting one of the following environment variables

TMPDIR, TEMP or TMP

jennaclaire
01-16-2008, 08:38 AM
when i do this it tells me that it is unable to find a connected ebook reader. Should it matter if it is hooked up to change the tempdir folder?

kovidgoyal
01-16-2008, 11:02 AM
Not as far as I know.

jennaclaire
01-16-2008, 11:07 AM
Maybe I am doing something wrong then. From cmd window, i am switching to the libprs500 directory and typing "prs500.exe tmpir F:\My Documents\libprs500"

error about having the reader connected.

thoughts?

kovidgoyal
01-16-2008, 11:31 AM
Oh you need to set the environment variable in windows not on the command line

http://vlaurie.com/computers2/Articles/environment.htm

jennaclaire
01-16-2008, 01:26 PM
Well, with the environment variable changed, when i do the Fetch News it runs for about a minute and then it throws a python25.dll error message that the microsoft error reporting tool and the closes libprs500 altogether. It looks like it was starting to run and then just dies like that. consistently.

kovidgoyal
01-16-2008, 01:43 PM
Run it from the command line

web2lrf --verbose dilbert

jennaclaire
01-16-2008, 01:53 PM
it gives me this...

F:\My Documents\libprs500>web2lrf --verbose dilbert
[INFO] simple.pyo:101: Downloading
.[DEBUG] simple.pyo:84: Fetching file:f:\mydocu~1\libprs500_tw1jsk\index.html
[DEBUG] simple.pyo:263: Processing images...
[DEBUG] simple.pyo:271: Processing links...
.[DEBUG] simple.pyo:84: Fetching file:f:\mydocu~1\libprs500_tw1jsk\category1.ht
ml
[DEBUG] simple.pyo:263: Processing images...
[DEBUG] simple.pyo:84: Fetching http://www.dilbert.com/comics/dilbert/archive/im
ages/dilbert20366711080115.gif
[DEBUG] simple.pyo:84: Fetching http://www.dilbert.com/comics/dilbert/archive/im
ages/dilbert27334210080114.gif
[DEBUG] simple.pyo:84: Fetching http://www.dilbert.com/comics/dilbert/archive/im
ages/dilbert20080111047743.jpg
[DEBUG] simple.pyo:84: Fetching http://www.dilbert.com/comics/dilbert/archive/im
ages/dilbert20080112223612.gif
[DEBUG] simple.pyo:84: Fetching http://www.dilbert.com/comics/dilbert/archive/im
ages/dilbert20080146683111.gif
[DEBUG] simple.pyo:275: Recursion limit reached. Skipping file:f:\mydocu~1\libpr
s500_tw1jsk\category1.html


[INFO] simple.pyo:103: file:f:\mydocu~1\libprs500_tw1jsk\index.html saved to f:\
mydocu~1\libprs500_s7vn1p\index.html
[INFO] convert_from.pyo:350: Processing f:\mydocu~1\libprs500_s7vn1p\index.html
[INFO] convert_from.pyo:303: Parsing HTML...
[INFO] convert_from.pyo:338: Written preprocessed HTML to f:\mydocu~1\html2lrf-v
erbose.html
[INFO] convert_from.pyo:354: Converting to BBeB...
[INFO] convert_from.pyo:350: Processing f:\mydocu~1\libprs500_s7vn1p\links\link1
\category1.html
[INFO] convert_from.pyo:303: Parsing HTML...
[INFO] convert_from.pyo:338: Written preprocessed HTML to f:\mydocu~1\html2lrf-v
erbose.html
[INFO] convert_from.pyo:354: Converting to BBeB...
[WARNING] convert_from.pyo:1344: Could not follow link to http://www.dilbert.com
/comics/dilbert/archive/dilbert-20080115.html
[WARNING] convert_from.pyo:1344: Could not follow link to http://www.dilbert.com
/comics/dilbert/archive/dilbert-20080114.html
[WARNING] convert_from.pyo:1344: Could not follow link to http://www.dilbert.com
/comics/dilbert/archive/dilbert-20080113.html
[WARNING] convert_from.pyo:1344: Could not follow link to http://www.dilbert.com
/comics/dilbert/archive/dilbert-20080112.html
[WARNING] convert_from.pyo:1344: Could not follow link to http://www.dilbert.com
/comics/dilbert/archive/dilbert-20080111.html
[INFO] convert_from.pyo:285: Rationalizing font sizes...
[INFO] convert_from.pyo:1717: Output written to F:\My Documents\libprs500\Dilber
t [16 Jan 2008].lrf

F:\My Documents\libprs500>

kovidgoyal
01-16-2008, 01:57 PM
So it works from the command line. What was the exact error message you got from the GUI?

jennaclaire
01-16-2008, 02:06 PM
Interesting.
Cause Dilbert does work at the GUI. I was orignally trying to pull The Economist, but figured i might as well just try dibert at the CLI just to make life easy.

Economist at CLI is a mess of recursion limits being reached... it goes on and on and on, i had to interrupt it.

kovidgoyal
01-16-2008, 02:08 PM
Try something else as well say newsweek or nytimes

jennaclaire
01-16-2008, 02:24 PM
Newsweek worked as well. I guess its just the Economist then...

kovidgoyal
01-16-2008, 02:33 PM
Economist works for me note that the resursion limits are perfectly normal, they're there to prevent web2lrf from fetching the entire internet.

jennaclaire
01-16-2008, 02:51 PM
Still errors here. Its the "libprs500.exe has encountered an error and needs to close" message. details are modname: phython25.dll and offset is 00094284, if that means anything at all.

jennaclaire
01-16-2008, 03:23 PM
ran ok from the command line...
the plot thickens.

kovidgoyal
01-16-2008, 05:03 PM
Hmm strange, dont really know what else to suggest

jennaclaire
01-16-2008, 05:33 PM
no worries. i think most windows users expect a certain amount of unexplained phenomena, to be honest.

thanks for the help and the command line info, which will be a good workaround.

kati42
01-19-2008, 10:03 AM
This software helped me to decide to go ahead and get the Sony. I had been planning to get the Gen3, but was reading an awful lot of complaints about technical problems with the unit. Once I found out that the Sony accepted SD (not just MemStick) and that there was an excellent 3rd party tool to use it, that helped me decide to go for it.

I'm afraid that I've added a couple minor tickets to your list regarding tags, but I wanted to make sure you knew I wasn't just complaining. ;) It really is an excellent tool, even if those tickets are never addressed.

Kati

The Old Man
01-19-2008, 08:19 PM
Yes, I'm a new 505 owner and it was the ability to convert HTML and LIT for the Reader with libprs500 that convinced me this was the one to go with. Thank you, Kovid

jaguaracer
02-08-2008, 10:58 PM
To be frank, my reading experience would not even be close to what it is, if it where not for your efforts ..

Yes, I agree; thank you Kovid. A great program.

kovidgoyal
02-08-2008, 11:10 PM
<taking a bow> ;)