Thank you @TW_Tones and @tw-FRed for your nudging me away from using macros as a first approach. I understand from what you have written that it is for the best, and follows the TiddlyWiki philosophy.
Here is my attempt at just describing my problem and desired outcome:
This was all started with a frustration that there wasn’t already a built-in feature in the search operator.
I wish there were an accentinsensitive flag. Or I wish that, by default, searches were not sensitive to accent/diacritics.
In most blingual dictionary software, when you look up a word and are not sure of the accents in the spelling, or are too lazy to type them, it doesn’t matter. Typing “ele” into the input field will match both “element” and “élément”
My wikis are multilingual and I want to, for example, do a search such as [search:notefield:accentinsensitive[element]] and it would match tiddlers that contain any of these spellings in the notefield: element, Element,élement,Élement ,élément, Élément (the middle two are actually incorrect French spellings)
Currently, when using the search operator, “ele” will only match the first two, and “élé” will only match the last two.
My solution is that any time a notefield is created or updated in a tiddler, another unaccentednotefield is created (now with a javascript macro, but in my previous solution with transcluded filter operations) and when I search the wiki, I have things set up to search both of these fields when looking for a word [search:notefield,unaccentednotefield:[element]]
But maybe there is a simpler, built-in way of doing “accent-insensitive” searches of fields, without having to pre-generate “unaccented” duplicates of these fields, and include them in the search operation? If so, I am all ears!