Brian Schott wrote:
> I am unsure of the purpose of you post. Is it to
> show an application of unicoding or to indicate difficulties
> you are having with the application, or both?
>
> I am totally unfamiliar with unicode, but have read
> the Vocabulary entry and your post.
>
> My strategy to try to understand you post was to use
> jw (java version on the Mac). I went to the configure menu
> and changed the font type to "Arial Unicode MS" 16 and
> unchecked the button "Save Config" so that my basic
> configuration would not change the next time I launch J.
>
> I typed in your three 4&u: lines and was encouraged
> because the output looked like seven vaguely familiar
> characters. I then type the following 3 lines.
> neg =. 4&u:111 800 65 800 66 800 67 800 88 800 89 800 90 800
> null=. 4&u:111 805 65 805 66 805 67 805 88 805 89 805 90 805
> pos =. 4&u:111 799 65 799 66 799 67 799 88 799 89 799 90 799
>
> After confirming that #neg is 14 I continued to
> define three nouns as did you.
>
> NEG =.7 3$neg
> NULL=.7 3$null
> POS =.7 3$pos
>
> When I looked at the output for NEG, NULL and POS
> the output looked funny so I tried redefining the 3 nouns as
> follows and the results were much nicer looking, so I wonder
> if your noun definitions were 7 3&$ or 7 2&$ ?
>
> NEG =.7 2$neg
> NULL=.7 2$null
> POS =.7 2$pos
Brian, I don't understand either.
But these definition are different although there look the same,
This define unicode (ucs2) 3!:0=131072
neg =. 4&u:111 800 65 800 66 800 67 800 88 800 89 800 90 800
null=. 4&u:111 805 65 805 66 805 67 805 88 805 89 805 90 805
pos =. 4&u:111 799 65 799 66 799 67 799 88 799 89 799 90 799
but this is one byte, utf8 encoding that represent unicode, 3!:0=2
neg=.'o̠A̠B̠C̠X̠Y̠Z̠'
null=.'o̥ḀB̥C̥X̥Y̥Z̥'
pos=:'o̟A̟B̟C̟X̟Y̟Z̟'
to convert to ucs2, use ucp
neg=.ucp 'o̠A̠B̠C̠X̠Y̠Z̠'
null=.ucp 'o̥ḀB̥C̥X̥Y̥Z̥'
pos=:ucp 'o̟A̟B̟C̟X̟Y̟Z̟'
do not trust what you saw in ijx, use 3&u: instead to show the true data
(similar to using a.&i. to display ascii)
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm