Thread: [KoCo-CVS] [Commit] KoreanCodecs/src tablegen.py _koco_ksc5601.h
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-07-23 18:05:18
|
perky 02/07/23 11:05:16 Modified: src tablegen.py _koco_ksc5601.h Log: Add two new characters that introduced by KSX1001-1998 (EURO Symbol and Registered Mark) Revision Changes Path 1.13 +28 -15 KoreanCodecs/src/tablegen.py Index: tablegen.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/tablegen.py,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- tablegen.py 19 Jul 2002 00:01:53 -0000 1.12 +++ tablegen.py 23 Jul 2002 18:05:16 -0000 1.13 @@ -1,10 +1,10 @@ # -# tablegen.py - $Revision: 1.12 $ +# tablegen.py - $Revision: 1.13 $ # # Code Table Generator # # Author: Hye-Shik Chang <pe...@Fr...> -# Date : $Date: 2002/07/19 00:01:53 $ +# Date : $Date: 2002/07/23 18:05:16 $ # # # This file is part of KoreanCodecs. @@ -28,6 +28,29 @@ UNICODE_FILL = "UNIFIL," +COPYRIGHT_HEADER = """\ +/* + * This file is part of KoreanCodecs. + * + * KoreanCodecs is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * KoreanCodecs is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with KoreanCodecs; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Generated by tablegen.py on %s + * $Id: tablegen.py,v 1.13 2002/07/23 18:05:16 perky Exp $ + */ +""" % time.asctime(time.gmtime()) + def tohex(s): return "\\x%02x\\x%02x" % tuple(map(ord, s)) @@ -126,12 +149,7 @@ print >> fo ksc5601 = open("_koco_ksc5601.h", "w") -print >> ksc5601, """\ -/* - Generated by tablegen.py on %s - $Id: tablegen.py,v 1.12 2002/07/19 00:01:53 perky Exp $ - */ -""" % time.asctime(time.gmtime()) +print >> ksc5601, COPYRIGHT_HEADER # johab_ideograph ksc5601_hangul ksc5601_ideograph ksc5601_misc uhc.py from korean.mappings import ksc5601_hangul, ksc5601_ideograph, ksc5601_misc @@ -157,12 +175,7 @@ uhctable = open("_koco_uhc.h", "w") -print >> uhctable, """\ -/* - Generated by tablegen.py on %s - $Id: tablegen.py,v 1.12 2002/07/19 00:01:53 perky Exp $ - */ -""" % time.asctime(time.gmtime()) +print >> uhctable, COPYRIGHT_HEADER print >> uhctable, """\ #define uhc_page0_bottom 0x41 @@ -202,6 +215,6 @@ encodemapgen(uhctable, "uhc_encode", uhc.encoding_map, 512) # -# $Id: tablegen.py,v 1.12 2002/07/19 00:01:53 perky Exp $ +# $Id: tablegen.py,v 1.13 2002/07/23 18:05:16 perky Exp $ # # -*- End-Of-File -*- 1.6 +5 -5 KoreanCodecs/src/_koco_ksc5601.h Index: _koco_ksc5601.h =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/_koco_ksc5601.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- _koco_ksc5601.h 19 Jul 2002 00:01:53 -0000 1.5 +++ _koco_ksc5601.h 23 Jul 2002 18:05:16 -0000 1.6 @@ -15,8 +15,8 @@ * along with KoreanCodecs; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Generated by tablegen.py on Sat Mar 16 01:24:40 2002 - * $Id: _koco_ksc5601.h,v 1.5 2002/07/19 00:01:53 perky Exp $ + * Generated by tablegen.py on Tue Jul 23 18:03:34 2002 + * $Id: _koco_ksc5601.h,v 1.6 2002/07/23 18:05:16 perky Exp $ */ #define ksc5601_decode_bottom 161 @@ -46,7 +46,7 @@ 0x25a8, 0x25a7, 0x25a6, 0x25a9, 0x2668, 0x260f, 0x260e, 0x261c, 0x261e, 0x00b6, 0x2020, 0x2021, 0x2195, 0x2197, 0x2199, 0x2196, 0x2198, 0x266d, 0x2669, 0x266a, 0x266c, 0x327f, 0x321c, 0x2116, - 0x33c7, 0x2122, 0x33c2, 0x33d8, 0x2121, UNIFIL, UNIFIL, UNIFIL, + 0x33c7, 0x2122, 0x33c2, 0x33d8, 0x2121, 0x20ac, 0x00ae, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, UNIFIL, @@ -1491,7 +1491,7 @@ static unsigned char *ksc5601_encode_page0[945] = { /* 0x00a1 - 0x0451 */ "\xa2\xae", 0, 0, "\xa2\xb4", 0, 0, "\xa1\xd7", "\xa1\xa7", - 0, "\xa8\xa3", 0, 0, "\xa1\xa9", 0, 0, "\xa1\xc6", + 0, "\xa8\xa3", 0, 0, "\xa1\xa9", "\xa2\xe7", 0, "\xa1\xc6", "\xa1\xbe", "\xa9\xf7", "\xa9\xf8", "\xa2\xa5", 0, "\xa2\xd2", "\xa1\xa4", "\xa2\xac", "\xa9\xf6", "\xa8\xac", 0, "\xa8\xf9", "\xa8\xf6", "\xa8\xfa", "\xa2\xaf", 0, 0, 0, 0, 0, 0, "\xa8\xa1", 0, 0, @@ -1630,7 +1630,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, "\xa2\xe6", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |