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

Home » Public Forums » archive » Re: using octal codes for special characters
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
Re: using octal codes for special characters [message #13837] Thu, 17 December 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Lothar (lothar@amor.met.fu-berlin.de) writes:

> The "bracketlefttp" is an expression I found in a PostScript-Reference
> book. It is the upper part of the "[" character, which can be combined
> with its counterpart "bracketleftbt" to a larger bracket. I want to use
> it for an axis label with a fractional expression. The octal code for
> the bracketlefttp is 351.

Ah, yes.

Since you know its octal code, the way you use it is like this:
First, go into the PostScript device and select your font and
IsoLatin encoding:

Set_Plot, 'PS'
Device, /IsoLatin1

To use this bracket in a string, you would type something like
this. Note that !9 is the default coding for the Symbol font
in PostScript, although you may have changed it. Note the
double quote in front of the octal number and the "B" to
force it to be a byte value. The !X reverts to whatever
font was in place before I switched to Symbol. Notice
that I *must* use hardware fonts. If I don't, I get the
integral sign instead of the bracket you are looking for.

XYOutS, 0.5, 0.5, Align=0.5, /Normal, Size=3, $
'!9' + String("351B) + '!X more text', Font=0

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: using octal codes for special characters [message #13842 is a reply to message #13837] Thu, 17 December 1998 00:00 Go to previous message
Lothar Schueller is currently offline  Lothar Schueller
Messages: 5
Registered: August 1996
Junior Member
David,

The "bracketlefttp" is an expression I found in a PostScript-Reference
book. It is the upper part of the "[" character, which can be combined
with its counterpart "bracketleftbt" to a larger bracket. I want to use
it for an axis label with a fractional expression. The octal code for
the bracketlefttp is 351.

Thanks

Lothar



David Fanning wrote:
>
> Lothar Schueller (lothar@amor.met.fu-berlin.de) writes:
>
>> I`d like to print large brackets in a PostScript file. I think the best
>> idea is to use the Symbol Font and the "bracketlefttp",
>> "bracketleftex",.... characters. How do I have access to them under IDL?
>> Is it possible to use the octal encoding?
>>
>> I dont know what to type on the keyboard. I use IDL 5.1 under SuSE Linux
>> 5.3
>
> I'd like to help you out here, Lother. I *love* octal programming
> and my very favorite newsgroup discussion of 1998 involved the
> octal coding of the angstrom symbol. :-)
>
> But I'm having some trouble discovering just what brackets you
> want to use here. Where did you come up with the name "bracketlefttp"?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Progamming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155

--
____________________________________________________________ ___________

Lothar Schueller

Institut fuer Weltraumwissenschaften
Freie Universitaet Berlin
Fabeckstr. 69
14195 Berlin

Tel.: +49 30 838 2375
Fax.: +49 30 832 8648
e-mail: lothar@amor.met.fu-berlin.de
http://userpage.fu-berlin.de/~lothars
------------------------------------------------------------ -----------
Re: using octal codes for special characters [message #13847 is a reply to message #13837] Wed, 16 December 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Lothar Schueller (lothar@amor.met.fu-berlin.de) writes:

> I`d like to print large brackets in a PostScript file. I think the best
> idea is to use the Symbol Font and the "bracketlefttp",
> "bracketleftex",.... characters. How do I have access to them under IDL?
> Is it possible to use the octal encoding?
>
> I dont know what to type on the keyboard. I use IDL 5.1 under SuSE Linux
> 5.3

I'd like to help you out here, Lother. I *love* octal programming
and my very favorite newsgroup discussion of 1998 involved the
octal coding of the angstrom symbol. :-)

But I'm having some trouble discovering just what brackets you
want to use here. Where did you come up with the name "bracketlefttp"?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PLOT,/ISOTROPIC bug..
Next Topic: Re: Clipping IDLgrPolyLine objects?

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

Current Time: Wed Oct 08 14:21:58 PDT 2025

Total time taken to generate the page: 0.00915 seconds