With this version of the method, now it works :). I've changed it to fill the tables with the relative numbers it uses, just as the current initialization. I'll open an issue. On Sun, Apr 15, 2012 at 12:37 PM, Guillermo Polito < guillermopolito@gmail.com> wrote:
Unicode class>>#parseUnicodeDataFrom:
is the method in charge of initialize the unicode tables telling when a char is lowercase, or digit, etc..
But it has no senders :).
Maybe a first try can be something like the case mappings:
Unicode class>>initializeUnicodeData UIManager default informUserDuring: [ :bar| | result | bar value: 'Downloading Unicode data'. (result := ZnEasy get: ' http://www.unicode.org/Public/UNIDATA/UnicodeData.txt') isSuccess ifFalse: [ ^ self error: 'Download failed' ]. bar value: 'Updating Case Mappings'. self parseUnicodeDataFrom: result contents readStream ].
Now, is http://www.unicode.org/Public/UNIDATA/UnicodeData.txt the correct file to load the data from?
BTW, I executed that code in my image and It broke into pieces, so the existing initialization may have some problem. Dunno what happens yet.
Guille