Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2007, 06:30 AM   #151
Christopher
Junior Member
Christopher began at the beginning.
 
Christopher's Avatar
 
Posts: 6
Karma: 10
Join Date: Mar 2007
Location: Nashville, TN
Device: Sony PRS500
Quote:
Originally Posted by kovidgoyal
The books are stored internally in a database, and the program doesn't keep track of the original file names. Instead it stores meta information about the files. Hence the need for automatically generated file names. Also since the program aims to be cross platform and each platform (read windows) has its file name related idiosyncracies, i thought it safer not to mess with file names that convey metadata at all.
Sounds okay for LRF's that have meta data, but it makes finding a text file thats been renamed a bit harder to deal with. But perhaps that's part of the bug I reported earlier.
Christopher is offline   Reply With Quote
Old 03-28-2007, 10:13 AM   #152
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you update the metadata for the txt file in the GUI, the metadata gets uploaded to the reader, so in the reader list of books the txt file is identified by its metadata
kovidgoyal is offline   Reply With Quote
Advert
Old 03-31-2007, 01:07 AM   #153
petersktang
Junior Member
petersktang began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2007
I tried the below but encountered "unknown url type", any clue?

[root@localhost libprs500-0.3.10]# easy_install-2.5 -U libprs500
Searching for libprs500
Reading http://cheeseshop.python.org/pypi/libprs500/
Reading http://libprs500.kovidgoyal.net
error: Download error: unknown url type: https
[root@localhost libprs500-0.3.10]#
petersktang is offline   Reply With Quote
Old 03-31-2007, 03:11 AM   #154
Christopher
Junior Member
Christopher began at the beginning.
 
Christopher's Avatar
 
Posts: 6
Karma: 10
Join Date: Mar 2007
Location: Nashville, TN
Device: Sony PRS500
Quote:
Originally Posted by kovidgoyal
If you update the metadata for the txt file in the GUI, the metadata gets uploaded to the reader, so in the reader list of books the txt file is identified by its metadata
Sounds good to me then.
Christopher is offline   Reply With Quote
Old 03-31-2007, 10:05 AM   #155
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by petersktang
I tried the below but encountered "unknown url type", any clue?

[root@localhost libprs500-0.3.10]# easy_install-2.5 -U libprs500
Searching for libprs500
Reading http://cheeseshop.python.org/pypi/libprs500/
Reading http://libprs500.kovidgoyal.net
error: Download error: unknown url type: https
[root@localhost libprs500-0.3.10]#
Strange, probably PyPi was down when you tried. Try again. Or since you seem to have already downloaded libprs500 just run python setup.py install in the libprs500 directory.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-17-2007, 11:06 PM   #156
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just uploaded a standalone windows installer for all ye faint of heart...
https://libprs500.kovidgoyal.net

