View Single Post
Old 06-21-2026, 12:12 PM   #50
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 731
Karma: 786092
Join Date: Dec 2017
Device: Kobo
You can do such complex operation by adding a Search/Replace operation that use Template.
The calibre template language is a calibre-specific language used throughout calibre for tasks such as specifying file paths, formatting values, and computing the value of columns. The template language is very powerfull and I recomand you to take a look on the Calibre manual to better understand and use it.

So in your case:
  1. After add a new operation, select the source field {template} and select the output field of your choice. Note that output field will be completly replaced by the value generated by the template.
  2. Fill the row "Template" with the following:
    Code:
    {tags:re(/,\,)}, {tags}
    or
    Code:
    program: re($tags, '/', ',') & ', ' & $tags
You can open a more complete template editor by clicking on the icon button.
un_pogaz is offline   Reply With Quote