[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Bug#19440: KMail and Japanese.
From:       toyohiro () ksmplus ! com
Date:       2001-02-01 6:58:04
[Download RAW message or body]


Hi,

Thank you VERY much for your quick response !

Wed, 31 Jan 2001 22:34:16 +0100 , Michael@haeckel.net wrote :

> On Wednesday, 31. January 2001 05:13, toyohiro@ksmplus.com wrote:
> >
> > $cd SOURCES/kdelibs/kdecore
> > $diff -u charsets.config.orig charsets.config
> > --- charsets.config.orig        Tue Jan 30 11:20:22 2001
  ....
> >  windows874=iso 8859-11
> >  x-windows-874=iso 8859-11
> 
> 
> Thanks for your detailed description. I think charsets in kdelibs is
> the job of Lars Knoll. I posted it on kde-core-devel.

 Thank you for your posted it on kde-core-devel.

> Unfortunately I just was not even with your changes able to get any
> Japanese characters displayed although I thought I have a font for it
> installed (jis-fixed and jis-gothic).
>  Could you tell me where I can get a Japanese font, or are these 
> the wrong ones?
>  Ususally I use a unicode font, but that has only squares where the
> Japanese characters should be.

 I am using Debian GNU Linux 2.2, Which Linux Distribution do you use ?
 If you tell me Linux Distribution which you are using.
 I will install OS which you are using , and I will setting up the
 font environment. and I will report to you the environment.

 By the way , If you have a few time , Please do it.

 (1) Please execute kcontrol.  

     Select Personalization -> Country & Langaage 
        Language: English US (C)

     and push apply button and exit kcontrol .

    Fig-1  http://www.ksmplus.com/~toyohiro/kde2.1/kcontrol10.gif

 (2) Please execute kmail.

    Select Settings -> Configurations -> Appearance -> Fonts
      Location      : Message Body 
      Font          : jis-fixed    ( if you are enable, )
      Font style    : Regular
      Size          : 15
      Character set : default

    and apply. 
      Fig-2 http://www.ksmplus.com/~toyohiro/kde2.1/kma-configure.gif

    Was Japanese displayed to Message window ?    
      Fig-3 http://www.ksmplus.com/~toyohiro/kde2.1/kmail-jis-fixed-15.gif

> > diff -ur kmail.orig/kmmsgbase.cpp kmail/kmmsgbase.cpp
> > --- kmail.orig/kmmsgbase.cpp    Wed Jan  3 00:30:16 2001
> > +++ kmail/kmmsgbase.cpp Tue Jan 30 12:04:37 2001
    ....
> >        if (!codec) codec = codecForName(KGlobal::locale()->charset());
> >        if (codec) str = codec->toUnicode(cstr);
>
> I did these things a bit different, because I already wrote
> KMMsgBase::codecForName for a similar problem. To change it
> there should fix a few more problems.

 I see.
 
> > diff -ur kmail.orig/kmreaderwin.cpp kmail/kmreaderwin.cpp
> > --- kmail.orig/kmreaderwin.cpp  Fri Jan 26 06:46:28 2001
> > +++ kmail/kmreaderwin.cpp       Tue Jan 30 13:00:58 2001
    ....
> > +    htmlStr += quotedHTML(mCodec->toUnicode(aStr));
> >    else htmlStr += mCodec->toUnicode(quotedHTML(aStr));
> >    mViewer->write(htmlStr);
> >  }
>
> Well, it's a hack, but it works. This ESC definitely makes also problems
> at a few other places and I expected the charset problem mainly fixed.
> Japanese really seems to need some special treatment.

 Yes , I think so.

> Why can't you simply use utf-8 :-)

 I am sorry , I can not answer your question.
 
> > (C) Please get the addressbook file and save to
> >     $HOME/.kde/share/apps/addressbook.
    ....
> >         if (QString(a).find(s,0,false) >= 0)
> >           {
>
> Thanks for this patch, but the internal addressbook is obsolote. KAB or
> abbrowser are recommended. Maybe we definitely should remove it someday.
>
> Some time ago I committed a patch for internal addressbook to support
> non-latin characters. I didn't test it vary well myself before. I just
> tried it again. Well, it seems that even with your patch it does not
> work correctely. If I exit KMail and start it again the non-latin
> characters are converted to question marks.

 I see. 

> Do you think, it also works, if I apply the attached patch (to KMail).
> Also headers (Subject and address fields) should work with iso-2022-jp,
> at least if you don't make them too long.

 I applied patch (japanese.diff) that you made. 
 Japanese.diff patch is correct work with iso-2022-jp. and Also 
 headers (Subject and Address fields) work with iso-2022-jp.

  Fig-1 http:://www.ksmplus.com/~toyohiro/kde2.1/kmail10.gif
  Fig-2 http:://www.ksmplus.com/~toyohiro/kde2.1/kmail11.gif

 Thank you so much.

Best Regards,
 Toyohiro <toyohiro@ksmplus.com>


_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic