Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #718 > unrolled thread

How to get a copyright symbol

Started byCecil Westerhof <Cecil@decebal.nl>
First post2012-06-09 22:19 +0200
Last post2012-06-10 14:55 +0200
Articles 15 — 6 participants

Back to article view | Back to comp.lang.postscript


Contents

  How to get a copyright symbol Cecil Westerhof <Cecil@decebal.nl> - 2012-06-09 22:19 +0200
    Re: How to get a copyright symbol Helge Blischke <h.blischke@acm.org> - 2012-06-09 22:32 +0200
    Re: How to get a copyright symbol Helge Blischke <h.blischke@acm.org> - 2012-06-09 22:32 +0200
    Re: How to get a copyright symbol tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-06-10 01:12 -0400
      Re: How to get a copyright symbol gernot.hoffmann@hs-emden-leer.de - 2012-06-10 01:20 -0700
        Re: How to get a copyright symbol tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-06-10 05:08 -0400
        Re: How to get a copyright symbol Cecil Westerhof <Cecil@decebal.nl> - 2012-06-10 11:47 +0200
          Re: How to get a copyright symbol tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-06-11 02:20 -0400
            Re: How to get a copyright symbol Cecil Westerhof <Cecil@decebal.nl> - 2012-06-11 18:52 +0200
              Re: How to get a copyright symbol luser- -droog <mijoryx@yahoo.com> - 2012-06-11 10:08 -0700
                Re: How to get a copyright symbol ken <ken@spamcop.net> - 2012-06-12 07:44 +0100
                  Re: How to get a copyright symbol luser- -droog <mijoryx@yahoo.com> - 2012-06-13 16:26 -0700
    Re: How to get a copyright symbol gernot.hoffmann@hs-emden-leer.de - 2012-06-10 05:11 -0700
      Re: How to get a copyright symbol Cecil Westerhof <Cecil@decebal.nl> - 2012-06-10 14:42 +0200
        Re: How to get a copyright symbol Cecil Westerhof <Cecil@decebal.nl> - 2012-06-10 14:55 +0200

#718 — How to get a copyright symbol

FromCecil Westerhof <Cecil@decebal.nl>
Date2012-06-09 22:19 +0200
SubjectHow to get a copyright symbol
Message-ID<877gvgs0fo.fsf@Compaq.site>
For displaying a bullet I use \267. But I also want to display a
copyright symbol. How to do this? Also, is there a list with all the
symbols to use?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [next] | [standalone]


#720

FromHelge Blischke <h.blischke@acm.org>
Date2012-06-09 22:32 +0200
Message-ID<a3hq91Ft2tU1@mid.individual.net>
In reply to#718
Cecil Westerhof wrote:

> For displaying a bullet I use \267. But I also want to display a
> copyright symbol. How to do this? Also, is there a list with all the
> symbols to use?
> 

When using an ordinary font, you need to change the font's encoding to 
ISOLatin1Encoding .

See the PLRM for how to do this.

Helge

[toc] | [prev] | [next] | [standalone]


#721

FromHelge Blischke <h.blischke@acm.org>
Date2012-06-09 22:32 +0200
Message-ID<a3hq77FsmfU1@mid.individual.net>
In reply to#718
Cecil Westerhof wrote:

> For displaying a bullet I use \267. But I also want to display a
> copyright symbol. How to do this? Also, is there a list with all the
> symbols to use?
> 

When using an ordinary font, you need to change the font's encoding to 
ISOLatin1Encoding .

See the PLRM for how to do this.

Helge

[toc] | [prev] | [next] | [standalone]


#726

Fromtlvp <mPiOsUcB.EtLlLvEp@att.net>
Date2012-06-10 01:12 -0400
Message-ID<1hkvqq54ngzdv$.1ej49r5a0q940.dlg@40tude.net>
In reply to#718
On Sat, 09 Jun 2012 22:19:23 +0200, Cecil Westerhof wrote:

