View Single Post
Old 11-04-2019, 10:21 AM   #5
Horus68
Zealot
Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.
 
Horus68's Avatar
 
Posts: 143
Karma: 76596
Join Date: Feb 2015
Location: Portugal
Device: Kobo Aura HD
Using an working example, not able to get all that you want but this the best I can do:

Title: The Working Title: in Progress
Authors: John Doe Livingstone & Jane Doe Bernadette
Series: My series title with several words
Series Number: 1.00
Date: 2019


Using the tweek:
Code:
author_sort_copy_method = u'invert'
save_template_title_series_sorting = u'strictly_alphabetic'
Save to disk template
Code:
{author_sort:'list_re_group($, ' & ', '.', '(.*?)(,|$)(.*)', '[[$:uppercase()]]')'}{pubdate:| (|)} {series:.20s| |}{series_index:0>2s| [|]} {title:.70:re(:,--)||}
Outputs:
LIVINGSTONE, John Doe & BERNADETTE, Jane Doe (2019) My series title with [01] The Working Title-- in Progress.epub

Notes:
using: author_sort:.20 in the file name as in
Code:
{author_sort:.20:'list_re_group($, ' & ', '.', '(.*?)(,|$)(.*)', '[[$:uppercase()]]')'}{pubdate:| (|)} {series:.20s| |}{series_index:0>2s| [|]} {title:.70:re(:,--)||}
to limit max length being 20 left characters applies to the complete output value (all authors listed) so the second author will be cut off most of the times. Maybe you should left .20 out

Last edited by Horus68; 11-04-2019 at 11:45 AM.
Horus68 is offline   Reply With Quote