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

How to make use of the extended Latin character set

New Here ,
Jul 15, 2016 Jul 15, 2016

Copy link to clipboard

Copied

Dear all,

on page 783 of the red book 3.Ed extended (315-character) Latin character set is mentioned. How can it be made use of? I tried with the following program to make use of it. GS does not show the characters as Abreve etc. Using Acrobat distiller such characters are not produced either in the pdf file.

%!PS-Adobe-3.0

%%Pages: 1

%%Page: 1 1

/Times-Roman findfont

dup length dict begin {

    1 index /FID ne {

        def

    } {

        pop pop

    } ifelse

} forall

/Encoding

ISOLatin1Encoding         % isoarray

dup length array        % isoarray  newarray

0 1 255 {            % isoarray newarray n

    dup            % isoarray newarray n n

    3 index            % isoarray newarray n n isoarray

    exch get        % isoarray newarray n val

    2 index            % isoarray newarray n val newarray

    3 1 roll put        % isoarray newarray

} bind for

exch pop

dup 45 /hyphen put

dup 128 /Gbreve put

dup 129 /gbreve put

dup 130 /Idotaccent put

dup 131 /dotlessi put

dup 136 /quotedblleft put

dup 137 /quotedblright put

dup 138 /Scedilla put

dup 139 /scedilla put

dup 140 /Abreve put

dup 141 /abreve put

dup 142 /Tcommaaccent put

dup 143 /tcommaaccent put

def

currentdict

end

/Times-Roman-ISO exch definefont pop

/Times-Roman-ISO [30 0 0 30 0 0] selectfont

50 700 moveto

(Times-Roman \200\201\202\203) show

/Abreve glyphshow

(a) show

showpage

%%EOF

Any hints is appreciated. Thanks!

Weichao

TOPICS
Programming

Views

1.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

correct answers 1 Correct answer

LEGEND , Jul 19, 2016 Jul 19, 2016

I cannot see an error in the code so maybe the font you are using for Times-Roman does not contain these glyphs. On my system certainly it does not. For consistency I recommend you use an embedded font certain to contain CE characters.

Votes

Translate

Translate
LEGEND ,
Jul 19, 2016 Jul 19, 2016

Copy link to clipboard

Copied

I cannot see an error in the code so maybe the font you are using for Times-Roman does not contain these glyphs. On my system certainly it does not. For consistency I recommend you use an embedded font certain to contain CE characters.

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 ,
Jul 20, 2016 Jul 20, 2016

Copy link to clipboard

Copied

Many thanks for your explanation!

As I've mentioned in my original posting, I've tried to convert the ps file into pdf file using Acrobat distiller, since I thought, too, that it would be possible that the font in GS does not contain these letters. But the result is not better than displayed by GS. As it can be seen that the font Times-Roman is used, i.e. one of the 13 basic fonts in Acrobat, I cannot imagine why the letters cannot be displayed. If these letters depand on the font used, and even Acrobat basic fonts do not contain them, I don't understand the meaning of them being mentioned in the red book anyway.

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
LEGEND ,
Jul 20, 2016 Jul 20, 2016

Copy link to clipboard

Copied

LATEST

PostScript was conceived as a printer only language. Adobe's PostScript 3 licensed implementations included extended fonts, so this helped market the printers.

Once Acrobat included these fonts, but now it does not st all, only using some nominal equivalent found on your system. The world has moved on from the idea that one font's encoding will work for everyone. So use a locale specific font, embedded.

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