[Cuis-dev] Updated unicode input

Luciano Notarfrancesco luchiano at gmail.com
Thu Dec 1 05:40:08 PST 2022


BTW, it seems the syntax highlighter doesn’t recognize superscripts and
subscripts as valid characters for identifiers (for example when using x₀
as a variable name)

On Thu, 1 Dec 2022 at 20:24 Luciano Notarfrancesco <luchiano at gmail.com>
wrote:

> Here's an improvement of the commands to input untypeable characters.
>
> I simplified the method in SmalltalkEditor>>normalCharacter: and changed
> the table of named characters in UnicodeCodePoint class from an array to a
> dictionary. I added some missing characters, including subscripts and
> superscripts for digits (for example type \^2 or \_2 followed by space or
> any non-letter).
>
> The list of commands is not complete yet, but it's easy to add more. I'm
> trying to use the same names that are used in LaTeX. Leandro Caniglia is
> doing the same in Bee Smalltalk and we plan to unify the list of commands
> soon. Updating the list of commands only requires changing the method
> UnicodeCodePoint>>initializeNamedCharactersMap.
>
> It would be nice to support diacritical marks too, but I didn't implement
> it yet because it's a bit more complicated and requires dealing with
> normalization.
>
> The methods for #arrowUp, #arrowDown, #arrowLeft and #arrowRight in
> Character and UnicodeCodePoint seem unnecessary. I didn't remove them just
> in case someone is using them, but probably we should remove them.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20221201/19a32b66/attachment.htm>


More information about the Cuis-dev mailing list