05-06-2007, 07:06 PM | #46 |
Grumpy Old Man
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
|
Ok, I've started to play around some more with prs500 et al. I'm using a recently updated Ubuntu install (Feisty Fawn). I installed the tools as per the instructions on Kovid's page, without any notable problems. (Unlike my attempt to get it to work in Edgy Eft by using a (botched) Python2.5 install)
As in my previous post, I need to SUDO all commands to work properly, but I think there are still some serious Permissions issues since everything seems to default to root ownership, which is frowned upon in normal use from what I understand. - The GUI finally works, however I can only view or delete files on the device, even non-DRMed files I created, lrf or rtf. I cannot move them to the library which again is owned by root, no changes allowed. I chown it, no difference: I cannot copy files from the device or edit the meta data (on the device only, since I can't get them into the library), the buttons remain greyed out. - Back to the commandline: I can copy them now, but only ONE at a time, since the prs500 cp command does not seem to accept wildcards (i.e. *.lrf) to backup all the books from the memory card to a local folder, as an example. Obviously that does not add them to the library(.db file) anyway. - The files are owned by root, so I need to chown them all to able to do anything with them. (Personally, I would prefer a simple local folder with the books inside for easier manipulation instead of a closed database, like the way prs500 deals with the files on the actual device anyway, or the Connect software on Windows) - I have not managed to change the metadata on files on the PRS500 directly, either. Any pointers would be appreciated, perhaps my limited experience with the Linux shell is part of the problem... Add: I found out about a rather dangerous stunt, turning myself into root using sudo su, then running prs500-gui, that didn't work either. Last edited by allovertheglobe; 05-06-2007 at 07:18 PM. |
05-07-2007, 05:42 AM | #47 |
Fanatic
Posts: 574
Karma: 138556
Join Date: May 2006
Device: PRS505
|
Thanks, allovertheglobe. Using sudo works. Though now I have encountered some of the problems you describe. Still, it's better than nothing, and I'm thankfull that I can copy my books back at all.
|
Advert | |
|
05-07-2007, 01:06 PM | #48 | |
Enthusiast
Posts: 31
Karma: 60
Join Date: Mar 2007
Device: Sony Reader
|
Quote:
Ok, you should NOT have to run prs500 as root... did you follow the instructions to set up udev and add your user to the group plugdev? Put the following code into /etc/udev/rules.d/z90-prs500.rules BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="66 Add yourself to the plugdev group gpasswd -a username plugdev you can either reboot completely or just restart udev and relogin to restart udev: sudo /etc/init.d/udev restart then log out completely and log back in again open a terminal and type 'id', you should have plugdev as a group you belong to. plug your reader in to the usb port and check that the node belongs to the group plugdev. On my debian machine: ls -l /dev/bus/usb/001/ outputs: crw-rw-r-- 1 root root 189, 0 2007-05-07 13:18 001 crw-rw---- 1 root plugdev 189, 4 2007-05-07 14:30 005 id outputs: uid=1001(xxx) gid=1001(xxx) 20(dialout),25(floppy),29(audio),46(plugdev),100(u sers),107(fuse),1001(xxx) I can now run prs500 and prs500-gui without being root. The library.db that prs500-gui creates is owned by me. Hope that helps, Lee |
|
05-07-2007, 02:37 PM | #49 | |
Grumpy Old Man
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
|
Quote:
Thanks for the instructions though, they worked out fine. In case somebody else tries to follow your preceding instructions, please note that the code for the (z)90-prs500.rules got mangled, here's the full line: Code:
BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="660", GROUP="plugdev" As far as the usage of prs500-gui goes, probably a misunderstanding on my part as well. It's at least for now a one-way street: you add the docs (rtf, lrf) you created or downloaded to the library (from your computer), then you can copy them TO the device, but NOT FROM the device. The option is greyed out, and drag-n-drop results in a "NotImplementedError" in the shell. Too bad, maybe later. As for the library being a database file, it has its pros and cons... |
|
05-07-2007, 04:53 PM | #50 |
creator of calibre
Posts: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm sorry I was traveling. Let's see
Transfer from reader to library will be implemented in the future. It just wasn't high on my list of priorities. Glad you got the permissions issues sorted out. Regarding html2lrf It basically supports all HTML 4 tags (there may be a few obscure ones I missed out) and most of the font and page related CSS properties. You should have a look at the demo lrf file in the first post of this topic. The converted HTML file is included. Let me know if you need more info. |
Advert | |
|
05-08-2007, 06:37 AM | #51 |
Addict
Posts: 205
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
|
kovidgoyal, thanks for html2lrf, it works great!
Just noticed some problems, small inline images tend to get scaled up and many images that aren't very high tend to throw new pages before and after when they aren't needed. I always find this Gutenberg document a great one for testing image formatting http://www.gutenberg.org/files/19499/19499-h.zip Noticed the "--font-delta" option only tends to work for headers not text paragraphs. Is it possible to add an option to format images to a specified number of colours? - I always find pictures with 16 colours work well on the reader and saves lots of space. |
05-09-2007, 12:34 AM | #52 | |
creator of calibre
Posts: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
05-09-2007, 01:51 AM | #53 |
creator of calibre
Posts: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released version 0.3.21 with
1) Improved handling on images should fix fangorn's complaints 2) Handling of text-indent on (p, div, h? tags) 3) Added --baen option for preprocessing of baen HTML files 4) Minor bug fixes |
05-09-2007, 04:53 AM | #54 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Looks like you're using PIL now but setup.py doesn't check if it's installed.
|
05-09-2007, 04:59 AM | #55 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Another little bug: in one of the files I had this line:
Code:
<h1 align="center"><a name="Chap_0"></a><b>Part One: </b><b><i>January 1635</i></b><br /></h1><!--Prologue--> |
05-09-2007, 10:52 AM | #56 | |
creator of calibre
Posts: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
05-09-2007, 04:54 PM | #57 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
It's from 1635.
Actually, I didn't explain properly. The comment is not present in the text itself (at least I think so, don't have the file here at the moment), but it's there in the TOC entry. Last edited by igorsk; 05-09-2007 at 04:56 PM. |
05-09-2007, 05:42 PM | #58 |
Addict
Posts: 205
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
|
Release 0.3.21, images now look great! I've logged some more bug reports for you.
|
05-09-2007, 05:48 PM | #59 | |
creator of calibre
Posts: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
05-09-2007, 07:40 PM | #60 |
creator of calibre
Posts: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released 0.3.22 with various minor bugs squashed. Also one major bug that could result in corrupted LRF files.
|
Tags |
html2lrf, libprs500 |
Thread Tools | Search this Thread |
|
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 |