using octal codes for special characters [message #13850] |
Wed, 16 December 1998 00:00  |
Lothar Schueller
Messages: 5 Registered: August 1996
|
Junior Member |
|
|
Dear all,
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
Lothar
____________________________________________________________ ___________
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 #13942 is a reply to message #13850] |
Tue, 22 December 1998 00:00  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
davidf@dfanning.com (David Fanning) writes:
>
> Craig (Scrooge) Markwardt (craigmnet@astrog.physics.wisc.edu) writes:
>
>> Soapbox: May I recommend that *nobody* use double-quote octal codes in
>> their new IDL programs. They are abominable to look at, can be
>> ambiguous, and are confusing. The fact that the second quote never
>> appears is particularly insidious.
>>
>> The "single-quote" form is not much better, but at least it is
>> consistent in the sense that there are two matching quote characters.
>>
>> These two expressions perform the same operation:
>>
>> a = '355'OB ; SINGLE QUOTE FORM
>> a = "355b ; DOUBLE QUOTE FORM
>>
>> I believe the first form should always be preferred.
>
> This takes *all* the fun out of adding octal codes to
> your programs. I'm *completely* against it. :^)
>
> And a Merry Christmas to you, Sir!
Bah! Humbug!
--
------------------------------------------------------------ --------------
Craig "S" Markwardt, Ph.D. EMAIL: craigmnet@astrog.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: using octal codes for special characters [message #13946 is a reply to message #13850] |
Mon, 21 December 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Craig (Scrooge) Markwardt (craigmnet@astrog.physics.wisc.edu) writes:
> Soapbox: May I recommend that *nobody* use double-quote octal codes in
> their new IDL programs. They are abominable to look at, can be
> ambiguous, and are confusing. The fact that the second quote never
> appears is particularly insidious.
>
> The "single-quote" form is not much better, but at least it is
> consistent in the sense that there are two matching quote characters.
>
> These two expressions perform the same operation:
>
> a = '355'OB ; SINGLE QUOTE FORM
> a = "355b ; DOUBLE QUOTE FORM
>
> I believe the first form should always be preferred.
This takes *all* the fun out of adding octal codes to
your programs. I'm *completely* against it. :^)
And a Merry Christmas to you, Sir!
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 #13948 is a reply to message #13850] |
Mon, 21 December 1998 00:00  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
davidf@dfanning.com (David Fanning) writes:
>
> ... Note the
> double quote in front of the octal number and the "B" to
> force it to be a byte value.
Soapbox: May I recommend that *nobody* use double-quote octal codes in
their new IDL programs. They are abominable to look at, can be
ambiguous, and are confusing. The fact that the second quote never
appears is particularly insidious.
The "single-quote" form is not much better, but at least it is
consistent in the sense that there are two matching quote characters.
These two expressions perform the same operation:
a = '355'OB ; SINGLE QUOTE FORM
a = "355b ; DOUBLE QUOTE FORM
I believe the first form should always be preferred.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@astrog.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|