MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Accents in Postscript

  • To: mathgroup at
  • Subject: [mg14193] Re: Accents in Postscript
  • From: paulh (P.J. Hinton)
  • Date: Wed, 7 Oct 1998 03:00:31 -0400
  • Organization: Wolfram Research, Inc.
  • References: <6uue8i$>
  • Sender: owner-wri-mathgroup at

In article <6uue8i$9ub at>, you write:

|> when producing a PostScript file from a graphics cell (using Display
for |> example), I have some trouble with accentuated characters,
although |> $CharacterEncoding has the value "ISO8859-1". Has anybody
already found |> (and solved) this problem?

I suspect that the PostScript code being generated does not include
instructions to reencode the font so that eight-bit characters can be
used.  Our developers are aware of the problem and are planning to fix
it for a future release.

The workaround for this is to add a block of code to the EPS file that
defines an ISO 8859-1 reencoding function and then invoke it to create
a pseudofont (my terminology here, not Adobe's). 

Say for example, you're using Courier-Bold. The fake font would have a
name like ISOCourier-Bold.  You then run a global search-and-replace 
operation in a text editor, replacing "Courier-Bold" with 

You can find information that documents this as well as some code
examples at the following URLs:

1) Adobe Technical Report #5075
   Supporting Fonts in the PostScript Language Environment

This is a useful resource because it make it clear that the application
generating the PostScript should be able to reencode the font if
accented characters are needed.  See Section 9.5 for the details.

2) comp.lang.postscript FAQ question 4.7:

This pointed me to a PostScript code snippet that defined the reencoding
functions that set things right in your file.

3) Font reencoding sample:

Shows how to get accented characters with a short sentence.  Most of the
code for a workaround can be lifted from this page and pasted right
into  an EPS file.

P.J. Hinton	
Mathematica Programming Group		paulh at Wolfram Research,
Inc. Disclaimer: Opinions expressed
herein are those of the author alone.

  • Next by Date: How to control the default plot size?
  • Previous by thread: Re: PROBLEM ENTERING 2D USING CTRL
  • Next by thread: How to control the default plot size?