[Cuis-dev] [Ann] Unicode Text Editors

Juan Vuletich JuanVuletich at zoho.com
Wed May 11 06:55:24 PDT 2022


Hi Luciano,

On 5/11/2022 9:08 AM, Luciano Notarfrancesco via Cuis-dev wrote:
> Oh, you also added support for characters beyond the Basic 
> Multilingual Plane? Now this works:
>   (StringUtf8 fromUtf32: (16r1D538 to: 16r1D56B)) edit

Just pushed updates. now:
(Utf8String fromUtf32: (16r1D538 to: 16r1D56B)) edit.
works as expected.

Due to ninecities of Unicode design, what you actually want is:
(Utf8String fromUtf32: #(16r1D538 16r1D539 16r2102 16r1D53B 16r1D53C 
16r1D53D 16r1D53E 16r210D 16r1D540 16r1D541 16r1D542 16r1D543 16r1D544 
16r2115 16r1D546 16r2119 16r211A 16r211D 16r1D54A 16r1D54B 16r1D54C 
16r1D54D 16r1D54E 16r1D54F 16r1D550 16r2124 16r1D552 16r1D553 16r1D554 
16r1D555 16r1D556 16r1D557 16r1D558 16r1D559 16r1D55A 16r1D55B 16r1D55C 
16r1D55D 16r1D55E 16r1D55F 16r1D560 16r1D561 16r1D562 16r1D563 16r1D564 
16r1D565 16r1D566 16r1D567 16r1D568 16r1D569 16r1D56A 16r1D56B)) edit.
Just had to check why the most important ones were missing!

> Super cool! I was missing some code points that I wanted to use for 
> printing. Can’t wait to be able to print unicode in the workspace, and 
> having unicode literal strings in methods, and unicode selectors… I’m 
> getting ahead, but it’s really exciting!

Yes. We'll need to work a bit on that.

> Btw, sorry to be obsessive about names again, but wouldn’t UTF8String 
> and UTF32String be better names than StringUtf8 and StringUtf32? Kind 
> of ByteArray instead of ArrayByte… anyway not very important… I won’t 
> be using these classes directly in my code, I guess.

I struggled a bit trying to decide between those. I liked the fact that 
having prefix String means those classes may be listed together. But I 
agree with you. Just changed them. Still, I used 'Utf' prefix and not 
'UTF'. I tend not to capitalize acronyms, and use caps only for 
camelCase. Names matter!

> Thanks again!
> Luciano

Cheers,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
https://independent.academia.edu/JuanVuletich
https://www.researchgate.net/profile/Juan-Vuletich
https://patents.justia.com/inventor/juan-manuel-vuletich
https://twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220511/8bc2d0cd/attachment.htm>


More information about the Cuis-dev mailing list