View Single Post
Old 07-12-2012, 06:13 AM   #5
Rob557
Zealot
Rob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-books
 
Posts: 108
Karma: 810
Join Date: Jul 2012
Device: Kobo
syntax for using swap_around_comma(val) ?

Quote:
Originally Posted by chaley View Post
... I tried both a) and b) and they worked except for books that have multiple authors. ...
Hi chaley,
Thank you for confirming that you were able to get the template "swap_around_comma(val)" to work in the context of both approaches a) and b) as described above. (The issue with multiple authors can be resolved okay in different ways I guess.)

I was curious how you got swap_around_comma(val) to work, in terms of the specific use and syntax for each of the two approaches.

I had mentioned several examples for the syntax that I tried using but those did not seem to work.

The questions I was struggling with include:
i) does swap_around_comma(val) need to be enclosed in {};
ii) is "val" a general parameter to be replaced by something else;
iii) in bulk edit search and replace does it go in the "search for:" section;
iv) is the syntax different for the bulk edit approach compared to the template syntax when setting up a user-defined custom column with column type "Column build from other columns".
v) maybe seeing specific examples is the easiest way to see how it works?

I have been using Calibre for a relatively short period of time but it is really impressive open source software that particularly Kovid Goyal, and all of you, have helped to create.
Rob557 is offline   Reply With Quote