|
|
Thread Tools | Search this Thread |
05-17-2007, 02:46 PM | #16 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Thanks for the pointer Harry! I'll whip something up.
-Pie |
05-20-2007, 12:34 AM | #17 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Pielrf 2.0 - Unicode and New Library
New version pielrf 2.0.
See the first post to download. - Use new pielrf python library. In terms of code, this is a huge revision. I created new book class, and broke most functions out into a new library. This actually gave me a slight optimization in the final LRF.- Support for Unicode (thanks to Lee Bigelow). - Added HTML ampersand support in Title. - Added 'textchapter' for headerstyle, which uses specified text on cmdline plus the chapter name I had to make a slight change to pylrs, which will be installed automatically when you run "python setup.py install" (or will give you instructions on Windows). Added an "--headerstyle=textchapter" option. If you provided the header text from the command line (--headertext="Some Text"), this new option will combine that text with the chapter name -- similar to the "titlechapter" option. Thanks to Lee Bigelow Unicode is now supported and automatically detected. This contribution is great, and handles books with different unicode types! Check Jane Eyre and Ten Days that Shook the World from Gutenberg. http://www.gutenberg.org/files/16235/16235-8.zip and http://www.gutenberg.org/etext/3076 -Pie Last edited by EatingPie; 05-20-2007 at 12:41 AM. |
Advert | |
|
05-20-2007, 10:22 PM | #18 |
creator of calibre
Posts: 44,559
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Pie, you may find this useful
http://docs.python.org/lib/module-htmlentitydefs.html |
05-21-2007, 12:18 PM | #19 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Thanks Kovid! I'll try some code today and see if it might work for me.
-Pie |
05-21-2007, 01:50 PM | #20 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Pielrf 2.0.1 - Bug Fix and Regex Usage
New version pielrf 2.0.1.
See the first post to download. - Minor bug fix in unicode encoding choice. That's about it. :-)- Use regex to detect HTML tags. -Pie |
Advert | |
|
05-26-2007, 03:48 PM | #21 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Pielrf 2.0.2 for ConvertLit Users!
New version pielrf 2.0.2.
See the first post to download. This is for users of ConvertLit. I now inlude the "--strip-html" option to strip all unknown HTML tags from the input text file (known tags, like <i></i> are preserved). I also provide a separate utility striphtml to produce a pre-stripped output file. ConvertLit tends to generate fairly complex HTML, so taking the unknown HTML out ahead of time makes it a lot easier to add "<chapter>" tags in the right place. - Added "--strip-html" to remove unknown HTML. -Pie
- striphtml utility pre-strips unknown HTML for easier editing. - Fixed explanation of "--baselineskip" option. |
05-26-2007, 04:44 PM | #22 |
creator of calibre
Posts: 44,559
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Umm while I applaud your efforts, you can just pass the output html files through html2lrf and it will automatically detect metadata, chapters and create the LRF.
|
05-27-2007, 02:44 AM | #23 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Oh, no doubt html2lrf is appropriate for use with ConvertLit. However, I often add features to pielrf that I personally find a need for -- this one came after I downlaoded a book from Fictionwise, and I ran ConvertLit on it. If the feature is uselful for me, I figure other users might want it too.
html2lrf and libprs500, are very well-represented on the forum, so I'm betting most people here know about them -- ConvertLit users in particular. But variety is the spice of life, and there may be some users out there who would benefit from this feature in pielrf -- I sure did! -- so here it is. -Pie |
05-28-2007, 03:44 PM | #24 |
Fully Converged
Posts: 18,171
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
|
I agree with Pie... it's always nice to have alternatives, especially when both are being actively developed.
|
05-28-2007, 04:44 PM | #25 |
creator of calibre
Posts: 44,559
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah but only if an alternative provides some different functionality. Otherwise it's just duplicated effort. Effort that would be more useful if directed into a single project.
|
05-29-2007, 12:05 AM | #26 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
I do not entirely agree with this sentiment, however I think further deliberation along these lines would be better served in the Developers' Forum, as it treads in to philosophies of development. My primary intent here is to announce and discuss features of pielrf as well as field potential feature requests for future versions.
-Pie |
05-31-2007, 07:40 PM | #27 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Version 2.0.3 - Indented Text
New version pielrf 2.0.3.
See the first post to download. Support for indented text. - Added indented text via the HTML <blockquote></blockquote> tags. Note that the "--quoteoffset" is added to the side margin to create the indent. If you use "--quoteoffset=0" there will be no additional indentation (it will match non-indented text).- Added "--quoteoffset" flag to control indent (default 40). -Pie Last edited by EatingPie; 05-31-2007 at 09:36 PM. |
06-07-2007, 01:57 AM | #28 | ||
Member
Posts: 21
Karma: 10
Join Date: May 2007
Device: Sony Reader (PRS-500)
|
Hey EatingPie,
The multiple "<"s issue is still broken in 2.0.3. Here's the snippet from my textfile that is the problem Quote:
and here's the command used to compile it: Quote:
|
||
06-07-2007, 03:43 PM | #29 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Ah... Oops! Thanks for the sample, that'll help!
Got a huge update coming, so I'll make sure this is part of it. -Pie |
06-08-2007, 08:53 PM | #30 |
Resident Curmudgeon
Posts: 76,459
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
By the way, there is a problem with the pielrf 2.0.3 ZIP file under Windows. When using Windows Explorer with the ZIP file, it will not extract. I had to use my 4NT prompt and unzip to get it to extract. So for those command prompt challenged or no other utility to handle ZIP files, they won't be able to extract it.
Next issue.. where do I get pylrs 1.0.1? Last edited by JSWolf; 06-08-2007 at 09:38 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
convert straight quotes to curly quotes | alansplace | Calibre | 3 | 09-25-2010 04:51 PM |
curly quotes | DaleDe | Sigil | 6 | 06-26-2010 11:33 PM |
A tool for converting to curly quotes | Snowman | Workshop | 7 | 02-08-2009 01:22 PM |
Austen, Jane: Emma HTML (PDA and iPhone-friendly) with curly quotes etc | andym | Other Books | 6 | 09-11-2007 03:00 PM |
PRS-500 pielrf beta - Text to LRF with Easy TOC, autoflow, etc. | EatingPie | Sony Reader Dev Corner | 9 | 05-11-2007 11:51 PM |