Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-17-2012, 08:43 PM   #1
Dyspeptica
Member
Dyspeptica began at the beginning.
 
Posts: 20
Karma: 10
Join Date: May 2012
Device: iPad
Multiple line title with ebook-convert

I'm trying to convert a number of html files to ebub with ebook-convert. I can insert a title (which shows up on the cover) but the title is actually three parts and really should be on three separate lines....rank, name and serial number so to speak.

I am passing the title to ebook-convert with --title "${title}". So, does anyone know how I can either insert a newline which ebook-convert will honor OR, does anyone know how I can pass three separate items to ebook-convert.

Before anyone jumps in, yes, I can insert custom text into the generate-cover plugin, but that is fixed text intended to be used on every file/book. I need to insert unique text into each file and do so programmatically. There is, I understand, a "template language" but I can't find a reference which alludes to want I need to do.
Dyspeptica is offline   Reply With Quote
Old 08-18-2012, 12:21 AM   #2
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: 24,819
Karma: 4369673
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no way to use newlines in the title when generating covers. I suggest youuse some image manipulation software to create the cover (imagemagick is great for doing this programmatically) and then pass the generated cover to ebook-convert.
kovidgoyal is online now   Reply With Quote
Old 08-18-2012, 12:55 AM   #3
Dyspeptica
Member
Dyspeptica began at the beginning.
 
Posts: 20
Karma: 10
Join Date: May 2012
Device: iPad
Thanks! Kiwi dude thought that there might be some way to do it with the template language, since custom text is available inside his generate-cover plugin (which also can work as a precursor wrapper to ebook-convert) but he was unsure of how that would work. But the trick is to insert what I want into the stream, since the generate-cover plugin willactually handle what I want, but I don't want to do it through the gui. Any thoughts, or is it a case of 'Damn I hate it when that happens!
Dyspeptica is offline   Reply With Quote
Old 08-20-2012, 09:24 PM   #4
Dyspeptica
Member
Dyspeptica began at the beginning.
 
Posts: 20
Karma: 10
Join Date: May 2012
Device: iPad
Multi-Line Title

Revisiting this issue. The generate-cover plugin allows custom text with separate lines.
How is that done internally? Is there no way that the (internal) variables cannot be seen/exposed for external poking?
Dyspeptica is offline   Reply With Quote
Reply

Tags
ebook-convert, insert, title

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Cover for Command Line ebook-convert bcolflesh Calibre 9 02-21-2013 11:02 AM
How to only get command line tool ebook-convert installed. okidogi Calibre 4 06-23-2011 10:59 AM
ebook-convert: change settings from command line miwie Calibre 1 11-30-2010 02:05 PM
Command Line problems: ebook-convert, ebook-meta with tags: --series, --series-index omnivorous Calibre 4 11-07-2010 02:42 PM
Command Line Options for ebook-convert godel10 Calibre 14 08-08-2009 08:28 AM


All times are GMT -4. The time now is 12:40 AM.


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