> For displaying a bullet I use \267. But I also want to display a
> copyright symbol. How to do this? Also, is there a list with all the
> symbols to use?

Search for COPYRIGHT on the page <http://www.utf8-chartable.de/> , or on
<http://www.utf8-chartable.de/unicode-utf8-table.pl?unicodeinhtml=dec> :

> U+00A9	©	c2 a9	&#169;	© 	COPYRIGHT SIGN

The decimal counterpart of the copyright hex code thus being that 169, I
guess you'd use \169 -- neet?

Cheers, -- tlvp

[ PS: search for [ unicode character table ] for more such lists. ]
-- 
Avant de repondre, jeter la poubelle, SVP.

[toc] | [prev] | [next] | [standalone]


#727

Fromgernot.hoffmann@hs-emden-leer.de
Date2012-06-10 01:20 -0700
Message-ID<34a9bc59-001e-404f-b98e-229efbf2fa9d@googlegroups.com>
In reply to#726
Am Sonntag, 10. Juni 2012 07:12:57 UTC+2 schrieb tlvp:
> On Sat, 09 Jun 2012 22:19:23 +0200, Cecil Westerhof wrote:
> 
> > For displaying a bullet I use \267. But I also want to display a
> > copyright symbol. How to do this? Also, is there a list with all the
> > symbols to use?
> 
> Search for COPYRIGHT on the page <http://www.utf8-chartable.de/> , or on
> <http://www.utf8-chartable.de/unicode-utf8-table.pl?unicodeinhtml=dec> :
> 
> > U+00A9	©	c2 a9	&#169;	© 	COPYRIGHT SIGN
> 
> The decimal counterpart of the copyright hex code thus being that 169, I
> guess you'd use \169 -- neet?
> 
> Cheers, -- tlvp
> 
> [ PS: search for [ unicode character table ] for more such lists. ]
> -- 
> Avant de repondre, jeter la poubelle, SVP.

This is a working PostScript example. It contains as well 
a link to a doc with octal code etc.

Best regards --Gernot Hoffmann

-------
%!PS-Adobe-3.0  EPSF-3.0
%%BoundingBox:  0 0 595 842
%%Creator: 	Gernot Hoffmann
%%Title: 	SpecialChar
%%CreationDate: June 10 /2012
% How to establish ISOLatin1Encoding

%PLRM Second Edition Example 5.6

% http://www.ascii-code.com/

/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
/mm {2.834646 mul} def % points per mm
/sx 100 mm def
/sy 100 mm def
sx sy scale
/Helvetica-ISOLatin1 findfont 0.05 scalefont setfont
0.1 0.9 moveto (a-Umlaut ä) show % without Octal code
0.1 0.8 moveto (o-Umlaut ö) show
0.1 0.7 moveto (u-Umlaut ü) show
0.1 0.6 moveto (u-Umlaut \374) show % with Octal code
0.1 0.5 moveto (sz ß) show
0.1 0.4 moveto (Copyright \251) show % with Octal code
0.1 0.3 moveto (Euro \200) show % with Octal code
% not all fonts contain the Euro-symbol
showpage
---------

[toc] | [prev] | [next] | [standalone]


#728

Fromtlvp <mPiOsUcB.EtLlLvEp@att.net>
Date2012-06-10 05:08 -0400
Message-ID<si54sz4fyr41$.ccqj0jjlrbko.dlg@40tude.net>
In reply to#727
On Sun, 10 Jun 2012 01:20:14 -0700 (PDT), gernot.hoffmann@hs-emden-leer.de
wrote:

