Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2008, 03:50 AM   #706
marwick
Junior Member
marwick began at the beginning.
 
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.
marwick is offline   Reply With Quote
Old 06-09-2008, 04:10 AM   #707
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah filtered html is what I meant.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-09-2008, 05:44 PM   #708
marwick
Junior Member
marwick began at the beginning.
 
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.
marwick is offline   Reply With Quote
Old 06-10-2008, 03:50 AM   #709
Undue Process !
Member
Undue Process ! doesn't litterUndue Process ! doesn't litter
 
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.
Undue Process ! is offline   Reply With Quote
Old 06-10-2008, 04:09 AM   #710
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,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
kovidgoyal is online now   Reply With Quote
Advert
Old 06-20-2008, 04:29 PM   #711
beowulf573
Addict
beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.
 
beowulf573's Avatar
 
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
beowulf573 is offline   Reply With Quote
Old 06-20-2008, 04:35 PM   #712
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,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.
kovidgoyal is online now   Reply With Quote
Old 06-20-2008, 04:48 PM   #713
beowulf573
Addict
beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.
 
beowulf573's Avatar
 
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.
beowulf573 is offline   Reply With Quote
Old 06-20-2008, 05:10 PM   #714
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,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.
kovidgoyal is online now   Reply With Quote
Old 06-20-2008, 05:17 PM   #715
beowulf573
Addict
beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.
 
beowulf573's Avatar
 
Posts: 208
Karma: 1523
Join Date: Jul 2007
Location: Houston,TX
Device: PRS-T1
Cool, will do.
beowulf573 is offline   Reply With Quote
Old 06-23-2008, 01:34 PM   #716
Lloyd Harris
Member
Lloyd Harris began at the beginning.
 
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!

Lloyd Harris is offline   Reply With Quote
Old 06-23-2008, 02:49 PM   #717
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by Lloyd Harris View Post
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!

Put the HTML file and the images into a ZIP file and see if that helps. (Doh... calibre does this, not sure for Bookdesigner.)

BOb
pilotbob is offline   Reply With Quote
Old 06-25-2008, 06:01 AM   #718
Lloyd Harris
Member
Lloyd Harris began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Sep 2007
Location: England
Device: Sony PRS 500 & 505
Quote:
Originally Posted by pilotbob View Post
Put the HTML file and the images into a ZIP file and see if that helps. (Doh... calibre does this, not sure for Bookdesigner.)

BOb
Thanks pilotbob - It worked a treat. How simple! I don't know why anyone would open the other HTML file in Gutenberg if they were converting to lrf.
Lloyd Harris is offline   Reply With Quote
Old 08-15-2008, 07:26 AM   #719
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Quote:
Originally Posted by kovidgoyal View Post
html2lrf will also read metadata from opf files that are in the same directory as the file you are trying to convert
Anyone, could you please post a sample OPF file? Just so that I can see how it looks like and be able to create my own :-)

(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]">
I would much prefer to have this directly in HTML2LRF, but it should be easy enough to write my own application for that)
pepak is offline   Reply With Quote
Old 08-15-2008, 09:06 AM   #720
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by pepak View Post
Anyone, could you please post a sample OPF file? Just so that I can see how it looks like and be able to create my own :-)
The OPF spec itself includes a fair number of examples.
llasram 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 05:53 AM.


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