Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

postscript degrees symbol {\260}

5,717 views
Skip to first unread message

bryan

unread,
Oct 28, 2009, 12:31:19 PM10/28/09
to
[ gnuplot 4.2.6, mac osx 10.4.11, ]
[ ImageMagick 6.1.8 ('convert') ]
[ Preview 3.0.9 (409) ]
[ Adobe Acrobat 8.1.7 ]

trying to understand ps_guide.ps, starting with the 'degree' symbol
(e.g. for 20 degrees Celsius) by using {\260} and {\312} character
codes as found in the "Symbol" column.

{\260} puts the the 'degree' symbol in the xwindow plot, but not in
the enhanced postscript output w/ default Helvetica... (Helvetica is
default, right? ps_guide.ps is Times-Roman...)

{\312} appears "weird" in the xwindow, but its fine in postscript
output.

symbols like {/Symbol D} for Greek Delta are OK.

so it seems there is something out of place -- where might i start to
understand this? i converted ps_guide.ps with Preview, and the .pdf
appears to be consistent between the two.

-bryan

sfeam

unread,
Oct 28, 2009, 2:58:43 PM10/28/09
to
bryan wrote:

> [ gnuplot 4.2.6, mac osx 10.4.11, ]
> [ ImageMagick 6.1.8 ('convert') ]

Why do you need to convert?
Aren't you generating PostScript output to begin with?

> [ Preview 3.0.9 (409) ]
> [ Adobe Acrobat 8.1.7 ]
>
> trying to understand ps_guide.ps, starting with the 'degree' symbol
> (e.g. for 20 degrees Celsius) by using {\260} and {\312} character
> codes as found in the "Symbol" column.

\260 is a degree sign in the Symbol encoding

> {\260} puts the the 'degree' symbol in the xwindow plot, but not in
> the enhanced postscript output w/ default Helvetica... (Helvetica is
> default, right? ps_guide.ps is Times-Roman...)

\260 is also the degree sign in the latin1 encoding (ISO 8859-1).
But this is not the default for Adobe fonts Helvetica and Times-Roman.
You can add to your gnuplot script:
set encoding iso_8859_1

> {\312} appears "weird" in the xwindow, but its fine in postscript
> output.

Correct. That is the Adobe native encoding, not used by anyone else
including x11.

> symbols like {/Symbol D} for Greek Delta are OK.

The Symbol encoding is different yet again. The PostScript language
encoding options are an unfortunate legacy that predates the current
common standards.


> so it seems there is something out of place -- where might i start to
> understand this? i converted ps_guide.ps with Preview, and the .pdf
> appears to be consistent between the two.

The second page of ps_guide.ps does show this.
The "T" column is the Adobe native encoding.
The "S" column is the Adobe symbol encoding.
The "E" column is iso_8859_1.

For compatibility with other output modes (i.e. not PostScript) you
are best off using iso_8859_1 where possible. Gnuplot's PostScript
driver knows to temporarily switch to the Symbol encoding if you are
using the Adobe Symbolfont. That is unfortunately not compatible with
other output modes that use non-Adobe symbol fonts.


bryan

unread,
Oct 28, 2009, 6:19:30 PM10/28/09
to
things make more sense now, thanks.

'convert' was mostly for-my-information, so i don't lose track of
things. yes, .ps is written perfectly well.

-bryan

bryan

unread,
Oct 29, 2009, 4:19:09 PM10/29/09
to
a bit more as a follow up :

'help set terminal postscript enhanced' has more on this too.

0 new messages