> Am Sonntag, 10. Juni 2012 07:12:57 UTC+2 schrieb tlvp:
>> On Sat, 09 Jun 2012 22:19:23 +0200, Cecil Westerhof wrote:
>> 
>>> For displaying a bullet I use \267. But I also want to display a
>>> copyright symbol. How to do this? Also, is there a list with all the
>>> symbols to use?
>> 
>> Search for COPYRIGHT on the page <http://www.utf8-chartable.de/> , or on
>> <http://www.utf8-chartable.de/unicode-utf8-table.pl?unicodeinhtml=dec> :
>> 
>>> U+00A9	©	c2 a9	&#169;	© 	COPYRIGHT SIGN
>> 
>> The decimal counterpart of the copyright hex code thus being that 169, I
>> guess you'd use \169 -- neet?
>> 
>> Cheers, -- tlvp
>> 
>> [ PS: search for [ unicode character table ] for more such lists. ]
>> -- 
>> Avant de repondre, jeter la poubelle, SVP.
> 
> This is a working PostScript example. It contains as well 
> a link to a doc with octal code etc.
> 
> Best regards --Gernot Hoffmann
> 
> -------
> %!PS-Adobe-3.0  EPSF-3.0
> %%BoundingBox:  0 0 595 842
> %%Creator: 	Gernot Hoffmann
> %%Title: 	SpecialChar
> %%CreationDate: June 10 /2012
> % How to establish ISOLatin1Encoding
> 
> %PLRM Second Edition Example 5.6
> 
> % http://www.ascii-code.com/
> 
> /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
> /mm {2.834646 mul} def % points per mm
> /sx 100 mm def
> /sy 100 mm def
> sx sy scale
> /Helvetica-ISOLatin1 findfont 0.05 scalefont setfont
> 0.1 0.9 moveto (a-Umlaut ä) show % without Octal code
> 0.1 0.8 moveto (o-Umlaut ö) show
> 0.1 0.7 moveto (u-Umlaut ü) show
> 0.1 0.6 moveto (u-Umlaut \374) show % with Octal code
> 0.1 0.5 moveto (sz ß) show
> 0.1 0.4 moveto (Copyright \251) show % with Octal code
> 0.1 0.3 moveto (Euro \200) show % with Octal code
> % not all fonts contain the Euro-symbol
> showpage
> ---------

Ah-hah! So one needs *octal* code, eh? not hex, or decimal? Good to know!

The reference URL is welcome, too :-) .  Thank you.  Cheers, -- tlvp
-- 
Avant de repondre, jeter la poubelle, SVP.

[toc] | [prev] | [next] | [standalone]


#729

FromCecil Westerhof <Cecil@decebal.nl>
Date2012-06-10 11:47 +0200
Message-ID<878vfvqz1c.fsf@Compaq.site>
In reply to#727
Op zondag 10 jun 2012 10:20 CEST schreef gernot hoffmann:

> Am Sonntag, 10. Juni 2012 07:12:57 UTC+2 schrieb tlvp:
>> On Sat, 09 Jun 2012 22:19:23 +0200, Cecil Westerhof wrote:
>>
>>> For displaying a bullet I use \267. But I also want to display a
>>> copyright symbol. How to do this? Also, is there a list with all the
>>> symbols to use?
>>
>> Search for COPYRIGHT on the page <http://www.utf8-chartable.de/> , or on
>> <http://www.utf8-chartable.de/unicode-utf8-table.pl?unicodeinhtml=dec> :
>>
>>> U+00A9	©	c2 a9	&#169;	© 	COPYRIGHT SIGN
>>
>> The decimal counterpart of the copyright hex code thus being that 169, I
>> guess you'd use \169 -- neet?
>>
>> Cheers, -- tlvp
>>
>> [ PS: search for [ unicode character table ] for more such lists. ]
>> -- 
>> Avant de repondre, jeter la poubelle, SVP.
>
> This is a working PostScript example. It contains as well 
> a link to a doc with octal code etc.

By me it does not work for all the characters you used, except the
copyright symbol. But that was where I was after, so for the moment I
am happy. ;-}

By the way: with Helvetica bullet did not work, with Bookman it did
(and also the copyright symbol).

Is it possible to make it a procedure with takes the font-name? Then
you do not to rewrite for every font that you are going to use.

