View Single Post
Old 05-19-2016, 10:19 AM   #6
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,421
Karma: 85400180
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 stumped View Post
the template I shamelessly copied from that article puts in the series numbers as #01, #02... can I lose the # and leading zeros easily and still have it work for anything that goes up to 11 , or does removing the leading zero break the kindle's sort order, for an 11 book series
I don't fully understand the syntax below, & how that # gets to be at the front of the 2 digit number.

I did send a stand-alone non-series book as a test and that's fine, for that I see title and author only which is how I want it.
{series}{series_index:0>2s| #| – }{title}
See http://manual.calibre-ebook.com/template_lang.html for the documentation on writing templates... but the tl;dr is that the | #| will prefix the series_index with a "#" and the :0>2s| will pad the number itself with zeros -- something which is required for proper sort ordering.

The article actually shows three variations on the template, the third one will use "[01]: instead of "#01" which I personally think is nicer. )

Code:
{series}{series_index:0>2s| [|] }{title}
i guess that to do this outside of calibre e.g. via the send-to-kindle email the book as a document option, I do have to edit the book title before emailing it . I doubt I will ever need to do that though.[/QUOTE]

Plugboards will specify which formats and devices they work for if you use "any device" then it will include the send-to-email "device" as a destination target, which means the plugboard will automatically apply there as well.
Assuming you use calibre's send-to-email feature instead of Amazon's send-to-Kindle desktop app.
eschwartz is offline   Reply With Quote