Bill,

        Look below for my questions about your reply,
please. Thank you for your reply.

On Sun, 27 Aug 2006, bill lam wrote:
+
+ 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??A??B??C??X??Y??Z??'
+   pos=:'o??A??B??C??X??Y??Z??'

        The previous 3 lines, especially the last 2 lines,
look like junk on my ascii-only email reader, as you can see
here. When I read the same three lines in FireFox (a
non-ascii-only email reader) the lines look better, but the
second line looks almost identical to the first except that
the underline characters in the first line are replaced with
single-character squares in the second line. The third line
looks good in FireFox, like the third line does in the .ijx
window with the font suggested by Istvan Kadar in his post.

+
+ to convert to ucs2, use ucp
+   neg=.ucp 'o??A??B??C??X??Y??Z??'
+   null=.ucp 'o??A??B??C??X??Y??Z??'
+   pos=:ucp 'o??A??B??C??X??Y??Z??'

        Where is "ucp" found and using the keyboard how does
one produce the character strings in single quotes in the
previous 3 lines?  I can only produce those strings with the
4&u: verb, not directly with the keyboard.

+
+ 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)

        To confirm your admonition to use 3&u: I produced
the following three experiments. It appears that you are
correct and that 7 2&$ is preferable to 7 3&$ .

   3 u: neg
111 800 65 800 66 800 67 800 88 800 89 800 90 800
   3 u: 7 3$neg
111 800  65
800  66 800
 67 800  88
800  89 800
 90 800 111
800  65 800
 66 800  67
   3 u: 7 2$neg
111 800
 65 800
 66 800
 67 800
 88 800
 89 800
 90 800

+
+ --
+ regards,
+ bill
+ ----------------------------------------------------------------------
+ For information about J forums see http://www.jsoftware.com/forums.htm
+

(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to