[I18n-sig] thinking of CJK codec, some questions

M.-A. Lemburg mal@lemburg.com
Wed, 15 Mar 2000 15:36:34 +0100


Just a few comments about the design (don't have any knowledge
about Asian encodings):

1. Keep large mapping tables in single automatically generated C
   modules that export a lookup object (ones that define __getitem__).
   These could also be generated using some perfect hash table
   generator, BTW, to reduce memory consumption.

2. Write small special encoders/decoders that take the lookup
   table objects as argument.

3. Glue both together using Python code -- forget about the
   PyCObject idea :-) ... it causes too many problems when the import
   fails.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/