![]() |
#286 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
|
|
![]() |
![]() |
![]() |
#287 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
|
Oh, I noticed a problem with the code you added to remove the extra <p> in Baen books, I tried to work out why it was happening, and in looking at your source I think I worked it out.
In your BAEN processing stuff, it looks like you have code that strips out the <a id="pXXX"> lines right before you try to strip out the whole <p> including them. I assume the second one never works since the first one has already modified the lines. |
![]() |
![]() |
![]() |
#288 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#289 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#290 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
|
Is there some method for forcing page breaks other than using a regex? My most recent baen purchase is doing weird things at the page breaks. (Especially since the CSS specifically tells it to page-break-before all H1 tags)
One such case is this: Code:
<h1 align="center"> <a name="Chap_2"> </a> <b>MAY, YEAR OF GOD 890</b> </h1> <h2 align="center"> <b>I</b> </h2> |
![]() |
![]() |
![]() |
#291 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look at the CHAPTER OPTIONS help text in the html2lrf help.
|
![]() |
![]() |
![]() |
#292 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2007
Device: Sony PRS-500
|
need a little help
Hello, I am a bit of a newb at this. I was using the "old" html2LRF program for a long time this morning, converting html files from gaslight and it was working great- until it suddenly decided to stop working with no error messages or explanations.
So I found this thread and downloaded this newer program. I tested it on a small html file from gaslight, and it seemed to work, until i tried to bring the new .lrf file into the "CONNECT Reader" program's library. Any time I tried to import the file, the connect reader program would exit without any warning. I tried some more html files with the same result. Any ideas? Am I doing something wrong? edit: just used it on a gutenberg zipped html file and it worked perfectly... so maybe there is a problem with the gaslight texts? Here is one of the gaslight files i tried to convert and couldn't read properly: link Last edited by Bokeh; 07-20-2007 at 12:27 PM. |
![]() |
![]() |
![]() |
#293 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's because the entire text is inside a single table cell. The old HTML2LRF simply ignored table markup the new one processes it, incorrectly in this case. I'll upload a fixed version soon.
|
![]() |
![]() |
![]() |
#294 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2007
Device: Sony PRS-500
|
great, thanks! And thanks in general for making such an awesome program!
|
![]() |
![]() |
![]() |
#295 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released v0.3.78 with --ignore-tables option.
@Bokeh Use the commandline Code:
html2lrf --ignore-tables gaslight.htm |
![]() |
![]() |
![]() |
#296 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
|
hehe, back again...
I'm trying to indent an entire paragraph (not just the first line), something like what <blockquote> does. I've tried margin-left and margin-right, and padding-left and padding-right, both do the right thing in my browser, but html2lrf ignores both of them. Is there something I should be using for this? |
![]() |
![]() |
![]() |
#297 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
html2lrf doesn't support block level indentation other than through <blockquote> as I didn't really see any need for it.
|
![]() |
![]() |
![]() |
#298 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2007
Device: PRS-500
|
Option request
I know it may seem to be a waste of time, however would it be feasible to add an option in the future to put a new line (blank) in between paragraphs?
|
![]() |
![]() |
![]() |
#299 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
open a ticket and I'll get around to it.
|
![]() |
![]() |
![]() |
#300 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
Tags |
html2lrf, libprs500 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change font of header for LRF Output on PRS 505 | duckbill | Calibre | 3 | 05-15-2010 11:07 AM |
Pissed off with LRF formatting: LRF/LRS clean tool? | grimborg | LRF | 8 | 02-15-2010 01:14 PM |
Fonts for LRF output | krischik | Calibre | 1 | 10-03-2009 05:01 AM |
CBZ > LRF (LRF>HTML/MOBI????) | sideburnt | Calibre | 4 | 09-15-2009 06:44 AM |
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything | vasbinde | Calibre | 6 | 02-14-2008 12:16 PM |