Re: CJK patch test error report!


Subject: Re: CJK patch test error report!
From: Vlad Harchev (hvv@hippo.ru)
Date: Tue Oct 31 2000 - 02:45:56 CST


On Tue, 31 Oct 2000, Belcon wrote:

 Hi,

> Hello:
>
> Vlad Harchev дµÀ¡Ã
>
> > What are your ideas on fixing input of CJK chars? Have you tried them?
> >
>
> I am still trying.

 And what are ideas?
  
> > > In Big5:
> > > Work fine:
> > > * Same as GB2312
> > > * Show Big5 Chinese characters quit well.
> >
> > Quite well where - in the document?
> > Are there any flaws?
>
> Yes,I found some bugs.
> * AbiWord can't load .abw file,even if it is converted from a opened
> Big5
> txt file.AbiWord complained that the .abw file is not an illegal
> .abw file.
> But I can load GB2312 .abw file quite fine.

 I don't understand you. First you say "AW can't load .abw, even ..", then "
can load GB2312 .abw file quite fine". Could you please explain it?

 Also, the typical .abw file AW saves starts with
<?xml version="1.0" encoding="YOUR-ENCODING-NAME"?>

 Current code makes AW refusing to load if YOUR-ENCODING-NAME is multibyte
encoding, though there are no multibyte strings in the file.
 So for now, before opening .abw files you've saved, edit first line of the
file to open to read:
<?xml version="1.0"?>

 i.e. remove 'encoding="YOUR-ENCODING-NAME"' part.

 Please report results.

> * Now,AbiWord will crash down if I select several characters(highlighted
> them with mouse),then select menu item "Copy" or use Ctrl+c.Even the
> characters are english letters.Both in GB2312 and in Big5,the bug
> exists.I attached the debug message

 Hmm, very strange. Could you make a backtrace? The debug message is almost
useless since it doen's show where AW crashed.
 To do this, run "echo bt ; gdb -c AW-CORE-FILE-NAME" as I remember (or just
attach to running AW and make it crash, and then type 'bt').

> >
> > > problem:
> > > * We can't input Chinese character in Frame.(This is easy to
> > > fix.)
> > >
> > > Maybe I will try Japanese and Korean,but not now.
> >
> > * What is your $LANG is set to?
>
> $LANG=zh_CN.GB2312 or $LANG=zh_TW.Big5

 There is a big chance that your iconv implementation doesn't know encoding
named "GB2312" (for example, it knows it under different name, say "GB-2312").
If your AW uses iconv from glibc, then type
        iconv --list
and check whether GB2312 is in the list of encodings. If not, find something
with similar name e.g. GB-2312 or GB_2312 and tell me what's it. If you use
libiconv, then it definitely doesn't knwo GB2312 - it knows only

              EUC-CN, HZ, GBK, EUC-TW, BIG5, CP950, ISO-2022-CN,
              ISO-2022-CN-EXT

 though GBK may mean GB2312.
 Then please relink AW with iconv from glibc (or hack libiconv to understand
GB2312 - that is less desired).

> > * In which subdirectory did you place chinese fonts (did AW loaded them at
> > all? - are CJK fonts available in font selection combobox)?
>
> I think chinese fonts are ok.There is no problem now.

 From the "boot log" it seems it's OK - AW seem to find fonts.

> > * Does your iconv knows your charset (seems so, otherwise you won't see Ch
> > chars in GUI elements such as menu)?
> > * What iconv implementation do you use (the one in glibc or standalone from
> > libiconv?).
>
> I have searched libiconv.so in /lib and /usr/lib,and found
> nothing.Then,I must
> use glibc.

 libiconv is by default installed in /usr/local/lib.
 To see whether AW uses libiconv, type 'ldd /PATH/NAME-OF-AW-BINARY' - it will
list all libraries AW is linked with. If 'libiconv' is in the list, then AW is
linked with it.

> > * Could you paste Ch chars from other apps? Could you import .txt files into
> > AW?
>
> No,I can't paste any chars(include english characters) from other apps.
> I can import .txt files into AW.

  Can you import .txt file with Ch chars into AW? In both GB2312 and Big5?
  Can you paste anything into Big5 version?

> > * Could you save Ch chars as .txt or copy them to other documents
>
> Yes.

 In both GB2312 and Big5?
 Does it copy Ch chars _correctly_? Does pasting to other apps works?

> > * Could you print correctly in Big5?
>
> I haven't got a printer.I will test this later.

 You don't have to have a printer.
 You can print to .ps file (jiust select "file" in print dialog) and look at
the raw file and/or see it in gv (ghostview - part of GhostScript package).
 
> >
> > >
> > > BTW:
> > > Even I applied next-cjk.patch,I could see nothing
> > > if my abw file contains GB2312 characters.
> >
> > That's expected. That patch fixes completely different things.
> >
> > Could you please post a "boot log" of AbiWord? (It will be produced by AW
> > when it starts if it's compiled with debug enabled - and it can sched some
> > light on why it misbehaves).
> >
> > Thank you very much for this testing. Your help is very appreciated.
> >
> > -------------------
>
> Thank you so much .
>

 Thank you.

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Tue Oct 31 2000 - 03:12:15 CST