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 <
[email protected]> 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
>

Attachment: Unicode class-initializeCaseMapping.st
Description: Binary data

Reply via email to