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 
Return to the default flat view Create a new topic Submit Reply
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!!!!
[Message index]
 
Read Message
Read Message
Previous Topic: MAP_SET(IMAGE) for PS?
Next Topic: Disabling the setenv command

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

Current Time: Sun Oct 12 13:57:39 PDT 2025

Total time taken to generate the page: 1.01883 seconds