[squeak-dev] The Inbox: Multilingual-ct.259.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Aug 23 18:58:47 UTC 2021


A new version of Multilingual was added to project The Inbox:
http://source.squeak.org/inbox/Multilingual-ct.259.mcz

==================== Summary ====================

Name: Multilingual-ct.259
Author: ct
Time: 23 August 2021, 8:58:13.55234 pm
UUID: 649d6194-9e4b-4047-af1d-d11cc2b22af1
Ancestors: Multilingual-ul.258

Adds Unicode class >> #generalTagOf: which can be used to retrieve the name of the unicode category for any codepoint.

Example:

	'MYpass123! :-)' collect: [:c | Unicode generalTagOf: c asUnicode] as: Array. "--> #(#Lu #Lu #Ll #Ll #Ll #Ll #Nd #Nd #Nd #Po #Zs #Po #Pd #Pe)"

For the original discussion, see: http://forum.world.st/Unicode-td5113495.html

=============== Diff against Multilingual-ul.258 ===============

Item was added:
+ ----- Method: Unicode class>>generalTagOf: (in category 'character classification') -----
+ generalTagOf: aCharacterCode
+ 
+ 	| cat tagIndex |
+ 	cat := self generalCategoryOf: aCharacterCode.
+ 	tagIndex := self tags indexOf: cat.
+ 	^ self tagNames at: tagIndex!

Item was added:
+ ----- Method: Unicode class>>tagNames (in category 'class initialization') -----
+ tagNames
+ 
+ 	^ #(Cn Cc Cf Co Cs Ll Lm Lo Lt Lu Mc Me Mn Nd Nl No Pc Pd Pe Pf Pi Po Ps Sc Sk Sm So Zl Zp Zs)!

Item was added:
+ ----- Method: Unicode class>>tags (in category 'class initialization') -----
+ tags
+ 
+ 	^ {Cn. Cc. Cf. Co. Cs. Ll. Lm. Lo. Lt. Lu. Mc. Me. Mn. Nd. Nl. No. Pc. Pd. Pe. Pf. Pi. Po. Ps. Sc. Sk. Sm. So. Zl. Zp. Zs}!



More information about the Squeak-dev mailing list