|
From: Allin C. <cot...@wf...> - 2008-01-19 19:46:55
|
On Sat, 19 Jan 2008, Mojca Miklavec wrote:
> can someone please help me with a minimal example how to use
> iso_8859_2 in the postscript terminal?
* Ensure the strings in your plot file really are encoded in
iso_8859_2.
* Put "set encoding iso_8859_2" into the file, before selecting
the postscript terminal.
* Make sure that gnuplot is able to find the PS prologue files it
needs (and of course, that the font you're using supports the
required characters).
* Depending on the font you're using, you might possibly have to
mess with the {no}adobeglyphnames option to the postscript
terminal.
This works for me.
> (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, bitmap terminals are out of
> question...
Not so. The png term (either using libgd or the new cairo-based
version) handles accented characters just fine. So does the
cairo-based PDF terminal. All of these use UTF-8 internally,
which is the only sane way to do it these days.
For the libgd version of the PNG driver you'll have to ensure your
input is encoded in UTF-8; for the cairo-based terminals (PNG and
PDF) you should be able to use your locale encoding (if it's not
UTF-8) and the conversion will be done for you. In the latter
case it may be necessary to specify the locale encoding via "set
encoding", but if your system is properly configured this
shouldn't be required.
Allin Cottrell
|