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

PC Encoding (why some doesn't work?)

21 views
Skip to first unread message

ne...@zzo38computer.org.invalid

unread,
Jul 28, 2021, 7:21:17 PM7/28/21
to
I made a file with the PC encoding:

/PCEncoding [
%00
/.notdef /smileface /invsmileface /heart /diamond /club /spade /bullet
/invbullet /circle /invcircle /mars /venus /musicalnote /musicalnotedbl /sun
%10
/triagrt /triaglf /arrowupdn /exclamdbl /paragraph /section /filledrect /arrowupdnbse
/arrowup /arrowdown /arrowright /arrowleft /orthogonal /arrowboth /triagup /triagdn
%20
/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quotesingle
/parenleft /parenright /asterisk /plus /comma /minus /period /slash
%30
/zero /one /two /three /four /five /six /seven
/eight /nine /colon /semicolon /less /equal /greater /question
%40
/at /A /B /C /D /E /F /G
/H /I /J /K /L /M /N /O
%50
/P /Q /R /S /T /U /V /W
/X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
%60
/grave /a /b /c /d /e /f /g
/h /i /j /k /l /m /n /o
%70
/p /q /r /s /t /u /v /w
/x /y /z /braceleft /bar /braceright /asciitilde /house
%80
/Ccedilla /udieresis /eacute /acircumflex /adieresis /agrave /aring /ccedilla
/ecircumflex /edieresis /egrave /idieresis /icircumflex /igrave /Adieresis /Aring
%90
/Eacute /ae /AE /ocircumflex /odieresis /ograve /ucircumflex /ugrave
/ydieresis /Odieresis /Udieresis /cent /sterling /yen /peseta /florin
%A0
/aacute /iacute /oacute /uacute /ntilde /Ntilde /ordfeminine /ordmasculine
/questiondown /logicalnot /logicalnotreversed /onehalf /onequarter /exclamdown /guillemotleft /guillemotright
%B0
/ltshade /shade /dkshade /SF110000 /SF090000 /SF190000 /SF200000 /SF210000
/SF220000 /SF230000 /SF240000 /SF250000 /SF260000 /SF270000 /SF280000 /SF030000
%C0
/SF020000 /SF070000 /SF060000 /SF080000 /SF100000 /SF050000 /SF360000 /SF370000
/SF380000 /SF390000 /SF400000 /SF410000 /SF420000 /SF430000 /SF440000 /SF450000
%D0
/SF460000 /SF470000 /SF480000 /SF490000 /SF500000 /SF510000 /SF520000 /SF530000
/SF540000 /SF040000 /SF010000 /block /dnblock /lfblock /rtblock /upblock
%E0
/alpha /beta /Gamma /pi /Sigma /sigma /mu /tau
/Phi /Theta /Omega /delta /infinity /phi /element /intersection
%F0
/equivalence /plusminus /greaterequal /lessequal /integraltop /integralbottom /divide /approxequal
/degree /bulletoperator /middot /radical /nsuperior /twosuperior /blacksquare /nbspace
] readonly /Encoding defineresource pop

However, some characters doesn't work:
/venus /Omega /bulletoperator /middot /blacksquare

Why it doesn't work? Did I put it in wrong, or is it not implemented in
the font? The font I used is "NimbusMonoPS-Regular" font in Ghostscript,
which is aliased as "Courier".

--
Don't laugh at the moon when it is day time in France.

ken

unread,
Jul 29, 2021, 2:51:08 AM7/29/21
to
In article <162751418...@zzo38computer.org>,
ne...@zzo38computer.org.invalid says...

> I made a file with the PC encoding:
...
> However, some characters doesn't work:
> /venus /Omega /bulletoperator /middot /blacksquare
>
> Why it doesn't work?

Have you checked the font to see if it contains glyph descriptiosn
identified with those names ?

> Did I put it in wrong, or is it not implemented in
> the font?

Since these are unusual glyphs, almost certainly the font doesn't
contain them.

ne...@zzo38computer.org.invalid

unread,
Jul 29, 2021, 12:13:15 PM7/29/21
to
ken <k...@spamcop.net> wrote:
> Have you checked the font to see if it contains glyph descriptiosn
> identified with those names ?

It look like it doesn't include these names. (All of the other glyphs I
specified in the PCEncoding are working, though.)

