Re: Forgot the code again!

2009-05-07 Thread Alexander Burger
Hi Tomas, In the long-term, wouldn't it be better to put the glyph related stuff into @lib/glyph.l and keep access to the full glyph - codepoint mapping? I see, you are thinking of the PDF generator. At the moment, though, this involves only a few lines of code, and I don't want to blow up

Re: Forgot the code again!

2009-05-06 Thread Tomas Hlavaty
Hi Alex, the usage of 'idx' in my implementation had a serious flaw: Because the unicod values in glyphlist.txt are partially sorted, we get a highly imbalanced tree: Why does inserting and removing using 'idx' require manual rebalancing using 'balance' in the first place? I would expect

Re: Forgot the code again!

2009-05-05 Thread Alexander Burger
Hi Tomas, the usage of 'idx' in my implementation had a serious flaw: Because the unicod values in glyphlist.txt are partially sorted, we get a highly imbalanced tree: : (depth *PsGlyph) - 71 I rewrote it now using 'balance' (and made *Glyph to a local transient symbol).