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-10-2007, 06:59 PM   #256
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
No, I don't believe there are any links that refer to the specific paragraphs. Just removing the <p> would be a perfectly reasonable compromise too
bkilian is offline   Reply With Quote
Old 07-10-2007, 07:17 PM   #257
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
OK added it to SVN.
kovidgoyal is online now   Reply With Quote
Advert
Old 07-12-2007, 09:04 PM   #258
jgs
Member
jgs is on a distinguished road
 
Posts: 21
Karma: 61
Join Date: Apr 2007
Location: Seattle, WA
Device: PRS-500
After a very positive experience with libprs500 and Kovid's patient support, I am seriously considering moving totally over to version .4 in lieu of Connect.

Questions:

1. Any guess when .4 will be available?
2. Will "Genre" be one of your metadata elements?

Great job

Jim
jgs is offline   Reply With Quote
Old 07-12-2007, 09:08 PM   #259
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
if you don't use Connect, you cannot purchase books at the Connect store. If that is not an issue, go for it. Of course, if you have multiple computers, you can install Libprs500 on one and Connect on the other as long as both computers run 32-bit Windows.
JSWolf is offline   Reply With Quote
Old 07-12-2007, 09:18 PM   #260
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
1 month < 0.4.0 < 3 months

You should use the Tags facility in libprs500 to specify genre metadata. The search bar searches over tags as well.
kovidgoyal is online now   Reply With Quote
Advert
Old 07-12-2007, 11:48 PM   #261
jgs
Member
jgs is on a distinguished road
 
Posts: 21
Karma: 61
Join Date: Apr 2007
Location: Seattle, WA
Device: PRS-500
I've got four systems going on five; thanks for the advice.

Jim
jgs is offline   Reply With Quote
Old 07-13-2007, 01:19 PM   #262
bnocturnal
Junior Member
bnocturnal began at the beginning.
 
bnocturnal's Avatar
 
Posts: 3
Karma: 10
Join Date: Jul 2007
Device: Sony PRS500
Question html code in block quotes

Hello,

First off, Thanks for the great program!

I seem to have run into a bug... not sure if it is by design, though..

I am converting an ebook (Thinking in Java, from http://mindvew.net), and have run into an issue with html blockquotes.

This book uses the block quotes for code samples, and while html2lrf does "block" the text, it doesn't seem to convert any of the html....

what should be this:

Code:
 monitor.expect(new String[] {
      "1: n1.i: 9, n2.i: 47",
      "2: n1.i: 47, n2.i: 47",
      "3: n1.i: 27, n2.i: 27"
    });
comes out like this:

Code:
    monitor.expect(<font color="#0000ff">new</font> String[] {
      <font color="#004488">"1: n1.i: 9, n2.i: 47"</font>,
      <font color="#004488">"2: n1.i: 47, n2.i: 47"</font>,
      <font color="#004488">"3: n1.i: 27, n2.i: 27"</font>
    });

I suppose i could come up with some regex to remove the "font" tags...

Dave
bnocturnal is offline   Reply With Quote
Old 07-13-2007, 02:22 PM   #263
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
Post a simple html file that reproduces the problem. Just copy paste one of the blockquote sections along with any css sections/files.
kovidgoyal is online now   Reply With Quote
Old 07-13-2007, 02:34 PM   #264
bnocturnal
Junior Member
bnocturnal began at the beginning.
 
bnocturnal's Avatar
 
Posts: 3
Karma: 10
Join Date: Jul 2007
Device: Sony PRS500
Quote:
Originally Posted by kovidgoyal View Post
Post a simple html file that reproduces the problem. Just copy paste one of the blockquote sections along with any css sections/files.

Here you go...

I included a section with several blockquotes, and the css, and the .lrf output.

Thanks,

Dave
Attached Files
File Type: zip example.zip (13.1 KB, 315 views)
bnocturnal is offline   Reply With Quote
Old 07-13-2007, 03:11 PM   #265
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
Hmm see what you mean...two line fix will be in next release.
kovidgoyal is online now   Reply With Quote
Old 07-13-2007, 03:57 PM   #266
bnocturnal
Junior Member
bnocturnal began at the beginning.
 
bnocturnal's Avatar
 
Posts: 3
Karma: 10
Join Date: Jul 2007
Device: Sony PRS500
Quote:
Originally Posted by kovidgoyal View Post
Hmm see what you mean...two line fix will be in next release.

Great! Thanks!

Dave
bnocturnal is offline   Reply With Quote
Old 07-14-2007, 03:14 PM   #267
yonkz
Junior Member
yonkz began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500
Using --chapter-regex

Hi,
I'm using the command line version of html2lrf, and I'm trying to use the --chapter-regex to build the toc, but it doesn't behave as I expect it to.

Other than that I'm loving what I've seen so far.

Perhaps I am doing something wrong.

Here is the command I am using:
C:\html2lrf>html2lrf -a "Author" -t "Title" --chapter-regex="<I>(Chapter [1-9]+[,].*)</I>" --font-delta=-2 "c:\ebooks\MyBook.htm"

The regex I'm using here works in other situations, but I'm not familiar with the implementation here, so perhaps the syntax should be different.

The Chapter headings in the html doc look like this:
<I>Chapter 1, Title of Chapter 1</I>


Any help would be appreciated.
yonkz is offline   Reply With Quote
Old 07-14-2007, 03:47 PM   #268
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.72:
1) Support for nested lists
2) Bug fixes
kovidgoyal is online now   Reply With Quote
Old 07-14-2007, 03:48 PM   #269
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
You shouldn't have the <I> tags in the regex, it matches on the contents of the tag. Infact the default regex should work for you.
kovidgoyal is online now   Reply With Quote
Old 07-14-2007, 04:11 PM   #270
yonkz
Junior Member
yonkz began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500
Problem solved

Wow, fast response - kovidgoyal!

OK, I reread the quick little blurb about the chapter regex from the help, and came to a realization of what the problem was.

The chapter regex only looks for matches inside a <H1> or other H tag, so since these were not inside H tags, they weren't found.

What I had to do was use another program (just whipped up a quick c# app) to wrap the matches in H1 tags, and save a copy of the file with the new tags, than re-ran the cmd line utility, and all was well.



Do you think it would be possible to optionally remove the requirement for the chapter regex match to look for the H tags, and just use the supplied regular expression to find the chapter headings?

Thanks
yonkz 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 03:50 AM.


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