[Cuis-dev] Updated unicode input

Juan Vuletich juan at cuis.st
Thu Dec 1 10:14:22 PST 2022


Hi Luciano,

On 12/1/2022 10:24 AM, Luciano Notarfrancesco via Cuis-dev 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).

Very nice. Thanks! Now at GitHub.

> 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.

Dealing with normalization is desirable, but not absolutely required 
IMO. Just tried adding
, {
         {#hat. `UnicodeCodePoint codePoint: 16r0302`}
     }

to your array, and typing `a\hat ` works as expected.

> 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.
>

Yes. We can remove them. Same with #euro.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list