global-functions: $SymbolByUnicodeName: name the parameter

This commit is contained in:
Christian Hesse 2024-01-20 00:09:54 +01:00
parent 21cf6d49bb
commit 86a0700efd

View file

@ -1293,6 +1293,8 @@
# return UTF-8 symbol for unicode name
:set SymbolByUnicodeName do={
:local Name [ :tostr $1 ];
:local Symbols {
"abacus"="\F0\9F\A7\AE";
"alarm-clock"="\E2\8F\B0";
@ -1326,7 +1328,7 @@
"white-heavy-check-mark"="\E2\9C\85"
}
:return (($Symbols->$1) . "\EF\B8\8F");
:return (($Symbols->$Name) . "\EF\B8\8F");
}
# return symbol for notification