Why is ISOLatin1Encoding not the default encoding?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


#733

Fromtlvp <mPiOsUcB.EtLlLvEp@att.net>
Date2012-06-11 02:20 -0400
Message-ID<647r9gd2s35j.10v1q8u4adwj1$.dlg@40tude.net>
In reply to#729
On Sun, 10 Jun 2012 11:47:11 +0200, Cecil Westerhof wrote:

> Why is ISOLatin1Encoding not the default encoding?

Because there are too many standards :-) . ISOLatin1, ISOLatin2, UTF-8,
UTF-16, Windows-1252, MacRoman, IBM-850, Windows-1250, ISO-8859-*, ... .

"To each his own" :-) . Cheers, -- tlvp
-- 
Avant de repondre, jeter la poubelle, SVP.

[toc] | [prev] | [next] | [standalone]


#734

FromCecil Westerhof <Cecil@decebal.nl>
Date2012-06-11 18:52 +0200
Message-ID<87ehplpz8v.fsf@Compaq.site>
In reply to#733
Op maandag 11 jun 2012 08:20 CEST schreef tlvp:

> On Sun, 10 Jun 2012 11:47:11 +0200, Cecil Westerhof wrote:
>
>> Why is ISOLatin1Encoding not the default encoding?
>
> Because there are too many standards :-) . ISOLatin1, ISOLatin2, UTF-8,
> UTF-16, Windows-1252, MacRoman, IBM-850, Windows-1250, ISO-8859-*,
> ... .

You have a point.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


#735

Fromluser- -droog <mijoryx@yahoo.com>
Date2012-06-11 10:08 -0700
Message-ID<03d5b498-6a95-49a1-8590-438eadaa2f9e@8g2000yql.googlegroups.com>
In reply to#734
On Jun 11, 11:52 am, Cecil Westerhof <Ce...@decebal.nl> wrote:
> Op maandag 11 jun 2012 08:20 CEST schreef tlvp:
>
> > On Sun, 10 Jun 2012 11:47:11 +0200, Cecil Westerhof wrote:
>
> >> Why is ISOLatin1Encoding not the default encoding?
>
> > Because there are too many standards :-) . ISOLatin1, ISOLatin2, UTF-8,
> > UTF-16, Windows-1252, MacRoman, IBM-850, Windows-1250, ISO-8859-*,
> > ... .
>
> You have a point.

Is there an exitserver proc that will change the default
in an installation? It'd be nice not to have to do this
to all your fonts individually if'n they all need it done
to self.

--
grammarians be dammed!

[toc] | [prev] | [next] | [standalone]


#736

Fromken <ken@spamcop.net>
Date2012-06-12 07:44 +0100
Message-ID<MPG.2a4041238fc3f040989887@usenet.plus.net>
In reply to#735
In article <03d5b498-6a95-49a1-8590-438eadaa2f9e@
8g2000yql.googlegroups.com>, mijoryx@yahoo.com says...
> 
> On Jun 11, 11:52 am, Cecil Westerhof <Ce...@decebal.nl> wrote:
> > Op maandag 11 jun 2012 08:20 CEST schreef tlvp:
> >
> > > On Sun, 10 Jun 2012 11:47:11 +0200, Cecil Westerhof wrote:
> >
> > >> Why is ISOLatin1Encoding not the default encoding?
> >
> > > Because there are too many standards :-) . ISOLatin1, ISOLatin2, UTF-8,
> > > UTF-16, Windows-1252, MacRoman, IBM-850, Windows-1250, ISO-8859-*,
> > > ... .
> >
> > You have a point.
> 
> Is there an exitserver proc that will change the default
> in an installation? 

For type 1 and CFF fonts the default Encoding is defined in the font 
itself, so you can't change it without first loading the font.

Most fonts use StandardEncoding, but not all.

[toc] | [prev] | [next] | [standalone]


#741

