03-11-2008, 10:05 AM | #1 |
Member
Posts: 17
Karma: 24
Join Date: Mar 2007
Device: PRS-500
|
html2lrf or Sony Library software problem?
So, I was trying to convert an HTML ebook to LRF format today using the command line version of libprs500. I used this command:
html2lrf --author="Murphy, C.E." title="The Negotiator Trilogy 02 - House Of Cards" --base-font-size=6 "<long book name here>" The conversion completed successfully, but when I imported it into the Sony software the title was "The Negotiator Trilogy - House Of Cards" ... notice the missing "02". I thought I maybe had done the conversion wrong and re-did it, making sure to type everything the way I wanted (see above). Deleted it from the Sony software and re-imported it. Same result. Loading the file into the libprs500 GUI app showed that the file had the wrong title. I checked the HTML file and the title tag was empty, so I put one in there and re-converted. Same problem. Could I have done something wrong? Did I maybe type it wrong and the Sony software and libprs500 GUI kept showing cached data from the original incorrect file? Is there any way to correct this? Thanks for any help, Plowman |
03-11-2008, 11:28 AM | #2 |
creator of calibre
Posts: 44,324
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can check what metadata is in a file by using the command
lrf-meta filename.lrf |
Advert | |
|
03-13-2008, 05:40 PM | #3 |
Member
Posts: 17
Karma: 24
Join Date: Mar 2007
Device: PRS-500
|
Well, after doing a fresh convert using the command listed in the first post, the lrf-meta returns the incorrect info. It leaves out the "02" in the title.
Any suggestions on where to look? |
03-13-2008, 06:01 PM | #4 |
creator of calibre
Posts: 44,324
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You have -- missing before title in your command line
|
03-13-2008, 10:41 PM | #5 |
Member
Posts: 17
Karma: 24
Join Date: Mar 2007
Device: PRS-500
|
The missing "--" was just a typo in the post. Although I re-converted the file half a dozen times, and was sure I was doing it correctly, after doing it again today it worked fine...I must have not been copying the correct file over or something.
Sorry for the hassle, and thanks for the help. P |
Advert | |
|
03-13-2008, 11:24 PM | #6 |
Groupie
Posts: 188
Karma: 220
Join Date: Aug 2007
Location: Moscow, ID
Device: iPhone 11 (Kindle app & iBooks)
|
I don't know, does anyone know if there's some rule about the metadata not being able to handle numbers? I would be shocked if it couldn't, though.
As for what to do about it, the only thing I can think is try some variations and see what works and what doesn't. You've got numbers (02) and a symbol (-) in there. Try it without those, try just one number in a word or something (Hou2se) and see if it will come through that way. Sometime in unix "escaping" characters is important. You might try (\2) instead of (2). At any rate while you're messing around maybe the real answer will come to you. You might also just try to find some software where you can fix the metadata in a gui or on the command line, without having to reconvert the whole book. Not sure right off what those would be, but it might save you some hassle. |
03-14-2008, 05:10 AM | #7 |
Wizzard
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
> if there's some rule about the metadata not being able to handle numbers?
There's not - it's fine with them. This is something specific to the OP. > software where you can fix the metadata ... on the command line Kovid's lrf-meta lets you edit as well as view the metadata. |
03-23-2008, 09:46 PM | #8 |
Resident Curmudgeon
Posts: 75,840
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have used numbers in the metadata and it's worked without a hitch.
|
Tags |
html2lrf, libprs500 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Software to batch update PDF metadata/ substitute software for Sony eBook library | ksri99 | Sony Reader | 6 | 05-20-2012 01:53 PM |
Please don't use Sony Library software in.... | jckatz | Sony Reader | 5 | 11-08-2009 06:37 AM |
Problem installing Reader Library software v3 | Casca | Sony Reader | 2 | 09-04-2009 12:44 AM |
New Sony Store software, returning library ebooks - problem | BookishMom | Sony Reader | 3 | 08-28-2009 11:48 PM |
Bookdesigner problem vs. html2lrf | alophind | Sony Reader | 7 | 02-04-2008 12:20 PM |