皆さんへ、
analog のバージョン4.90beta1はパイチャートを作成してくれますが、
その中へ文字が入り込みます。この文字は、例えばjp.lngから取り込みます。
ところが、Turnerが使用したpngファイルを作成するコードは2バイトコードを
ちゃんと考慮していません。従って、文字化けします。
下のメールで彼は、次のバージョンでは、文字を図の外側に入れて問題を回避
するとのことです。それまでは、日本語をこのバージョンで取り入れる場合には、
ALLCHART OFF
をanalog.cfgに書いて、図をレポートから外すしかないようです。
どなたか、2バイトコードをサポートするpngライブラリをご存知ないですか。
松木@東京家政大
-----Original Message-----
From: Stephen Turner [mailto:S.R.E.Turner@statslab.cam.ac.uk]
Sent: Tuesday, January 30, 2001 12:13 AM
To: Takayuki Matsuki
Subject: Re: Pi chart
On Tue, 30 Jan 2001, Takayuki Matsuki wrote:
> Dear Dr. Turner,
>
> I tried to get report out of Ver. 4.90beta1 analog and
> I obtained chart figures in which Japanese characters are
> not understandable.
> Is there any library which support two-byte characters to
> create png files wthout ?
> It seems files you used to create png figures do not support
> two-byte characters.
>
You're right, it doesn't at the moment. Unfortunately I can't keep font
definitions for every different font. So in the next version of analog, I
will move the text off the pie chart if the font is not ISO-8859-1 or
ISO-8859-2. Then the browser will be able to interpret it. I hope that makes
sense!
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
"Your account can only be used for a single internet session at any one
time and for no more than 24 hours in any one day." (NTL terms of use)