Fromluser- -droog <mijoryx@yahoo.com>
Date2012-06-13 16:26 -0700
Message-ID<26d78324-5bcc-427f-9356-69a9d850105a@h9g2000yqi.googlegroups.com>
In reply to#736
On Jun 12, 1:44 am, ken <k...@spamcop.net> wrote:
> In article <03d5b498-6a95-49a1-8590-438eadaa2f9e@
> 8g2000yql.googlegroups.com>, mijo...@yahoo.com says...
>
>
>
>
>
> > On Jun 11, 11:52 am, Cecil Westerhof <Ce...@decebal.nl> wrote:
> > > Op maandag 11 jun 2012 08:20 CEST schreef tlvp:
>
> > > > On Sun, 10 Jun 2012 11:47:11 +0200, Cecil Westerhof wrote:
>
> > > >> Why is ISOLatin1Encoding not the default encoding?
>
> > > > Because there are too many standards :-) . ISOLatin1, ISOLatin2, UTF-8,
> > > > UTF-16, Windows-1252, MacRoman, IBM-850, Windows-1250, ISO-8859-*,
> > > > ... .
>
> > > You have a point.
>
> > Is there an exitserver proc that will change the default
> > in an installation?
>
> For type 1 and CFF fonts the default Encoding is defined in the font
> itself, so you can't change it without first loading the font.
>
> Most fonts use StandardEncoding, but not all.

So I guess the most convenient way would be to specialize
and overload 'findfont' in one's library.

[toc] | [prev] | [next] | [standalone]


#730

Fromgernot.hoffmann@hs-emden-leer.de
Date2012-06-10 05:11 -0700
Message-ID<b65efe66-1f32-4b6c-8ce5-009bb9186329@googlegroups.com>
In reply to#718
On Saturday, June 9, 2012 10:19:23 PM UTC+2, Cecil Westerhof wrote:
> For displaying a bullet I use \267. But I also want to display a
> copyright symbol. How to do this? Also, is there a list with all the
> symbols to use?
> 
> -- 
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Hopefully Helge Blischke will answer your questions.
He's one of the experts here. I'm only a 'user', programming
PostScript by simple means: 
http://www.fho-emden.de/~hoffmann/pstutor22112002.pdf
Here you may find some examples for your exercises.

Concerning the fonts:
Under Windows you'll find the program charmap.exe,
which shows you all glyphs in a font and allows to copy them
for other (interactive) applications. 
Please check first, whether the intended glyph is available. 

Best regards --Gernot Hoffmann

[toc] | [prev] | [next] | [standalone]


#731

FromCecil Westerhof <Cecil@decebal.nl>
Date2012-06-10 14:42 +0200
Message-ID<871ulnqqwm.fsf@Compaq.site>
In reply to#730
Op zondag 10 jun 2012 14:11 CEST schreef gernot hoffmann:

> PostScript by simple means: 
> http://www.fho-emden.de/~hoffmann/pstutor22112002.pdf
> Here you may find some examples for your exercises.

Thanks. I will look into it.


> Concerning the fonts:
> Under Windows you'll find the program charmap.exe,
> which shows you all glyphs in a font and allows to copy them
> for other (interactive) applications. 
> Please check first, whether the intended glyph is available. 

I use Linux, but I will look if there is a similar program.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


#732

FromCecil Westerhof <Cecil@decebal.nl>
Date2012-06-10 14:55 +0200
Message-ID<87wr3fpbqy.fsf@Compaq.site>
In reply to#731
Op zondag 10 jun 2012 14:42 CEST schreef Cecil Westerhof:

>> Concerning the fonts:
>> Under Windows you'll find the program charmap.exe,
>> which shows you all glyphs in a font and allows to copy them
>> for other (interactive) applications. 
>> Please check first, whether the intended glyph is available. 
>
> I use Linux, but I will look if there is a similar program.

There is kcharselect and gucharmap. There is also a Java application,
which should work on 'all' systems.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.postscript


csiph-web