|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#61 | |
Blueberry!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Quote:
However, you will very likely still want to do some editing prior to running pielrf with any CLIT output. For example, running pielrf on raw CLIT HTML doesn't give you chapters, so you have one long book. And it's kind of "inelegant" to have the "THIS BOOK IS GREAT!" blurbs, followed by the Copyright Page, followed by the book itself, all in one shot. So, pielrf --strip-html DOES work, but I recommend using striphtml to do the initial cleaning of all tags pielrf doesn't understand. THEN you can easily add <chapter> tags, and run THAT through pielrf. This will produce much nicer results, and only take a little extra time (depending on the complexity of the book). -Pie Last edited by EatingPie; 06-21-2007 at 10:06 PM. |
|
![]() |
![]() |
![]() |
#62 |
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.1.1 - Parskip, PIELRF.PY for Windows, etc.
New version pielrf 2.1.1.
See the first post to download. - On Windows, the executable is now named PIELRF.PY after running setup. By default, the parskip setting is 0, and an increase to about 10 or 20 starts to give visible results.- Added "--parskip=" setting, to allow added spacing between paragraphs - Any "* * *" on its own line is converted to a section break, unless suppressed with the "--no-starbreak" switch - Books without <chapter> tags now render without a TOC - Little bit of extra stripping of CLIT output. - Added back in one vertical space at beginning of chapter, to offset the chapter title slightly, suppressed with "--no-chapterspace" In the United States, a lot of books use the "* * *" to delimit section breaks within a chapter. These are now automatically found, centered, and given a vertical break, just as in a book. In terms of vertical space at the chapter heading, this disappeared with version 2.1, so I added it back. If you prefer no additional vertical space, you can turn it off with the "--no-chapterpsace" option. -Pie |
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,783
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Does --parskip add in a 1/2 line space or a full line space? I hope it's not a full line space. Most people don't like full line spaces on the reader where they are not meant to be.
|
![]() |
![]() |
![]() |
#64 |
Blueberry!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
The --parskip is actually in points, and is independent of the line spacing. I had to crank it up to like 10 to see any noticeable change.
It's "off" by default (0), so it won't effect anyone unless they actually use it. EDIT: Let me clarify a bit. Line spacing is applied between paragraphs, THEN the parskip is also added. It being zero (0) means no ADDITIONAL spacing is added. Hope that helps. -Pie Last edited by EatingPie; 06-22-2007 at 12:41 PM. |
![]() |
![]() |
![]() |
#65 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,783
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#66 |
Blueberry!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Yep.
-Pie |
![]() |
![]() |
![]() |
#67 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,783
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Would you mind not putting any extra line spaces between paragraphs and letting the user decide? I find the Palm format of extra line spaces to be annoying. If the occasional one is there because it's means to be there, then that's not a problem. But we (the ones who voted in the poll on line spaces and voted no) would prefer not to have them with no way to turn them off.
|
![]() |
![]() |
![]() |
#68 | |
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! I think we had a miscommunication!
I hate the extra spacing between paragraphs, and would have voted against it too (no offense simmepimme)... Quote:
![]() Almost every feature I add, I give a command line switch to control it. Everyone has different tastes, and my goal is to have pielrf to be as flexible as possible to accommodate those tastes. There'll always be a way to turn new features off! -Pie Last edited by EatingPie; 06-22-2007 at 11:09 PM. |
|
![]() |
![]() |
![]() |
#69 |
Blueberry!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
New version pielrf 2.1.2.
See the first post to download. A minor update / bug fix for ConvertLit. - Handles ConvertLit <span class="italic"></span>, <span class="bold"></span>, (etc.) for italics, bold, subscript and superscript formatting. -Pie
- A few programmatic clean-ups as well. |
![]() |
![]() |
![]() |
#70 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,783
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#71 | |
Blueberry!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Quote:
![]() In a word... not at all. Pielrf will only process the file fed to it, and it doesn't handle external -- or even internal -- links. -Pie PS I'll only hate you if you request this as a feature! ![]() |
|
![]() |
![]() |
![]() |
#72 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,783
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Ok, hate me. Consider it requested.
|
![]() |
![]() |
![]() |
#73 |
Blueberry!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
|
![]() |
![]() |
![]() |
#74 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,783
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What might be easier to do that would also work is to come up with a program to join them together and make it in a format PieLRF likes.
|
![]() |
![]() |
![]() |
#75 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2007
Device: Sony Reader (PRS-500)
|
That's probably true. A way to feed it multiple files, and have links between them, would be awesome. Or even if there was a way to bookmark points in a single long file, and link between them, and I would love you forever (in a non-prison-movie way, of course...)
Oh, and the feature where pielrf doesn't make a TOC on a file without <chapter> tags isn't working for me. It just makes a TOC with a single entry of the first line of the file. Do I need to add --disable-toc to force this behaivor? Or did you fix it in 2.1.2, 'cause I havent downloaded that version yet? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
convert straight quotes to curly quotes | alansplace | Calibre | 3 | 09-25-2010 03:51 PM |
curly quotes | DaleDe | Sigil | 6 | 06-26-2010 10:33 PM |
A tool for converting to curly quotes | Snowman | Workshop | 7 | 02-08-2009 12:22 PM |
Austen, Jane: Emma HTML (PDA and iPhone-friendly) with curly quotes etc | andym | Other Books | 6 | 09-11-2007 02:00 PM |
PRS-500 pielrf beta - Text to LRF with Easy TOC, autoflow, etc. | EatingPie | Sony Reader Dev Corner | 9 | 05-11-2007 10:51 PM |