View Single Post
Old 09-02-2020, 04:26 PM   #1
beber75
Member
beber75 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2020
Device: boox
Calibre Template editor syntax help

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
beber75 is offline   Reply With Quote