> Since these are unusual glyphs, almost certainly the font doesn't
> contain them.

Would you be able to tell me then what is the proper glyph names for PC
Encoding? If they are the glyphs that this font does not include, which
font does have it, and does Ghostscript include it? (And if not, should
Ghostscript include it?)

Rod Dorman

unread,
Jul 29, 2021, 2:44:03 PM7/29/21
to
In article <162757405...@zzo38computer.org>,
What do you mean by "PC encoding"?

If you want to see what glyph names a font has defined look in its
.AFM (Adobe Font Metrics) file

--
-- Rod --
rodd(at)polylogics(dot)com

ken

unread,
Jul 30, 2021, 2:53:32 AM7/30/21
to
In article <162757405...@zzo38computer.org>,
ne...@zzo38computer.org.invalid says...

> It look like it doesn't include these names.

Well, there you go then.

> Would you be able to tell me then what is the proper glyph names for
PC
> Encoding?

As Rod says, what exactly do you mean by 'PC Encoding' ?


> If they are the glyphs that this font does not include, which
> font does have it,

I have no clue. If you want to use those glyphs then it's up to you to
source a font which includes them.


> and does Ghostscript include it?

You say yourself that the font (not Ghostsceript, Ghostscript is not a
font) does not include these.


> (And if not, should Ghostscript include it?)

Fonts are not required to include every glyph shape known to mankind, so
no there is no reason why the fonts used by Ghostscript should include
them.

You can, of course, use a different font.

ne...@zzo38computer.org.invalid

unread,
Jul 30, 2021, 12:42:48 PM7/30/21
to
ken <k...@spamcop.net> wrote:
> > Would you be able to tell me then what is the proper glyph names for
> > PC Encoding?
>
> As Rod says, what exactly do you mean by 'PC Encoding' ?

I mean the characters of IBM PC.

Rod Dorman

unread,
Jul 30, 2021, 1:49:58 PM7/30/21
to
In article <162766295...@zzo38computer.org>,
<ne...@zzo38computer.org.invalid> wrote:
>ken <k...@spamcop.net> wrote:
>> > Would you be able to tell me then what is the proper glyph names for
>> > PC Encoding?
>>
>> As Rod says, what exactly do you mean by 'PC Encoding' ?
>
>I mean the characters of IBM PC.

With which code page?

ne...@zzo38computer.org.invalid

unread,
Jul 30, 2021, 4:44:58 PM7/30/21
to
ro...@panix.com (Rod Dorman) wrote:
>
> In article <162766295...@zzo38computer.org>,
> <ne...@zzo38computer.org.invalid> wrote:
> >ken <k...@spamcop.net> wrote:
> >> > Would you be able to tell me then what is the proper glyph names for
> >> > PC Encoding?
> >>
> >> As Rod says, what exactly do you mean by 'PC Encoding' ?
> >
> >I mean the characters of IBM PC.
>
> With which code page?

Code page 437.

John Reiser

unread,
Jul 31, 2021, 1:30:17 PM7/31/21
to
>>>>> Would you be able to tell me then what is the proper glyph names for
>>>>> PC Encoding?
>>>>
>>>> As Rod says, what exactly do you mean by 'PC Encoding' ?
>>>
>>> I mean the characters of IBM PC.
>>
>> With which code page?
>
> Code page 437.

The page https://en.wikipedia.org/wiki/Code_page_437
lists corresponding Unicode code points (numeric values, in hex.)
Pages such as https://unicodemap.org/details/0x255D/index.html
give names, such as "Double Up and Left" for 0xBC ==> 0x255D.

luser droog

unread,
Aug 5, 2021, 2:07:08 AM8/5/21
to
0 new messages