Sorry to double up, had not seen Brian’s reply when I sent…/Rob
> On 8 Jul 2020, at 11:37 am, 'Rob Hodgkinson' via Programming
> wrote:
>
> Skip, this may help you with your preferred display.
>
> I believe it used to be possible to configure box display (whether to have
> top/bottom of boxes
Skip, this may help you with your preferred display.
I believe it used to be possible to configure box display (whether to have
top/bottom of boxes etc), but I think that was deprecated instead to allow box
drawing characters as an 11 item list, which is available through the foreign
conjunctio
This is awkward but works for me.
9!:6''
┌┬┐├┼┤└┴┘│─
m=.'abc';'rtyuio';'b';'asdf';'wdrtybji';'ee';'nuko';'n'
9!:7' '(<<<9{i.11)}9!:6''
m
│abc│rtyuio│b│asdf│wdrtybji│ee│nuko│n│
--
(B=)
--
For information about J for
Thanks Hauke for your reply. That helped me see how to proceed.
I mentioned that it would still be nice to have a simple way to remove the
horizontal and corner box characters for times when presenting J in venues
where fixed-width or unicode fonts are not available.
Here's what i mean:
m=.'abc
Hi Skip,
this is how I would try to achieve what you’re after
] suits =: u: 9824 9827 9829 9830
♠♣♥♦
;/ values =: (3 2 $ ' J Q K') , ": >: i. 10 1
┌──┬──┬──┬──┬──┬──┬──┬──┬──┬──┬──┬──┬──┐
│ J│ Q│ K│ 1│ 2│ 3│ 4│ 5│ 6│ 7│ 8│ 9│10│
└──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┴──┘
deck =: ,/ values
The four suit symbols I was using were from a. 3 4 5 6{a.
These symbols are not the same width as the character symbols in a. so they
mess up the boxing characters.
;/3 4 5 6{a.
(My email fonts don't have the a. symbols)
┌─┬─┬─┬─┐
│ │ │ │ │
└─┴─┴─┴─┘
I discovered that the unicode suit symbol
On 2020-07-07 10:09, Skip Cave wrote:
In the third part, I remove all the horizontal boxing, making the
display
look much neater, but the extra spaces are even more visible.
The third part's spacing looks normal, though.
|:,:<;._1 ' 5x 2x 10x jx'
+---+
|5x |
+---+
|2x |
+---+
|10x|
+---
If the fixed width font has variable width characters, that's not a
bug in J, that's a problem with the font.
One approach would be to rebuild the font's characters, enforcing a
fixed width format. Doing this requires access to either suitable
tools, or sufficient documentation on the font's data
When working in JQT with some of the non-standard-width characters in a.,
the boxing formatting is incorrect.
Here's a link to a screenshot (.png) of my code in JQT attempting to create
all the 13 playing cards in 4 suits. https://bit.ly/2BD6LEQ
As you can see, the horizontal boxing characters ar