Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50107

Calibre Template editor syntax help

$
0
0
Hi,

I've received my ebook reader recently and I'm quite happy with it.

When I synchronize my eboks with my device, they are all saved inside the same folder. After digging a little bit with the software, I figured that I should play with :

Device / Configure this device option and play with the template editor

I like the following syntax:

{author_sort[0]}/{author_sort}/{title}

for single books

When it concern book series, I prefer this one:

{|| __Series__}/{series}/{series_index:0>2s|| - }{title|| - }{author_sort}

Switching the rule manually is a pain and I pretty sure there is a better way to do it.

I'm wondering if it's possible to have something like that (I don’t know how to translate it to the template editor):

if {series} is empty then use "{author_sort[0]}/{author_sort}/{title}" else use "{|| __Series__}/{series}/{series_index:0>2s|| - }{title|| - }{author_sort}"

Thanks in advance to those who are better skilled than me on this part.

PS: sorry for my English, I'm French.

Regards

Viewing all articles
Browse latest Browse all 50107

Latest Images

Trending Articles



Latest Images