|
|||||||
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features. If you have any problems with the registration process or your account login, please contact us. Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience. |
| Calibre Calibre is an open-source library manager to view, convert and catalog e-books. Cross-platform (Linux, Windows and OS X) |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 10,084
Karma: 41079
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
LRF output
I'm happy to announce html2lrf, an open source, cross-platform HTML to LRF converter that I believe is the most feature-complete converter available. It's distributed as part of libprs500 and will eventually be integrated into its GUI. I've attached an LRF file to show off some of its capabilities.
It has support for CSS, recursive links, inline images, lists, tables, dropcaps and embedded fonts. If you have an HTML file it chokes on, I want to know about it! For all you content creators, this presents an alternative content creation path. Just open the source file in you favorite office suite, save it as HTML and run it through html2lrf. Get it and the rest of libprs500 from https://libprs500.kovidgoyal.net. After installation a command html2lrf will be available. It's self documenting, i.e. just run it to get a list of options. Basic usage is as simple as Code:
html2lrf myfile.html Last edited by kovidgoyal; 08-21-2007 at 09:04 PM. |
|
|
|
|
|
#2 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 337
Karma: 701
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Congratulations... so you finally released it!
I just looked at the code, and it's written very nicely. |
|
|
|
|
|
#3 |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 10,084
Karma: 41079
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
Thanks now I have to build the GUI and integrate PDFRead and I'll release libprs500 0.4. So much to do, so little time ;-)
|
|
|
|
|
|
#4 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 337
Karma: 701
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Now that PDFRead is almost feature-complete (can't think of anything more to add)
I plan to look into adding more device backends to libprs500 like we discussed.BTW, I think you should do a strategic renaming of libprs500 ... now it does so much more. |
|
|
|
|
|
#5 | |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 10,084
Karma: 41079
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
Quote:
Yeah, but I haven't been able to think of a good name. Any suggestions. Also I think I'll wait until it's a little closer to maturity. |
|
|
|
|
|
|
#6 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 337
Karma: 701
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
BTW, you might want to change your Feisty installation instructions: there's no libusb package, but libusb-0.1-4.
|
|
|
|
|
|
#7 |
|
Enthusiast
![]()
Posts: 38
Karma: 36
Join Date: Dec 2006
Device: Sony Reader PRS-500
|
Nice work! My first converted book looked very nice with one exception.
The first page was blank except for the following line: Code:
xml version='1.0' encoding='%SOUP-ENCODING%' BTW I'm running the Windows version of teh html2ltf app. |
|
|
|
|
|
#8 | |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 10,084
Karma: 41079
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 10,084
Karma: 41079
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Enthusiast
![]()
Posts: 38
Karma: 36
Join Date: Dec 2006
Device: Sony Reader PRS-500
|
I've just found out why.
The HTML file for some reason had the following xml declaration at the top: <?xml version="1.0" encoding="UTF-8" ?> Removing this causes the html file to be converted fine (without the funny front page). Whether you want to cater for this oddity I'm not sure (its not really common although all browsers handle it OK) |
|
|
|
|
|
#11 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 337
Karma: 701
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
BTW, was looking at the code and looks like it may take some time for me to implement it: The Device interface is not used anywhere, but the PRS500 class is. However, the Device interface is very do-able for the REB1100. For the 1150/1200, you can't really do anything: the whole interface is controlled by the ebook itself, with request coming to a webserver. It *might* be possible to host this in prs500, but I don't think you'd be very interested in it... |
|
|
|
|
|
|
#12 | |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 10,084
Karma: 41079
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
Quote:
|
|
|
|
|
|
|
#13 | |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 10,084
Karma: 41079
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
Quote:
|
|
|
|
|
|
|
#14 |
|
Connoisseur
![]()
Posts: 65
Karma: 10
Join Date: Apr 2006
Device: Sony PRS-500
|
This sounds fantastic, but pardon my ignorance. I've downloaded and installed libprs500 but don't see any html2lrf anywhere in the program, not did I see it as a component during the installation. TIA.
|
|
|
|
|
|
#15 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 3,111
Karma: 17432
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
It's a commandline program which resides in the libprs500 folder.
|
|
|
|
![]() |
| Tags |
| html2lrf, libprs500 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EPUB output | kovidgoyal | Calibre | 613 | Yesterday 11:38 PM |
| ABC Converter output+Caliber | JGB | Calibre | 0 | 10-17-2008 10:23 PM |
| reverse display output? | LDB | Reader Troubleshooting | 0 | 08-11-2008 12:14 AM |
| Sunrise output encoding | lambone | Sunrise | 3 | 02-04-2005 02:24 AM |