unihex =: verb define
a =. ": y
b =. '16b',a
c =. ". b
)

 ; unihex &. > 2663 2666 2665 2660
9827 9830 9829 9824

2009/9/6 bill lam <[email protected]>:
> or just use base 16 number 16b2663 ?  However J does not accept upper
> case hex digits.
>
> On Sun, 06 Sep 2009, Ian Clark wrote:
>> Thanks, Bill.
>>
>> ...I've just recalled Gilles answered part of my question in
>> Endnote[7] of http://www.jsoftware.com/jwiki/Doc/Articles/Play194
>>
>> So...
>> suits =: 4 u: 9827 9830 9829 9824
>>
>> But It would be nice to hear alternate suggestions for entering
>> (chosen) unicode symbols.
>>
>> It would be good too to show it in hex, because
>> http://unicode.org/charts/ expects hex in its lookup field, viz 2663
>> not 9827.
>>
>> How do you get '2663' from 9827? I can't find a hex integer conversion
>> primitive or user-defined verb, and there doesn't seem to be a "hex"
>> integer representation. Must I use something like?:
>>
>> hfd=: ({&'0123456789abcdef')@(16 16 16 16&#:)
>>
>>
>> Ian
>>
>>
>> On Sun, Sep 6, 2009 at 2:07 AM, Ian Clark<[email protected]> wrote:
>> [---=| TOFU protection by t-prot: 34 lines snipped |=---]
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf,
Þerneyjarsundi 23, Hraunborgum
Po Box 127,801 Selfoss ,
t-póst: [email protected]
gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.
         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |         (\_ _/)
  (`-.  '--.)       (='.'=)   ♖♘♗♕♔♙
   `. )----'        (")_(") ☃☠
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to