Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-15-2007, 07:38 PM   #436
angelyne
Connoisseur
angelyne is on a distinguished road
 
Posts: 57
Karma: 50
Join Date: Jun 2007
Device: Sony Reader PRS-500
I did a few test and and got mixed results. However, the reason I wasn't achieving the result I wanted is that
blank spaces will be ignored before the text but will be used after the txt start. Here is the code

<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Title</p>
<p>Author</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>text (with blank lines)</p>
</body>

Giving something like this
<top of page>
Title
Author



Text
angelyne is offline   Reply With Quote
Old 09-15-2007, 07:46 PM   #437
angelyne
Connoisseur
angelyne is on a distinguished road
 
Posts: 57
Karma: 50
Join Date: Jun 2007
Device: Sony Reader PRS-500
Here is another question. I noticed that in a book I bought from Sony Connect : (Anansi Boys), the table of content (in the table of contents section) displays 4 items. Copyright, TOC, About, Begin.

However the TOC that is part of the text itself (which are simply html links) is quite elaborate, with individual chapters listed.

I find that I like this.

Is there a way we can code HTML so that we can pick and choose which elements html2lrf will include in the Table of Contents section of the book?
angelyne is offline   Reply With Quote
Old 09-16-2007, 08:03 PM   #438
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,760
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 angelyne View Post
Here is another question. I noticed that in a book I bought from Sony Connect : (Anansi Boys), the table of content (in the table of contents section) displays 4 items. Copyright, TOC, About, Begin.

However the TOC that is part of the text itself (which are simply html links) is quite elaborate, with individual chapters listed.

I find that I like this.

Is there a way we can code HTML so that we can pick and choose which elements html2lrf will include in the Table of Contents section of the book?
I know you can do it in Book Designer. But I've never seen or read about a way to do this with html2lrf
JSWolf is offline   Reply With Quote
Old 09-16-2007, 08:10 PM   #439
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
I know you can do it in Book Designer. But I've never seen or read about a way to do this with html2lrf
Split the HTML file into a toc file and a main file. ut the links you want to go into the TOC in the toc file and the rest in the main file. Run html2lrf on the toc file.
kovidgoyal is offline   Reply With Quote
Old 09-16-2007, 08:15 PM   #440
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,760
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
Split the HTML file into a toc file and a main file. ut the links you want to go into the TOC in the toc file and the rest in the main file. Run html2lrf on the toc file.
Which ToC will show up in the Sony ToC (aka the menu) and which will only show up in the book?
JSWolf is offline   Reply With Quote
Old 09-16-2007, 08:19 PM   #441
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
toc -> TOC main -> file
kovidgoyal is offline   Reply With Quote
Old 09-17-2007, 11:26 AM   #442
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 angelyne View Post
I did a few test and and got mixed results. However, the reason I wasn't achieving the result I wanted is that
blank spaces will be ignored before the text but will be used after the txt start. Here is the code

<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Title</p>
<p>Author</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>text (with blank lines)</p>
</body>

Giving something like this
<top of page>
Title
Author



Text
This will be fixed sometime after 0.4.0.
kovidgoyal is offline   Reply With Quote
Old 09-19-2007, 04:08 PM   #443
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
So I just got a piece of software called Solid Converter PDF (sorry it's a windows product, and it's proprietary). However, it's PDF to MS Word conversion is simply amazon. It brings over everything (and I mean everything). The only problem that I've seen, or the only thing that isn't exact is that the bullets used are squares in the PDF and dashes in the word doc. (That's good enough).

This means that it is possible to do a PDF to HTML that is solid, keeps all the formatting, and then can be formatted down to LRF to look "just like" the original.
silkcom is offline   Reply With Quote
Old 09-19-2007, 04:18 PM   #444
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
Is the word doc reflowable? export it to html and see what happens when you resize the window it is viewed in.
kovidgoyal is offline   Reply With Quote
Old 09-19-2007, 04:39 PM   #445
silkcom
Member
silkcom began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2007
Device: PRS-500
I can highlight text and all that. I converted it to RTF, asside from loosing some text background colors (which a somewhat important but I can live without them), the conversion was definately amazing, and totally readable.

Doc's html converter isn't the best, it lost a bunch of the formatting, but the doc to rtf worked great.
silkcom is offline   Reply With Quote
Old 09-23-2007, 11:59 AM   #446
Fallen angel
Time Vortex Manipulator
Fallen angel began at the beginning.
 
Fallen angel's Avatar
 
Posts: 30
Karma: 10
Join Date: Aug 2007
Location: Greece
Device: Sony Reader
I'm not sure if this is the right place to say that, but I cannot have the libprs500 to work. I'm having an error message. That's what is written in the log file: Traceback (most recent call last):
File "main.py", line 696, in <module>
File "main.py", line 688, in main
File "main.py", line 132, in __init__
File "libprs500\gui2\library.pyo", line 367, in set_database
File "libprs500\gui2\library.pyo", line 102, in set_database
UnicodeEncodeError: 'ascii' codec can't encode characters in position 26-32: ordinal not in range(128)
Fallen angel is offline   Reply With Quote
Old 09-23-2007, 12:21 PM   #447
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
Will be fixed in the next version.
kovidgoyal is offline   Reply With Quote
Old 09-24-2007, 09:21 AM   #448
balok
Ugly alien
balok doesn't litterbalok doesn't litterbalok doesn't litter
 
balok's Avatar
 
Posts: 144
Karma: 225
Join Date: Sep 2007
Location: Québec, QC
Device: tricorder
bottom margin

Hi kovidgoyal,

Even with --bottom-margin=0 (which is the default, incidentally), there still seems to be quite a gap at the bottom, which doesn't happen for left/top/right. Is this normal, or am I missing something?

Btw, thanks for this great program.
balok is offline   Reply With Quote
Old 09-24-2007, 10:44 AM   #449
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 a safety feature to catch any "overflow" from formatting errors.
kovidgoyal is offline   Reply With Quote
Old 09-24-2007, 11:31 AM   #450
balok
Ugly alien
balok doesn't litterbalok doesn't litterbalok doesn't litter
 
balok's Avatar
 
Posts: 144
Karma: 225
Join Date: Sep 2007
Location: Québec, QC
Device: tricorder
Quote:
Originally Posted by kovidgoyal View Post
That's a safety feature to catch any "overflow" from formatting errors.
Is there a way to turn off this feature?
balok 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 02:50 PM.


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