[squeak-dev] The Trunk: Multilingual-mt.263.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 14 16:34:54 UTC 2022


Marcel Taeumel uploaded a new version of Multilingual to project The Trunk:
http://source.squeak.org/trunk/Multilingual-mt.263.mcz

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

Name: Multilingual-mt.263
Author: mt
Time: 14 February 2022, 5:34:52.780304 pm
UUID: 6363712d-9809-dd4d-acee-d173e16dfe4e
Ancestors: Multilingual-dtl.262

Complements Tools-mt.1134

=============== Diff against Multilingual-dtl.262 ===============

Item was changed:
  EncodedCharSet subclass: #Unicode
  	instanceVariableNames: ''
+ 	classVariableNames: 'Cc Cf Cn Co Compositions Cs DecimalProperty Decompositions GeneralCategory GeneralCategoryLabels Ll Lm Lo Lt Lu Mc Me Mn Nd Nl No Pc Pd Pe Pf Pi Po Ps Sc Sk Sm So ToCasefold ToLower ToUpper Zl Zp Zs'
- 	classVariableNames: 'Cc Cf Cn Co Compositions Cs DecimalProperty Decompositions GeneralCategory Ll Lm Lo Lt Lu Mc Me Mn Nd Nl No Pc Pd Pe Pf Pi Po Ps Sc Sk Sm So ToCasefold ToLower ToUpper Zl Zp Zs'
  	poolDictionaries: ''
  	category: 'Multilingual-Encodings'!
  
  !Unicode commentStamp: 'yo 10/19/2004 20:44' prior: 0!
  This class holds the entry points for the utility functions around characters.
  !

Item was added:
+ ----- Method: Unicode class>>generalCategoryLabelOf: (in category 'character classification') -----
+ generalCategoryLabelOf: aCharacterCode
+ 
+ 	^ (self generalCategoryOf: aCharacterCode)
+ 		ifNotNil: [:code | self generalCategoryLabels at: code+1 ifAbsent: ['n/a']]
+ 		ifNil: ['n/a']!

Item was added:
+ ----- Method: Unicode class>>generalCategoryLabels (in category 'unicode data') -----
+ generalCategoryLabels
+ 	"
+ 	Unicode generalCategoryLabels
+ 	"
+ 	^ GeneralCategoryLabels ifNil: [GeneralCategoryLabels := (Array new: Zs+1)
+ 		at: Lu +1 put: 'Letter, Uppercase';
+ 		at: Ll +1 put: 'Letter, Lowercase';
+ 		at: Lt +1 put: 'Letter, Titlecase';
+ 		at: Lm +1 put: 'Letter, Modifier';
+ 		at: Lo +1 put: 'Letter, Other';
+ 		at: Mn +1 put: 'Mark, Non-Spacing';
+ 		at: Mc +1 put: 'Mark, Spacing Combining';
+ 		at: Me +1 put: 'Mark, Enclosing';
+ 		at: Nd +1 put: 'Number, Decimal';
+ 		at: Nl +1 put: 'Number, Letter';
+ 		at: No +1 put: 'Number, Other';
+ 		at: Pc +1 put: 'Punctuation, Connector';
+ 		at: Pd +1 put: 'Punctuation, Dash';
+ 		at: Ps +1 put: 'Punctuation, Open';
+ 		at: Pe +1 put: 'Punctuation, Close';
+ 		at: Pi +1 put: 'Punctuation, Initial quote'; "(may behave like ''Open'' or ''Close'' depending on usage)';"
+ 		at: Pf +1 put: 'Punctuation, Final quote'; "(may behave like ''Open'' or ''Close'' depending on usage)';"
+ 		at: Po +1 put: 'Punctuation, Other';
+ 		at: Sm +1 put: 'Symbol, Math';
+ 		at: Sc +1 put: 'Symbol, Currency';
+ 		at: Sk +1 put: 'Symbol, Modifier';
+ 		at: So +1 put: 'Symbol, Other';
+ 		at: Zs +1 put: 'Separator, Space';
+ 		at: Zl +1 put: 'Separator, Line';
+ 		at: Zp +1 put: 'Separator, Paragraph';
+ 		at: Cc +1 put: 'Other, Control';
+ 		at: Cf +1 put: 'Other, Format';
+ 		at: Cs +1 put: 'Other, Surrogate';
+ 		at: Co +1 put: 'Other, Private Use';
+ 		at: Cn +1 put: 'Other, Not Assigned'; " (no characters in the file have this property)';"
+ 		yourself]
+ !



More information about the Squeak-dev mailing list