![]() |
#706 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jul 2006
|
I tried that "save to rtf and then convert to lrf" option. I got a better result. Something like:
Chapter 1]23 LINK Chapter 2]76 LINK etc. Chapter name, page number, the word "LINK". It was ugly, but at least I got the information I needed: the chapter name. It is nevertheless not very useful for me, as I loose pictures with this option. The problem is that my original file is a Word document. I could try a copy-paste of just text and format to an Openoffice Write empty document and then create the TOC there, make the html and see what happens when converting to lrf. I have an Office 2003 at work (that's where I am now), and there's no "export to" or "save as" clean html option. There's a "save to filtered html" though. I'll give both Openoffice and "save to filtered html" a try when I get back home, on the original file. I'll let you know what I get. Last edited by marwick; 06-09-2008 at 04:35 AM. |
![]() |
![]() |
![]() |
#707 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yeah filtered html is what I meant.
|
![]() |
![]() |
Advert | |
|
![]() |
#708 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jul 2006
|
And filtered html is the solution
![]() Perfect. I didn't even try the Openofice option. Thanks for the clue kovidgoyal. And thanks again for our awesome creation. |
![]() |
![]() |
![]() |
#709 |
Member
![]() ![]() Posts: 10
Karma: 172
Join Date: Apr 2008
Device: PRS-505!
|
Is it possible to index pages through a depth-first following of the links? I have an html tree that has an index page that links to a larger index page and every link on that page is a small index page for a section. Now the order of the pages is First Index->Large Index->All the Small Indexes->Content, whereas it would be better to have First Index->Large Index->Small Index 1->Content 1->Small Index 2->Content 2 etc.
|
![]() |
![]() |
![]() |
#710 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can force a particular page order by creating a OPF file with a <spine> element and using the --use-spine option
|
![]() |
![]() |
Advert | |
|
![]() |
#711 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1523
Join Date: Jul 2007
Location: Houston,TX
Device: PRS-T1
|
Kovid, do you know if html2lrf can accept an output file path containing UTF-8 characters? The unicode characters in the created filename seem to be corrupted (or perhaps UTF-8 treated as ANSI). The unicode characters in the title are embedded as meta-data correctly.
This is for 0.4.72 under Windows XP. Linux appears to work correctly, but I'll check for sure when I get home tonight. thanks |
![]() |
![]() |
![]() |
#712 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Unfortunately, there's no simple answer to this. The problem is that html2lrf has to guess what encoding commandline arguments are passed to it in. The encoding it uses depends on a lot of factors, including the OS its localization, the file systems preferred encoding, blah blah. The safest thig to do is to write your metadata into a nice UTF-8 encoded OPF file in the same directory as the html file. html2lrf will then pick up the metadata from there.
|
![]() |
![]() |
![]() |
#713 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1523
Join Date: Jul 2007
Location: Houston,TX
Device: PRS-T1
|
The meta-data seems to be picked up correctly, it's the output file specified with -o that appears to be incorrect. Although I may add the OPF method later for the meta-data just to be on the safe side.
Thanks. |
![]() |
![]() |
![]() |
#714 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I have made some changes in trunk to how the decoding of paths on the command line is done. Try the next release and see or run it from trunk.
|
![]() |
![]() |
![]() |
#715 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1523
Join Date: Jul 2007
Location: Houston,TX
Device: PRS-T1
|
Cool, will do.
|
![]() |
![]() |
![]() |
#716 |
Member
![]() Posts: 16
Karma: 10
Join Date: Sep 2007
Location: England
Device: Sony PRS 500 & 505
|
transfer of pictures
Hi - I'm having a go at converting HTML Gutenberg titles to lrf for the Sony Reader using Bookdesigner. Unfortunately any illustrations are failing to transfer - I get blank boxes showing where the illustration should be. I did find a reference to this problem, but my limited knowledge meant that I couldn't decipher the solution!
![]() |
![]() |
![]() |
![]() |
#717 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
![]() |
![]() |
![]() |
#718 | |
Member
![]() Posts: 16
Karma: 10
Join Date: Sep 2007
Location: England
Device: Sony PRS 500 & 505
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#719 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Quote:
(For now, I am putting my metadata inside HTML files, but since HTML2LRF does not and will not support that, I would have to write an application which would read them from the HTML and then construct a command line for HTML2LRF. I might do that anyway, because it would allow a lot tidier directory structure. E.g.: Code:
<meta name="lrf:author" content="John Smith"> <meta name="lrf:author-sort" content="SMITH JOHN"> ... <meta name="lrf:force-page-break-before-tag" content="h[123]"> |
|
![]() |
![]() |
![]() |
#720 | |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
|
|
![]() |
![]() |
![]() |
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 |