Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2007, 01:36 PM   #286
edbro
Banned
edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.
 
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
Quote:
Originally Posted by JSWolf View Post
1. Start | Run | cmd
2. d:
3. cd \work\demo
4. html2lrf demo.html

That is all you need to do and demo.lrf will be in the same directory as demo.html.
Thank you, I was assuming that I had to be in the libprs directory to access the executable.
edbro is offline   Reply With Quote
Old 07-16-2007, 06:48 PM   #287
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
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.
bkilian is offline   Reply With Quote
Advert
Old 07-16-2007, 07:18 PM   #288
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by bkilian View Post
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.
Good catch, I've re-ordered them.
kovidgoyal is offline   Reply With Quote
Old 07-16-2007, 11:24 PM   #289
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JSWolf View Post
Would it be possible to have an option to control the paragraph indent? Some HTML are fine as is and some are too small. I would like if possible a default of 4 spaces for an indent if that's OK.
The CSS option text-indent controls this.
kovidgoyal is offline   Reply With Quote
Old 07-17-2007, 02:58 PM   #290
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
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>
In that case, the page break happens between the H1 and the H2, which is pretty weird. Is there some tag we can use to force a page break? Or is there some way we can tell it that <h1> always signifies a new chapter, irrespective of it's contents?
bkilian is offline   Reply With Quote
Advert
Old 07-17-2007, 04:14 PM   #291
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 07-20-2007, 12:18 PM   #292
Bokeh
Junior Member
Bokeh began at the beginning.
 
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.
Bokeh is offline   Reply With Quote
Old 07-20-2007, 01:03 PM   #293
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 07-20-2007, 01:36 PM   #294
Bokeh
Junior Member
Bokeh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2007
Device: Sony PRS-500
great, thanks! And thanks in general for making such an awesome program!
Bokeh is offline   Reply With Quote
Old 07-20-2007, 03:26 PM   #295
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is offline   Reply With Quote
Old 07-22-2007, 03:42 AM   #296
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
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?
bkilian is offline   Reply With Quote
Old 07-22-2007, 04:40 AM   #297
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 08-01-2007, 09:59 PM   #298
classicspam
Junior Member
classicspam began at the beginning.
 
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?
classicspam is offline   Reply With Quote
Old 08-01-2007, 10:05 PM   #299
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
open a ticket and I'll get around to it.
kovidgoyal is offline   Reply With Quote
Old 08-01-2007, 11:19 PM   #300
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
open a ticket and I'll get around to it.
Please make sure it's gotten around to after version 10.9.
JSWolf is offline   Reply With Quote
Reply

Tags
html2lrf, libprs500


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:14 AM.


MobileRead.com is a privately owned, operated and funded community.