![]() |
#436 |
Connoisseur
![]() 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> </p> <p> </p> <p> </p> <p>Title</p> <p>Author</p> <p> </p> <p> </p> <p> </p> <p> </p> <p>text (with blank lines)</p> </body> Giving something like this <top of page> Title Author Text |
![]() |
![]() |
![]() |
#437 |
Connoisseur
![]() 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? |
![]() |
![]() |
![]() |
#438 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#439 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
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.
|
![]() |
![]() |
![]() |
#440 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Which ToC will show up in the Sony ToC (aka the menu) and which will only show up in the book?
|
![]() |
![]() |
![]() |
#441 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
toc -> TOC main -> file
|
![]() |
![]() |
![]() |
#442 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#443 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#444 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#445 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#446 |
Time Vortex Manipulator
![]() 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) |
![]() |
![]() |
![]() |
#447 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Will be fixed in the next version.
|
![]() |
![]() |
![]() |
#448 |
Ugly alien
![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#449 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#450 |
Ugly alien
![]() ![]() ![]() Posts: 144
Karma: 225
Join Date: Sep 2007
Location: Québec, QC
Device: tricorder
|
|
![]() |
![]() |
![]() |
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 |