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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-30-2014, 09:47 AM   #1
Vortex
Groupie
Vortex began at the beginning.
 
Vortex's Avatar
 
Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
Help with a 'Saving Books to Disk' Template

I'm need help with a 'Saving Books to Disk' Template, that will output:

Author Name - Book Title.ext (For books with no series name)
Author Name - Series - Book Title.ext (For books with no series index)
Author Name - Series 01 - Book Title.ext

Thanks.
Vortex is offline   Reply With Quote
Old 11-30-2014, 10:59 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Code:
{authors} - {series}{series_index:0>2s:| | - }{title}

Last edited by eschwartz; 11-30-2014 at 11:02 AM.
eschwartz is offline   Reply With Quote
Advert
Old 11-30-2014, 11:33 AM   #3
Vortex
Groupie
Vortex began at the beginning.
 
Vortex's Avatar
 
Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
I tried that before, I get this error message:

Vortex is offline   Reply With Quote
Old 11-30-2014, 01:06 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,703
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The template should be
Code:
{authors} - {series}{series_index:0>2s| | - }{title}
The colon after the 2s shouldn't be there.

@eschwartz: this is the same mistake that I made and you caught back when we were discussing a BNF grammar for the template language.
chaley is offline   Reply With Quote
Old 11-30-2014, 01:44 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by chaley View Post
The template should be
Code:
{authors} - {series}{series_index:0>2s| | - }{title}
The colon after the 2s shouldn't be there.

@eschwartz: this is the same mistake that I made and you caught back when we were discussing a BNF grammar for the template language.


I prefer program mode -- it is simpler and easier to remember. But I recognized the issue as soon as I saw Vortex's post, which is after you answered.

I would catch that if I hadn't been typing into my Kindle Touch browser.
Usually I field test the template, but in the absense of calibre cross-compiled for the e-ink Kindle...
eschwartz is offline   Reply With Quote
Advert
Old 12-04-2014, 09:18 AM   #6
Vortex
Groupie
Vortex began at the beginning.
 
Vortex's Avatar
 
Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
Thanks, that did the trick guys
Vortex is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving books to disk using {author_sort} DragonflyKing Library Management 5 09-26-2012 05:08 AM
Syntax for Saving Books to Disk Sea Dubya Calibre 2 04-05-2012 03:15 AM
Saving to Disk Template hurricane51 Conversion 2 07-07-2011 01:22 AM
Using Genre to sort books when saving to device or disk jjchico Calibre 2 07-07-2010 12:27 PM


All times are GMT -4. The time now is 05:17 AM.


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