|
From: Ethan A M. <merritt@u.washington.edu> - 2008-01-19 20:59:48
|
On Saturday 19 January 2008 02:15, Mojca Miklavec wrote:
> Hello,
>=20
> can someone please help me with a minimal example how to use
> iso_8859_2 in the postscript terminal?
Are you sure that the characters you are entering are encoded
in iso8859-2? I ask because your Email (that this is a reply to)
arrived here encoded in utf-8, not iso8859-2.
=20
> For example, with some label "=C5=A0=C4=8De=C5=BEege=C4=8Dkam".
^^^^^^^^^^^
These are UTF-8 characters as displayed here.
> What's worse: I figured out that if I try to typeset
> set label "c=C4=8Ds=C5=A1z=C5=BE"
> in terminal (I usually load files when I need gnuplot), even that
> doesn't work.
This sounds like a problem with your terminal environment,
independent of anything that might be wrong in gnuplot.
I am guessing that you are typing in UTF8, and then when you tell gnuplot
or any other application that it is to be interpreted as iso8859-*
it becomes misinterpreted as some multi-character gibberish.
> It might make sense to fix such trivial issues first, before doing
> patches to extend gnuplot to support other encodings.
I agree. But I think those fixes lie outside of gnuplot.
=20
> (People here keep asking me how to use accented letters. I always
> answer them that there is almost no suitable gnuplot terminal - PS
> doesn't support accented letters
The postscript terminal has supported latin2 and other ISO encodings
for a very long time now. UTF8 is very recent, however.
The svg and pdf terminals have always supported accented characters.
The new cairo-based terminals, both png and pdf, are natively
UTF8 with internal code to convert from other encodings.
SVG is also natively UTF8.
> bitmap terminals are out of question,=20
Why do you say that? Do you mean that you don't want to use
bitmap terminals for other reasons? The internationalization support
in the libgd terminals (png/gif/jpeg) comes directly from the
freetype2 library, which is probably the same library used by=20
the other programs on your system, and uses the same fonts as well.
So the support for accented characters through gnuplot's png/gif/jpeg
terminals should match what you see on the rest of the system.=20
caveat: I have only unsed gnuplot under linux/unix, and have
little idea what works or doesn't work under Windows.
=2D-=20
Ethan A Merritt
|