[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tmda-cvs
Subject:    CVS: tmda/TMDA/pythonlib/email Charset.py,1.7,1.8
From:       "Jason R. Mastaler" <jasonrm () users ! sourceforge ! net>
Date:       2003-11-26 0:08:34
[Download RAW message or body]

Update of /cvsroot/tmda/tmda/TMDA/pythonlib/email
In directory sc8-pr-cvs1:/tmp/cvs-serv31352/TMDA/pythonlib/email

Modified Files:
	Charset.py 
Log Message:
Bugfix.  TMDA supports the KoreanCodecs and ChineseCodecs modules for
Korean and Chinese in the templates, but they are no longer available
as they have been replaced by a unified package called CJKCodecs.

So, we add support for CJKCodecs, and remove support for the former.

Even thought CJKCodecs has Japanese support, apparently there is some
controversy with it, and JapaneseCodecs still has a strong user base.
So, we take the conservative road and stick with JapaneseCodecs for
now.  Hopefully in the future we'll be able to use CJKCodecs for
everything.


Index: Charset.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/Charset.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Charset.py	6 Mar 2003 21:07:43 -0000	1.7
+++ Charset.py	26 Nov 2003 00:08:31 -0000	1.8
@@ -88,26 +88,27 @@
     'ascii':   'us-ascii',
     }
 
-# Map charsets to their Unicode codec strings.  Note that Python doesn't come
-# with any Asian codecs by default.  Here's where to get them:
+# Map charsets to their Unicode codec strings.  Note that Python
+# doesn't come with any Asian codecs by default.  Here's where to get
+# them:
 #
-# Japanese -- http://www.asahi-net.or.jp/~rd6t-kjym/python
-# Korean   -- http://sf.net/projects/koco
-# Chinese  -- http://sf.net/projects/python-codecs
-#
-# Note that these codecs have their own lifecycle and may be in varying states
-# of stability and useability.
+# Chinese/Korean - CJKCodecs (http://cjkpython.i18n.org/)
+# Japanese - JapaneseCodecs (http://www.asahi-net.or.jp/~rd6t-kjym/python)
 
 CODEC_MAP = {
+    # cjkcodecs isn't ready to replace JapaneseCodecs yet
+    #'euc-jp':      'cjkcodecs.euc-jp',
+    #'iso-2022-jp': 'cjkcodecs.iso-2022-jp',
+    #'shift_jis':   'cjkcodecs.shift_jis',
     'euc-jp':      'japanese.euc-jp',
     'iso-2022-jp': 'japanese.iso-2022-jp',
     'shift_jis':   'japanese.shift_jis',
-    'euc-kr':      'korean.euc-kr',
-    'ks_c_5601-1987': 'korean.cp949',
-    'iso-2022-kr': 'korean.iso-2022-kr',
-    'johab':       'korean.johab',
-    'gb2132':      'eucgb2312_cn',
-    'big5':        'big5_tw',
+    'euc-kr':      'cjkcodecs.euc-kr',
+    'ks_c_5601-1987': 'cjkcodecs.cp949',
+    'iso-2022-kr': 'cjkcodecs.iso-2022-kr',
+    'johab':       'cjkcodecs.johab',
+    'gb2312':      'cjkcodecs.gb2312',
+    'big5':        'cjkcodecs.big5',
     'utf-8':       'utf-8',
     # Hack: We don't want *any* conversion for stuff marked us-ascii, as all
     # sorts of garbage might be sent to us in the guise of 7-bit us-ascii.

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic