Of course with a nice comment saying something like:

"Initialize the mappings from unicode lower to upper case and vice versa.� sourceCodes and destinyCodes contains the unicode values for the mappings, and they match one by one.�
The source of this mapping can be found at: http://www.unicode.org/Public/UNIDATA/CaseFolding.txt' "

On Thu, Mar 15, 2012 at 12:22 PM, Guillermo Polito <guillermopolito@gmail.com> wrote:
What about changing the initialize via a request to a method with the data?� I don't think Unicode case mappings will change too much in time :P...

Something like the attach

Guille


On Wed, Mar 14, 2012 at 12:06 PM, Guillermo Polito <guillermopolito@gmail.com> wrote:
Hi,

Does this method make sense? (Do we want Unicode to update itself?)

Unicode class>>initializeCaseMappings
��� "Unicode initializeCaseMappings"
��� ToCasefold := IdentityDictionary new.
��� ToUpper := IdentityDictionary new.
��� ToLower := IdentityDictionary new.
��� UIManager default informUserDuring: [ :bar| | result |
��� ��� bar value: 'Downloading Unicode data'.
��� ��� (result := ZnClient get: 'http://www.unicode.org/Public/UNIDATA/CaseFolding.txt') isSuccess
��� ��� ��� ifFalse: [ ^ self error: 'Download failed' ].
��� ��� bar value: 'Updating Case Mappings'.
��� ��� self parseCaseMappingFrom: result contents readStream ].

Guille