View Single Post
Old 11-19-2021, 12:18 PM   #1
jvorzimmer
Guru
jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.jvorzimmer can program the VCR without an owner's manual.
 
jvorzimmer's Avatar
 
Posts: 54
Karma: 186734
Join Date: Jun 2013
Device: Samsung Galaxy Tab A9+
Template Language Question

I have a quick question for the forum about calibre template language.

When saving my epubs to disk to match Calibre Companion's template I have:
{authors:sublist(0,1,&)}/{title:re([—®™],_)} - {authors:re(\.\,,)}

But I noticed that if an author's name ends in a period e.g., "Jr." CC ignores the period, not even replacing with an underscore, in creating a subdirectory based on the author's name.

My question is how can I use both a sublist and re when creating my subdirectory in the above template?

Thanks in advance for your expertise.
jvorzimmer is offline   Reply With Quote