Given the name of the character (string), you can get the value of the character. Using Trey Jackson's solution:
(setq ASymbol 10) => 10 (intern "ASymbol") => 'ASymbol (eg the unevaluated symbol with name "ASymbol") (symbol-value (intern "ASymbol")) => 10
This is useful if you want to get character values ββfor which you only have names. For example, you read them from a string.
A few notes: intern
returns the value of the character with the given name. If a symbol with that name does not exist, it creates a symbol with that name. You can use intern-soft
to not enter a new character if the name with the specified name does not exist.
Pablo A Perez-Fernandez Jun 12 '17 at 14:48 2017-06-12 14:48
source share