<div><p class="p1" style="margin:0px;font-stretch:normal;font-size:18.2px;line-height:normal;color:rgb(0,0,0)" dir="auto"><span class="s1" style="font-family:UICTFontTextStyleBody;font-size:18.24px">Yes, I was planning to add commands like the \hat your tried. The problem I see is if some user uses a different input method, for example a keyboard configured in international English. In that case, Cuis with a\hat would generate two code points, while entering â with ctrl+shift+^ followed by a would generate a single code point (I guess). If we use ambiguous unicode like this for selectors sooner or later some user will encounter a MNU. One way to get rid of ambiguity is to make sure a\hat generates normalized unicode, but perhaps a better and more general solution is to make sure that symbols are normalized.</span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:18.2px;line-height:normal;min-height:23.6px;color:rgb(0,0,0)"><span class="s1" style="font-family:UICTFontTextStyleBody;font-size:18.24px"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:18.2px;line-height:normal;color:rgb(0,0,0)"><span class="s1" style="font-family:UICTFontTextStyleBody;font-size:18.24px">Also I noticed some of the diacritical marks are rendered slightly misaligned, a bit too much to the right in some cases (depending on the modified character). For example x followed with u+0307 should show a dot on the top of x, aligned horizontally with the center of x, but it shows it a bit to the right.</span></p></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Dec 2022 at 01:14 Juan Vuletich <<a href="mailto:juan@cuis.st">juan@cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi Luciano,<br>
<br>
On 12/1/2022 10:24 AM, Luciano Notarfrancesco via Cuis-dev wrote:<br>
> Here's an improvement of the commands to input untypeable characters.<br>
><br>
> I simplified the method in SmalltalkEditor>>normalCharacter: and <br>
> changed the table of named characters in UnicodeCodePoint class from <br>
> an array to a dictionary. I added some missing characters, including <br>
> subscripts and superscripts for digits (for example type \^2 or \_2 <br>
> followed by space or any non-letter).<br>
<br>
Very nice. Thanks! Now at GitHub.<br>
<br>
> The list of commands is not complete yet, but it's easy to add more. <br>
> I'm trying to use the same names that are used in LaTeX. Leandro <br>
> Caniglia is doing the same in Bee Smalltalk and we plan to unify the <br>
> list of commands soon. Updating the list of commands only <br>
> requires changing the method <br>
> UnicodeCodePoint>>initializeNamedCharactersMap.<br>
><br>
> It would be nice to support diacritical marks too, but I didn't <br>
> implement it yet because it's a bit more complicated and requires <br>
> dealing with normalization.<br>
<br>
Dealing with normalization is desirable, but not absolutely required <br>
IMO. Just tried adding<br>
, {<br>
{#hat. `UnicodeCodePoint codePoint: 16r0302`}<br>
}<br>
<br>
to your array, and typing `a\hat ` works as expected.<br>
<br>
> The methods for #arrowUp, #arrowDown, #arrowLeft and #arrowRight in <br>
> Character and UnicodeCodePoint seem unnecessary. I didn't remove them <br>
> just in case someone is using them, but probably we should remove them.<br>
><br>
<br>
Yes. We can remove them. Same with #euro.<br>
<br>
Thanks,<br>
<br>
-- <br>
Juan Vuletich<br>
<a href="http://cuis.st" rel="noreferrer" target="_blank">cuis.st</a><br>
<a href="http://github.com/jvuletich" rel="noreferrer" target="_blank">github.com/jvuletich</a><br>
<a href="http://researchgate.net/profile/Juan-Vuletich" rel="noreferrer" target="_blank">researchgate.net/profile/Juan-Vuletich</a><br>
<a href="http://independent.academia.edu/JuanVuletich" rel="noreferrer" target="_blank">independent.academia.edu/JuanVuletich</a><br>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich" rel="noreferrer" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a><br>
<a href="http://linkedin.com/in/juan-vuletich-75611b3" rel="noreferrer" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a><br>
<a href="http://twitter.com/JuanVuletich" rel="noreferrer" target="_blank">twitter.com/JuanVuletich</a><br>
<br>
</blockquote></div></div>