[KoCo-CVS] [Commit] cjkcodecs/src _euc_jisx0213.c
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-07-12 14:03:29
|
perky 03/07/12 07:03:26 Modified: src _euc_jisx0213.c Log: Regenerate jis x 0213 maps with corrected mapping file. Revision Changes Path 1.7 +7 -3 cjkcodecs/src/_euc_jisx0213.c Index: _euc_jisx0213.c =================================================================== RCS file: /cvsroot/koco/cjkcodecs/src/_euc_jisx0213.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- _euc_jisx0213.c 9 Jul 2003 21:35:19 -0000 1.6 +++ _euc_jisx0213.c 12 Jul 2003 14:03:26 -0000 1.7 @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id: _euc_jisx0213.c,v 1.6 2003/07/09 21:35:19 perky Exp $ + * $Id: _euc_jisx0213.c,v 1.7 2003/07/12 14:03:26 perky Exp $ */ #define USING_BINARY_PAIR_SEARCH @@ -48,7 +48,7 @@ ENCODER(euc_jisx0213) { while (inleft > 0) { - ucs4_t c = **inbuf; + ucs4_t c = IN1; DBCHAR code; int insize; @@ -94,6 +94,9 @@ } else if (c == 0xff3c) /* F/W REVERSE SOLIDUS (see NOTES.euc-jisx0213) */ code = 0x2140; + else if (c == 0xff5e) + /* F/W TILDE (see NOTES.euc-jisx0213) */ + code = 0x2232; else return 1; } else if (c >> 16 == EMPBASE >> 16) { @@ -165,7 +168,8 @@ c2 = IN2 ^ 0x80; /* JIS X 0213 Plane 1 */ - if (c == 0xa1 && c2 == 0xc0) **outbuf = 0xff3c; + if (c == 0x21 && c2 == 0x40) **outbuf = 0xff3c; + else if (c == 0x22 && c2 == 0x32) **outbuf = 0xff5e; else TRYMAP_DEC(jisx0208, **outbuf, c, c2); else TRYMAP_DEC(jisx0213_1_bmp, **outbuf, c, c2); else TRYMAP_DEC(jisx0213_1_emp, code, c, c2) { |