[Pharo-project] Unicode depending on Zinc

Guillermo Polito guillermopolito at gmail.com
Thu Mar 15 11:36:51 EDT 2012


goes! :)
http://code.google.com/p/pharo/issues/detail?id=5484&thanks=5484&ts=1331825769

On Thu, Mar 15, 2012 at 12:29 PM, Stéphane Ducasse <
stephane.ducasse at inria.fr> wrote:

> Add a bug entry :)
>
> Stef
>
> On Mar 15, 2012, at 4:22 PM, Guillermo Polito 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 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
> >
> > <Unicode class-initializeCaseMapping.st>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120315/a1ccd7fa/attachment-0001.html>


More information about the Pharo-dev mailing list