[Pharo-project] Unicode depending on Zinc

Guillermo Polito guillermopolito at gmail.com
Thu Mar 15 11:22:09 EDT 2012


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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120315/11ac7f52/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Unicode class-initializeCaseMapping.st
Type: application/octet-stream
Size: 11478 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120315/11ac7f52/attachment.st>


More information about the Pharo-dev mailing list