Hi,
create a custom alias like this: alias weirdtext return $replace($$1,b,ß,e,Ê,....)
Then you can transform any text by using the alias. For example:: //echo -a $weirdtext(this is text that will be converted)
You can then use this in an ON INPUT event like:
on *:INPUT:#:{
if /* iswm $$1 || $ctrlenter || $inpaste { return }
say $weirdtext($1-)
haltdef
}
Btw you could make a switch to enable/disable the weirdtext alias, and then incorporate this into the script.
E.g.: if %weirdtext == on { haltdef | say $weirdtext($1-) }
You get the picture.
Greets