[KoCo-CVS] [Commit] KoreanCodecs/src hangul.c
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-25 05:12:19
|
perky 02/04/24 22:12:18 Modified: src hangul.c Log: - Fix the problem around syllable without jongsung. Revision Changes Path 1.3 +4 -4 KoreanCodecs/src/hangul.c Index: hangul.c =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/hangul.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- hangul.c 25 Apr 2002 04:49:01 -0000 1.2 +++ hangul.c 25 Apr 2002 05:12:17 -0000 1.3 @@ -4,14 +4,14 @@ * KoreanCodecs Hangul Module C Implementation * * Author : Hye-Shik Chang <pe...@fa...> - * Date : $Date: 2002/04/25 04:49:01 $ + * Date : $Date: 2002/04/25 05:12:17 $ * Created : 25 April 2002 * - * $Revision: 1.2 $ + * $Revision: 1.3 $ */ static char *version = -"$Id: hangul.c,v 1.2 2002/04/25 04:49:01 perky Exp $"; +"$Id: hangul.c,v 1.3 2002/04/25 05:12:17 perky Exp $"; #include "Python.h" @@ -246,7 +246,7 @@ Py_UNICODE code; code = ((getChosungOrder(elems[0]) * NJUNGSUNG) + getJungsungOrder(elems[1])) * - NJONGSUNG + getJongsungOrder(elems[2]) + HANGUL_BOTTOM; + NJONGSUNG + (elems[2]?getJongsungOrder(elems[2]):0) + HANGUL_BOTTOM; return PyUnicode_FromUnicode(&code, 1); } } |