Lippu Esa wrote:
I am at loss. I can't get box draw characters in wdview although they
show in .ijs and .ijx windows and print ok.
Can it be done?
The problem here is that the "box drawing" characters in J6 are
(16+i.11){a., and these have to be mapped to the proper unicode boxes.
For example:
a.i. ,": <123
16 26 26 26 18 25 49 50 51 25 22 26 26 26 24
wdview should do this mapping for you. In the meantime, the following
verb will convert a string:
unibox=: 3 : 0
fm=. (16+i.11) { a.
msk=. y e. fm
if. -. 1 e. msk do. y return. end.
to=. 4 u: 9484 9516 9488 9500 9532 9508 9492 9524 9496 9474 9472
y=. ucp y
msk=. y e. fm
un=. to {~ fm i. msk#y
utf8 un (I.msk) } y
)
For example:
wdview unibox"1 ": ;/i.2 3 4
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm