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

Home » Public Forums » archive » Phoenician aleph
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
Phoenician aleph [message #87517] Tue, 11 February 2014 16:42 Go to next message
kdpenner is currently offline  kdpenner
Messages: 6
Registered: May 2013
Junior Member
Hi everyone,

I'm using the Phoenician aleph as a symbol in some text, and I'd like to use it on the x axis label of a PostScript plot. I can find the Hebrew aleph, but the Phoenician one looks quite different. It's Unicode 10900, which I can't get to work. Any ideas?

Thanks,

Kyle
Re: Phoenician aleph [message #87518 is a reply to message #87517] Tue, 11 February 2014 19:40 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Tuesday, February 11, 2014 5:42:09 PM UTC-7, kdpe...@gmail.com wrote:
> Hi everyone,
>
>
>
> I'm using the Phoenician aleph as a symbol in some text, and I'd like to use it on the x axis label of a PostScript plot. I can find the Hebrew aleph, but the Phoenician one looks quite different. It's Unicode 10900, which I can't get to work. Any ideas?
>
>
>
> Thanks,
>
>
>
> Kyle

Hi Kyle,

I think you might be out of luck, unless someone has a brilliant workaround. Right now, IDL's graphics only handle 16-bit Unicode characters (up to $FFFF). Here's the error I get:

w = WINDOW()
; Works fine
t = TEXT(0.5, 0.5, "$\U(266A,266C) \Pluto's really small \U(266B)$")
; Doesn't work
t = TEXT(0.5, 0.5, "$\U(10900)$", font_size=48)
% IDLGRSRCDEST::GETTEXTDIMENSIONS: Error using Hershey characters: !Z hexadecimal value too large.
% IDLGRMODEL::DRAW: Error using Hershey characters: !Z hexadecimal value too large.

-Chris
ExelisVIS
Re: Phoenician aleph [message #87519 is a reply to message #87517] Wed, 12 February 2014 04:44 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Tue, 11 Feb 2014 16:42:09 -0800 (PST), kdpenner@gmail.com wrote:

> I'm using the Phoenician aleph as a symbol in some text, and I'd like to use it on the x axis label of a PostScript plot. I can find the Hebrew aleph, but the Phoenician one looks quite different. It's Unicode 10900, which I can't get to work. Any ideas?

For Hershey Fonts (i.e. !P.FONT = -1), the following workaround may
help:

aleph='!3!s<!r!i !nl!d !n!x'
erase
xyouts,.1,.1,size=5,'Text '+aleph+' Text'

It's not beautiful, but maybe readable.

Cheers, Heinz
Re: Phoenician aleph [message #87524 is a reply to message #87519] Wed, 12 February 2014 11:25 Go to previous messageGo to next message
kdpenner is currently offline  kdpenner
Messages: 6
Registered: May 2013
Junior Member
Chris, that's the same error I got---was wondering what's up. Thanks for the explanation.

Heinz, thanks! The following also works (though it's not more pretty, unfortunately), if anyone wants device fonts:

!p.font=0
set_plot, 'ps'
data=[1,2,3]
aleph='!s<!r!d !n|!d !n'
device, file='idl.ps'
plot, data, data, xtitle=aleph
device, /close
Re: Phoenician aleph [message #87539 is a reply to message #87524] Fri, 14 February 2014 07:48 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, February 12, 2014 12:25:16 PM UTC-7, kdpe...@gmail.com wrote:
> Chris, that's the same error I got---was wondering what's up. Thanks for the explanation.
>
>
>
> Heinz, thanks! The following also works (though it's not more pretty, unfortunately), if anyone wants device fonts:
>
>
>
> !p.font=0
>
> set_plot, 'ps'
>
> data=[1,2,3]
>
> aleph='!s<!r!d !n|!d !n'
>
> device, file='idl.ps'
>
> plot, data, data, xtitle=aleph
>
> device, /close

Hi Kyle,
Do you have a font that contains this character? I've hacked up IDL to get past the error, and I want to see if I can actually get the character on the screen...
-Chris
Re: Phoenician aleph [message #87540 is a reply to message #87539] Fri, 14 February 2014 07:55 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, February 14, 2014 8:48:43 AM UTC-7, Chris Torrence wrote:
> On Wednesday, February 12, 2014 12:25:16 PM UTC-7, kdpe...@gmail.com wrote:
>
>> Chris, that's the same error I got---was wondering what's up. Thanks for the explanation.
>
>>
>
>>
>
>>
>
>> Heinz, thanks! The following also works (though it's not more pretty, unfortunately), if anyone wants device fonts:
>
>>
>
>>
>
>>
>
>> !p.font=0
>
>>
>
>> set_plot, 'ps'
>
>>
>
>> data=[1,2,3]
>
>>
>
>> aleph='!s<!r!d !n|!d !n'
>
>>
>
>> device, file='idl.ps'
>
>>
>
>> plot, data, data, xtitle=aleph
>
>>
>
>> device, /close
>
>
>
> Hi Kyle,
>
> Do you have a font that contains this character? I've hacked up IDL to get past the error, and I want to see if I can actually get the character on the screen...
>
> -Chris

In the meantime, you could probably just download a font that had all of those characters in the "normal" A-Z positions:
http://29letters.wordpress.com/2007/07/05/fniqiya-type/
-Chris
Re: Phoenician aleph [message #87541 is a reply to message #87539] Fri, 14 February 2014 07:56 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, February 14, 2014 8:48:43 AM UTC-7, Chris Torrence wrote:
> On Wednesday, February 12, 2014 12:25:16 PM UTC-7, kdpe...@gmail.com wrote:
>
>> Chris, that's the same error I got---was wondering what's up. Thanks for the explanation.
>
>>
>
>>
>
>>
>
>> Heinz, thanks! The following also works (though it's not more pretty, unfortunately), if anyone wants device fonts:
>
>>
>
>>
>
>>
>
>> !p.font=0
>
>>
>
>> set_plot, 'ps'
>
>>
>
>> data=[1,2,3]
>
>>
>
>> aleph='!s<!r!d !n|!d !n'
>
>>
>
>> device, file='idl.ps'
>
>>
>
>> plot, data, data, xtitle=aleph
>
>>
>
>> device, /close
>
>
>
> Hi Kyle,
>
> Do you have a font that contains this character? I've hacked up IDL to get past the error, and I want to see if I can actually get the character on the screen...
>
> -Chris

I messed up the link. Here is a font that has the characters in the normal A-Z range:

http://29letters.wordpress.com/2007/07/05/fniqiya-type/

-Chris
Re: Phoenician aleph [message #87550 is a reply to message #87541] Fri, 14 February 2014 11:26 Go to previous messageGo to next message
kdpenner is currently offline  kdpenner
Messages: 6
Registered: May 2013
Junior Member
On Friday, February 14, 2014 8:56:56 AM UTC-7, Chris Torrence wrote:
> On Friday, February 14, 2014 8:48:43 AM UTC-7, Chris Torrence wrote:
>
>> On Wednesday, February 12, 2014 12:25:16 PM UTC-7, kdpe...@gmail.com wrote:
>
>>
>
>>> Chris, that's the same error I got---was wondering what's up. Thanks for the explanation.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Heinz, thanks! The following also works (though it's not more pretty, unfortunately), if anyone wants device fonts:
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> !p.font=0
>
>>
>
>>>
>
>>
>
>>> set_plot, 'ps'
>
>>
>
>>>
>
>>
>
>>> data=[1,2,3]
>
>>
>
>>>
>
>>
>
>>> aleph='!s<!r!d !n|!d !n'
>
>>
>
>>>
>
>>
>
>>> device, file='idl.ps'
>
>>
>
>>>
>
>>
>
>>> plot, data, data, xtitle=aleph
>
>>
>
>>>
>
>>
>
>>> device, /close
>
>>
>
>>
>
>>
>
>> Hi Kyle,
>
>>
>
>> Do you have a font that contains this character? I've hacked up IDL to get past the error, and I want to see if I can actually get the character on the screen...
>
>>
>
>> -Chris
>
>
>
> I messed up the link. Here is a font that has the characters in the normal A-Z range:
>
>
>
> http://29letters.wordpress.com/2007/07/05/fniqiya-type/
>
>
>
> -Chris

Aegean.ttf has it:

http://users.teilar.gr/~g1951d/
Re: Phoenician aleph [message #87615 is a reply to message #87550] Tue, 18 February 2014 13:26 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, February 14, 2014 12:26:20 PM UTC-7, kdpe...@gmail.com wrote:
>
> Aegean.ttf has it:
>
>
>
> http://users.teilar.gr/~g1951d/

Okay, I just modifed the IDL internals to allow Unicode characters of up to 8 hexadecimal digits. This is *only* for object graphics and new graphics. I wasn't able to do it for direct graphics because of the way IDL reads in truetype font files.

This change will ship with the next version of IDL (don't know when).

In the meantime, I would recommend using a font (like the one in the wordpress link) that has these characters down in the lower A-Z range. You won't be able to mix those characters with regular ASCII characters, but at least you can display them.

Cheers,
-Chris
ExelisVIS
Re: Phoenician aleph [message #87627 is a reply to message #87615] Wed, 19 February 2014 12:17 Go to previous message
kdpenner is currently offline  kdpenner
Messages: 6
Registered: May 2013
Junior Member
On Tuesday, February 18, 2014 2:26:30 PM UTC-7, Chris Torrence wrote:
> On Friday, February 14, 2014 12:26:20 PM UTC-7, kdpe...@gmail.com wrote:
>
>>
>
>> Aegean.ttf has it:
>
>>
>
>>
>
>>
>
>> http://users.teilar.gr/~g1951d/
>
>
>
> Okay, I just modifed the IDL internals to allow Unicode characters of up to 8 hexadecimal digits. This is *only* for object graphics and new graphics. I wasn't able to do it for direct graphics because of the way IDL reads in truetype font files.
>
>
>
> This change will ship with the next version of IDL (don't know when).
>
>
>
> In the meantime, I would recommend using a font (like the one in the wordpress link) that has these characters down in the lower A-Z range. You won't be able to mix those characters with regular ASCII characters, but at least you can display them.
>
>
>
> Cheers,
>
> -Chris
>
> ExelisVIS

Excellent, thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Create new variable with subset of 4D array
Next Topic: animated gif speed

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

Current Time: Wed Oct 08 13:39:28 PDT 2025

Total time taken to generate the page: 0.00595 seconds