I'd like to create a shortcut to convert a selected symbol, say \[Delta]
, into its rough equivalent formal symbol (i.e., \[FormalCapitalDelta]
). That is, how does one create a shortcut to perform a front-end operation on a selected character?
This would only make sense for those single characters which have formal rough equivalents, so the shortcut should not do anything when multiple or a non-convertible single character is selected.
(comment: I'm finding formal symbols to be handy for function definitions where SetDelayed isn't a great idea (or turning an expression into a function Turning Expression into a Function: e.g., instead of
f[x_] := expensiveSymbolicFunction[x]
use
f[\[FormalX]_] = expensiveSymbolicFunction[\[FormalX]]
)
I find \[FormalCapitalDelta]
(esc-.CapitalDelta-esc) tedious to type.