Quote:
Originally Posted by embryo
Hmm... I can use the code to create another column that gets the values from my "word group" column, but what I wanted to do is to automatically add that value to the original Tags column, so I could add it inside the epub as metadata.
Maybe I didn't express it very well, or maybe you already answer me and I can't understand it because of my programming ignorance. Sorry about that.
|
I can't think of a way to update the tags column like that. But, you could update the tags in the book when sending the book to the device.
The following will return a list like you want.
Code:
program:
list_union(field('tags'), list_re(field('#words'), ',', '.*', ''), ',')
You use this with a plugboard for sending epubs to the device. Put the code into the "Source template" of the plugboard and select "tags" as the "Destination field". And save the plugboard.
When you send the book to the device, the tags in the metadata will be updated. You can also use this for save to disk.
I'm not sure if that is what you want. I'm also not sure if there is any real point doing it. The Kobo devices do not use the tags.