• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Printing Swedish Character set with PS

New Here ,
Oct 29, 2009 Oct 29, 2009

Copy link to clipboard

Copied

Hi!

I have program that today generates PCL code for printing. The data to print is stored as 7-bit ASCII. When printing PCL I use the "Symbol Set Selection" parameter ESC(0S to tell the printer to use the "PCL ISO 11 Swedish" "Symbol set" to get the correct Swedish characters (åäöÅÄÖ) printed.

PCL ISO 11 Symbol set

I now want to write a PS code instead and wondering if there is any way to do the same with PS as with PCL.

Kind regards Daniel

TOPICS
Programming

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 29, 2009 Oct 29, 2009

Copy link to clipboard

Copied

You need to reencode the fonts you are using, i. e. changing the encoding vector (which usually is,

for Type1 fonts, StandardEncoding) to ISOLatin1Encoding. An exsample how to do this

is listed in the PLRM (PostScript Language Reference Manual, 2nd or 3rd ed.).

Helge

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 29, 2009 Oct 29, 2009

Copy link to clipboard

Copied

Best Helge!

Many thanks for the quick answer, I have looked thought the PostScript LANGUAGE REFERENCE third edition: http://www.adobe.com/devnet/postscript/pdfs/PLRM.pdf

But don't find any direct sample, could you pleas point me to the right page.

Kind regards Daniel

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 29, 2009 Oct 29, 2009

Copy link to clipboard

Copied

PLRM 3rd ed. Chapter 5.9.1, Changing the Encoding Vector: (p. 349)

Example 5.8

/Helvetica findfont

dup length dict begin

{ 1 index /FID ne

{def}

{pop pop}

ifelse

} forall

/Encoding ISOLatin1Encoding def

currentdict

end

/Helvetica-ISOLatin1 exch definefont pop

Helge

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 29, 2009 Oct 29, 2009

Copy link to clipboard

Copied

Best Helge!

I missed that section, I didn't understand it...

What I want is that:

50 700 moveto (` ~ } { | @ ^ } { |) show

should produce the out put : é ü å ä ö É Ü Å Ä Ö

eacute/udieresis/aring/adieresis/odieresis/Eacute/Udieresis/Aring/Adieresis/Odieresis

#233;ü#229;#228;#246;#201;#220;#197;#196;Ö

Many regards Daniel

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 31, 2009 Oct 31, 2009

Copy link to clipboard

Copied

LATEST

PostScript has no such thing as a "select character set" operator, but you may build up a procedure

which "emulates" just this feature. But this is a task which requires quite a bit knowledge on

PostScript programming,

Such a procedure would need to keep track of all fonts currently in use by the current job in order

to be able to change the encoding for all these fonts on request.

I think making such a procedure is a bit more effort than I can afford as a "user to user" help

message.

Helge

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines