![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 40
Join Date: Mar 2008
Device: Sony PRS505
|
HTML to LRF conversion issue, w/libprs500
(feel free to move this if it's more appropriate elsewhere)
I'm currently waiting for my Sony 505 to arrive, and preparing my library with libprs500. I've run into some difficulty converting two titles, and would appreciate any suggestions as to where I've gone wrong. I'm trying to convert these two volumes of the Complete Works of Montesquieu. I've saved the HTML files to my eBook folder, imported into libprs500, and began conversion. The problem is with the output. Everything's fine, until page 555 in vol 1, 515 in vol 2. Then, I get a page showing the contents of the website's sidebar, and the entire work is restarted - ie, duplicating the first 554 pages and the contents &c. What's especially odd is that I've been able to convert volumes 3 and 4 of this collection with no such problems, and have tried to strip down the HTML code as much as possible, to remove the sidebar altogether, but the duplication persists - at exactly the same point, even though I can detect no difference in the HTML code at that line. I'd appreciate any help you guys can offer; if my description isn't very clear, or you can't replicate my problem, let me know, and I'll upload the lrf files. Thanks |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
How are you saving the HTMl files to disk?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 7
Karma: 40
Join Date: Mar 2008
Device: Sony PRS505
|
Via Firefox, with file type as "Web Page, HTML only." Saving in that manner yields no problems wiith volumes 3 and 4.
I've tried resaving the page a few times, including copying and pasting the source code into notepad and tried various encoding there, to no avail. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Can you post the saved HTML so I can look it.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Basically what you need to do is remove the sidebar html from the saved html.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 7
Karma: 40
Join Date: Mar 2008
Device: Sony PRS505
|
See attached.
Very grateful for your help, btw. If you're familiar with anyway of getting rid of the sidebar by default in the HTML code on this domain, I'd be interested to know, since my amateur efforts with various firefox tools had the required superficial effect, but obviously made no impact on the actual source code. (EDIT: just realised I can't attach html files. Have zipped it) Last edited by adr2689; 03-08-2008 at 07:25 PM. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In the HTML file delete everything between
<body class="grey"> and <div id="lf_content"> then save the modified HTML file in an empty directory and convert it using html2lrf |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 7
Karma: 40
Join Date: Mar 2008
Device: Sony PRS505
|
Excellent, works perfectly. Thanks for your assistance.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beating my head against HTML to LRF conversion | ragaisis | Calibre | 4 | 05-12-2009 06:32 PM |
Batch conversion html to lrf | lilpretender | Sony Reader | 5 | 04-22-2008 09:22 PM |
libprs500 html conversion question | cartz | Calibre | 2 | 03-01-2008 05:50 PM |
HTML to LRF with Libprs500 | stustaff | Calibre | 3 | 11-22-2007 12:53 PM |
Fictionwise adopts libprs500 for Sony LRF e-book conversion | RWood | Sony Reader | 42 | 09-06-2007 12:58 PM |