In other news I'm partway to a open source cross platform HTML->LRF converter that respects CSS and follows links to external files.
kovidgoyal is offline   Reply With Quote
Old 04-18-2007, 06:51 AM   #157
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,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Will this allow graphics to be placed next to text? Will it allow multiple fonts? Will it allow different font sizes?
JSWolf is offline   Reply With Quote
Old 04-18-2007, 08:38 AM   #158
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
Quote:
Originally Posted by JSWolf
Will this allow graphics to be placed next to text? Will it allow multiple fonts? Will it allow different font sizes?
I believe (correct me if I'm wrong, Kovid) that it allows transfer of files to and from a Reader's internal memory without using the ConnSoft.
NatCh is offline   Reply With Quote
Old 04-18-2007, 09:08 AM   #159
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,771
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 NatCh
I believe (correct me if I'm wrong, Kovid) that it allows transfer of files to and from a Reader's internal memory without using the ConnSoft.
I think you misunderstood. If I have an HTML file with different font sizes, graphics next to text, and maybe even a table, will they be kept when going from HTML to LRF?
JSWolf is offline   Reply With Quote
Old 04-18-2007, 09:21 AM   #160
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
I understood what you were asking, JSWolf -- I think this isn't a book creation tool, but rather a book transfer/file management tool.

I could, however, easily be wrong, as a lot of Kovid's discussion swishes right over my head, and I admit that I haven't been following it as closely as I might.
NatCh is offline   Reply With Quote
Old 04-18-2007, 12:21 PM   #161
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm I have to add a features list to the wiki at some point:

Initially libprs500 started out as a file transfer tool to avoid having to use the connect s/w which is especially important for people who dont use windows. However, it has since evolved to book an ebook library management application. It maintains a searchable database of your ebooks. The database is capable of storing each logical book in various ebook formats, and it knows enough to edit/read the metadata from various ebbok formats. Eventually it will have support for automatic conversion from txt/html -> lrf.

Coming to the converter subsystem. As a first step it will support common CSS properties, including font sizes/weights/styles. It's almost at that point already. Then I will add support for Image blocks and then support for importing html for links to external files.

Support for inline images and tables will be on a longer timescale.

The important thing is that all my tools are GPLed and designed to be cross platform from the start.
kovidgoyal is offline   Reply With Quote
Old 04-18-2007, 02:16 PM   #162
esperanc
Member
esperanc began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Nov 2006
Device: Sony Reader
Quote:
Originally Posted by kovidgoyal
The important thing is that all my tools are GPLed and designed to be cross platform from the start.
This is a Good Thing(TM)

Keep up the good work.

As for the inline images, I got it _almost_ working in htmlbbeb, except for the fact that the plot command is not handled correctly by MSH_Parser. I started writing my own lrs-->lrf parser with the help of code from pylrs. Unfortunately, I scarcely have time to do some programming these days. I wonder if your project will include a lrs-->lrf parser or whether it will generate lrfs directly...
esperanc is offline   Reply With Quote
Old 04-18-2007, 02:42 PM   #163
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by esperanc
As for the inline images, I got it _almost_ working in htmlbbeb, except for the fact that the plot command is not handled correctly by MSH_Parser. I started writing my own lrs-->lrf parser with the help of code from pylrs. Unfortunately, I scarcely have time to do some programming these days. I wonder if your project will include a lrs-->lrf parser or whether it will generate lrfs directly...
That is great news about the inline images. I did use your CSS translation routines in my code for which you will be duly acknowledged.

I use Falstaff's pylrs backend to generate the LRF files. It is not (as far as I know) capable of direct LRS->LRF conversion. I would urge you to either look into using it in your own code or consider merging our projects, that way the work each of us has to do is reduced.

Last edited by kovidgoyal; 04-18-2007 at 02:45 PM.
kovidgoyal is offline   Reply With Quote
Old 04-22-2007, 12:44 AM   #164
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,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I've uploaded the converter in libprs500-0.3.13
It's the command html2lrf

Note if you only want to try the the converter then you don't need to worry about satisfying any of libprs500's dependencies except python 2.5
kovidgoyal is offline   Reply With Quote
Old 05-02-2007, 07:39 PM   #165
yargoflick
Enthusiast
yargoflick is on a distinguished road
 
yargoflick's Avatar
 
Posts: 31
Karma: 60
Join Date: Mar 2007
Device: Sony Reader
txt2lrf not working, needs makelrf module

Quote:
Originally Posted by kovidgoyal
I've uploaded the converter in libprs500-0.3.13
It's the command html2lrf

Note if you only want to try the the converter then you don't need to worry about satisfying any of libprs500's dependencies except python 2.5
Ohla,
I just got this installed on my Debian machine (had to snag the python2.5 debs from the ubuntu fiesty fawn dist for now, but they work)

html2lrf works, (a bow, and many thanks).

When I tried to run txt2lrf python complained that it couldn't find the makelrf module.
I checked the sources and it doesn't seem to be in there.

Googling for makelrf.py shows that it used to be in the src/libprs500/lrf/ directory:
https://libprs500.kovidgoyal.net/changeset/222

Hmm.. what am I doing? I'm just gonna go file a bug, like a sane person.
yargoflick is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KDK Reverse Engineering - For Those who Cannot wait... DairyKnight Kindle Developer's Corner 0 05-14-2010 12:29 AM
Reverse-engineering the .IMP format nrapallo IMP 23 02-12-2009 01:44 PM
Reverse engineering the Cybook hard-/software srml Gen3 Developer's Corner 8 07-07-2008 04:27 PM
PC sync protocol dumky Which one should I buy? 2 01-04-2008 01:33 PM
Introduction to Reverse Engineering Software Colin Dunstan Deals and Resources (No Self-Promotion or Affiliate Links) 0 05-25-2004 11:31 AM


All times are GMT -4. The time now is 09:03 PM.


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