View Single Post
Old 10-29-2018, 05:39 PM   #5
Latios
Member
Latios began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2018
Device: Kindle 4
I just found out something that does not make sense :S

About when calibre changes ".." for "_".

In the calibre library I have this ebook with this metadata:
Author: Jens R. Hope
Year: 2000

Title: Water.
(please, pay special attention that the title ends up with a dot ".")

Then I apply this code:
Code:
{author_sort}. {title}{:'format_date (raw_field ('pubdate'),'yyyy')'|. |}
And I get this name:
Hope, Jens R_ Water.. 2000

As before, with {author_sort}, calibre transforms ".." into "_".
BUT, AND HERE IT COMES THE CONTROVERSY: after {title}, calibre leaves ".." untouched.

So it looks that IT IS possible for calibre to filename something with ".." in it.

However, I've been playing with the code using many variations with for example "|. |" .. and I can't find a way to get this:
Hope, Jens R.. Water.. 2000

How can I make calibre to leave untouched ".." also after {author_sort}??
Latios is offline   Reply With Quote