Re: request for help from CJK hackers


Subject: Re: request for help from CJK hackers
From: Belcon Zhao (belcon@hotmail.com)
Date: Thu Nov 09 2000 - 06:05:24 CST


>From: Vlad Harchev <hvv@hippo.ru>
>To: Belcon Zhao <belcon@hotmail.com>
>CC: rainfall@yeah.net, abiword-dev@abisource.com
>Subject: Re: request for help from CJK hackers
>Date: Thu, 9 Nov 2000 15:10:02 +0400 (SAMT)
>
>On Thu, 9 Nov 2000, Belcon Zhao wrote:
>
> Hi Belcon,
>
> > Hello Vlad:
> >
> > Yes,it works!Great work!
>
> Very nice to hear that.
>
> > As chih-wei Huang metioned that there still is some bug with
> > Big5 Chinese.I always test AW in GB2312.I will test Big5 on
> > next Monday,cause I have to do something else next three days.
>
> OK.
>
> >[...]
> > Thanks for your explain.And I also crashed with the code your last
> > letter metioned.But it works fine with above codes.:-)
> > Now,our work is test in Big5.I think it is a easy work.:-)
>
> Let's hope :)

As I expect,this bug is quite easy.Here is the solution(although I
haven't test it).I will test it after I send this mail
Just at same location of last bug,Vlad

s_RTF_ListenerWriteDoc::_outputData(const UT_UCSChar * data, UT_uint32
length)
[...]

for(int i=0;i<mblen;++i) {
        unsigned char c = mbbuf[i];
-- if ( c > 0x007f) {
                FlushBuffer();
                m_pie->_rtf_nonascii_hex2(c);
-- }
-- else
-- *pBuf++ = c;

Cause the second byte of Big5 is not always bigger than 0x7f.
While GB2312's code range is from 0xA1A1 to 0xFEFE,Big5's code
range is:first byte,0xA1~0xFE,second byte,0x40~0x7E&&0xA1~0xFE.
Vlad is not familiar with CJK code set.:-)
  After this patch,I think AW will support CJK perfectly.

>
> Could anybody look into this?
>
>[...]
> > Best regards,
> > -Belcon
>
> Best regards,
> -Vlad
>
>
Best regards,
-Belcon
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.



This archive was generated by hypermail 2b25 : Thu Nov 09 2000 - 06:05:27 CST