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|
+---+
|jx |
+---+
The challenge with making the output look nice there is the outlier
width
of 10, not the Unicode.
As for the horizontal spacers, those are somewhat improved with:
4 2 $ <;._1 ' 5x 2x 10x jx jx kx 3x 9x'
+---+--+
|5x |2x|
+---+--+
|10x|jx|
+---+--+
|jx |kx|
+---+--+
|3x |9x|
+---+--+
vs.
8!:1 ] 4 2 $ <;._1 ' 5x 2x 10x jx jx kx 3x 9x'
+---+--+
|5x |2x|
|10x|jx|
|jx |kx|
|3x |9x|
+---+--+
But the first and last line will still look off for you.
Maybe there's some format string to 8!:2 that'll help.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm