View Single Post
Old 11-19-2025, 03:32 PM   #2
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 310
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
I asked my initial question because I assumed that there would be a relevant verb in the drop-down list of verbs in the Tag Mapper (Remove, Replace, Keep, etc.) that could do what I wanted. But I have figured out how to do what I want in the absence of such a verb!

I noticed that:

Quote:
The rules will be processed in order […] until either a "remove" or "keep" rule matches.
So I did some testing, and the below seems to work. Given some tag “extra” which I want to add when another tag “trigger” is present:

1. Replace the tag, if it is one of: trigger with the tag: trigger & extra

2. Split the tag, if it is one of: trigger & extra on the character: &

Now the trigger and extra tags will continue to be processed by any subsequent rules. Or if you wish, you can add Keep rules for either or both of them at this point, to prevent further processing of these tags.

Thank you for reading – hope this helps somebody!
isarl is offline   Reply With Quote