comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Angstrom symbol under IDL 2.x - FAQ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Angstrom symbol under IDL 2.x - FAQ? [message #1221] Wed, 23 June 1993 09:01 Go to next message
fireman is currently offline  fireman
Messages: 49
Registered: August 1991
Member
Hello, IDL users -

In IDL version 1, I had worked out a Hershey character string to show
the Angstrom symbol:
angstrom = '!S!U! !M%!RA!N'

This uses the positioning command for a half-space, '! ', which does not exist
in IDL 2.x and higher versions. We are currently using IDL 2.4.0, and so
cannot access the ISO Latin ASCII character set. Has anyone worked out the
Hershey string for the Angstrom symbol under IDL 2.x?

Thanks,
__.
/ | , , , , , ,_ Gwyn F. Fireman
(__/|/(_(_)(_/|/| |_/ Computer Sciences Corporation
/| /| IUEGTC::FIREMAN IUE Observatory
(_/ (_/ fireman@iuegtc.dnet.nasa.gov (301) 794-1560
Re: Angstrom symbol [message #1303 is a reply to message #1221] Wed, 15 September 1993 11:40 Go to previous message
ryba is currently offline  ryba
Messages: 33
Registered: October 1992
Member
In article <CDE3r0.ow@news.Hawaii.Edu>, egami@newton.ifa.hawaii.edu (Eiichi Egami) writes:
|>
|> I'm wondering if there's a way to print out an angstrom symbol in a
|> title of a plot with PostScript font. I know this is possible with
|> X-window fonts, because the symbol is encoded with an octal number,
|> which can be found by using "xfd". However, this symbol is not
|> explicitly encoded in PostScript, so I don't know how to access it
|> even though my printer has the font.
|>
|> Currently, I'm using the following sequence of positioning commands
|> to construct the symbol with PostScript font:
|>
|> "!SA!R !A!9\260!N"
|>
|> However, this still looks awkward.
|>
|> Is there a way to print out this symbol directly in PostScript?
|> Someone might have asked this question already, but I couldn't
|> find any answer in the FAQ. I would appreciate any suggestions.
|> Thanks in advance.

Well, the problem is the Angstrom symbol, known as Aring in the PostScript
Reference Manual, is not in the default encoding. According to the manual,
you can provide a font encoding string to put it in a currently "empty"
place such as \201. I'm not a PostScript guru so I can't be sure, but
this might work:

% Example nondefault encoding
/DiacriticEncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl
/numbersign /dollar /percent /ampersand /quotesingle /parenleft
/parenright /asterisk /plus /comma /hyphen /period /slash /zero /one
/two /three /four /five /six /seven /eight /nine /colon /semicolon
/less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K
/L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash
/bracketright /asciicircum /underscore /grave /a /b /c /d /e /f /g /h
/i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar
/braceright /asciitilde /.notdef /Adieresis /Aring /Ccedilla /Eacute
/Ntilde /Odieresis /Udieresis /aacute /agrave /acircumflex /adieresis
/atilde /aring /ccedilla /eacute /egrave /ecircumflex /edieresis
/iacute /igrave /icircumflex /idieresis /ntilde /oacute /ograve
/ocircumflex /odieresis /otilde /uacute /ugrave /ucircumflex
/udieresis /dagger /.notdef /cent /sterling /section /bullet
/paragraph /germandbls /registered /copyright /trademark /acute
/dieresis /.notdef /AE /Oslash /.notdef /.notdef /.notdef /.notdef
/yen /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/ordfeminine /ordmasculine /.notdef /ae /oslash /questiondown
/exclamdown /logicalnot /.notdef /florin /.notdef /.notdef
/guillemotleft /guillemotright /ellipsis /.notdef /Agrave /Atilde
/Otilde /OE /oe /endash /emdash /quotedblleft /quotedblright
/quoteleft /quoteright /.notdef /.notdef /ydieresis /Ydieresis
/fraction /currency /guilsinglleft /guilsinglright /fi /fl /daggerdbl
/periodcentered /quotesinglbase /quotedblbase /perthousand
/Acircumflex /Ecircumflex /Aacute /Edieresis /Egrave /Iacute
/Icircumflex /Idieresis /Igrave /Oacute /Ocircumflex /.notdef /Ograve
/Uacute /Ucircumflex /Ugrave /dotlessi /circumflex /tilde /macron
/breve /dotaccent /ring /cedilla /hungarumlaut /ogonek /caron
] def

% How to activate it:
/Encoding DiacriticEncoding def

% To deactivate:
/Encoding StandardEncoding def

To put this into the IDL PostScript file, you would use

device,output=blah

for each line (I think). But, shouldn't you be using nanometers instead???
I mean, Angstroms aren't strictly SI units.

--
Dr. Marty Ryba | Generation X:
| Too young to be cynical,
ryba@ll.mit.edu | too old to be optimistic.
Of course nothing I say here is official policy!!!!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MAP_SET(IMAGE) for PS?
Next Topic: Disabling the setenv command

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:45 PDT 2025

Total time taken to generate the page: 0.00280 seconds