Don Guinn wrote:
> OK. The upper left corner box character is 16{a. and displays (at
> least on my screen) as follows:
> 16{a.
> ┌
>
> a.i.8 u:4 u:16
> 16
> a.i. '┌' NB. Why isn`t the expression above the same
> as this?
> 226 148 140
The JFE maps 16{a. to 226 148 140{a.
Prior to J6, box drawing characters were in the upper half of a., e.g.
values like 218 194{a.
In J6, unicode box drawing characters are used, these are values like
226 148 140 226 148 128 {a. (or u: 9484 9472).
Rather than change the JE to recognize and work with unicode box drawing
characters, we simply moved the old box draw characters down to
(16+i.11){a., and have the JFE map these to the proper box drawing
characters.
The JE itself does not care what the box drawing characters are, all it
knows is that when it formats boxed output, it wraps using the
characters set in 9!:7. When the JFE gets output from JE, it maps
(16+i.11){a. to unicode before writing the output to the session window.
Now you might argue that we should have fixed JE to work with unicode
box drawing characters. But this would not solve June Kim's problem.
What we really need to do is have the JFE draw lines, for example, so
that double-width east asian characters are shown correctly when boxed.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm