[squeak-dev] The Trunk: Multilingual-tpr.185.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Oct 8 21:50:53 UTC 2013
tim Rowledge uploaded a new version of Multilingual to project The Trunk:
http://source.squeak.org/trunk/Multilingual-tpr.185.mcz
==================== Summary ====================
Name: Multilingual-tpr.185
Author: tpr
Time: 8 October 2013, 2:50:18.117 pm
UUID: 4417f293-d927-4f27-a55e-140178ab2eee
Ancestors: Multilingual-nice.184
Make the character encoders and language environments understand how to delgate the next step of character scanning
=============== Diff against Multilingual-nice.184 ===============
Item was changed:
----- Method: EncodedCharSet class>>charsetAt: (in category 'class methods') -----
charsetAt: encoding
+ "Find the char set encoding that matches 'encoding'; return a decent default rather than nil"
+ ^ (EncodedCharSets at: encoding + 1) ifNil: [EncodedCharSets at: 1].
-
- ^ EncodedCharSets at: encoding + 1 ifAbsent: [EncodedCharSets at: 1].
!
Item was added:
+ ----- Method: EncodedCharSet class>>scanMultibyteCharactersFrom:to:in:with:rightX:font: (in category 'accessing - displaying') -----
+ scanMultibyteCharactersFrom: startIndex to: stopIndex in: aWideString with: aCharacterScanner rightX: rightX font: aFont
+ "the default for scanning multibyte characters- other more specific encodings may do something else"
+ ^aFont scanMultibyteCharactersFrom: startIndex to: stopIndex in: aWideString with: aCharacterScanner rightX: rightX!
Item was added:
+ ----- Method: JapaneseEnvironment class>>scanMultibyteCharactersFrom:to:in:with:rightX:font: (in category 'language methods') -----
+ scanMultibyteCharactersFrom: startIndex to: stopIndex in: aWideString with: aCharacterScanner rightX: rightX font: aFont
+ "scanning multibyte Japanese strings"
+ ^aFont scanMultibyteJapaneseCharactersFrom: startIndex to: stopIndex in: aWideString with: aCharacterScanner rightX: rightX!
Item was added:
+ ----- Method: LanguageEnvironment class>>scanMultibyteCharactersFrom:to:in:with:rightX:font: (in category 'language methods') -----
+ scanMultibyteCharactersFrom: startIndex to: stopIndex in: aWideString with: aCharacterScanner rightX: rightX font: aFont
+ "the default for scanning multibyte characters- other more specific encodings may do something else"
+ ^aFont scanMultibyteCharactersFrom: startIndex to: stopIndex in: aWideString with: aCharacterScanner rightX: rightX!
Item was added:
+ ----- Method: String>>encodedCharSetAt: (in category '*Multilingual') -----
+ encodedCharSetAt: index
+ "return the character encoding in place at index; the actual EncodedCharSet, not just a number. A bad index is an Error"
+ ^EncodedCharSet charsetAt: (self at: index) leadingChar!
More information about the Squeak-dev
mailing list
|