Thanks Bill,

It works as suggested.

 (9!:36 '') 5!:30 [ 9 u: 128512
πŸ˜€

   a. i. (9!:36 '') 5!:30 [ 9 u: 128512
240 159 152 128 10

and it converts to pretty characters for boxing before displaying, as expected.

    9!:6 ''
β”Œβ”¬β”β”œβ”Όβ”€β””β”΄β”˜β”‚β”€
    a. i. (9!:36 '') 5!:30 [ <5  NB. UTF-8 encoding of special characters!
226 148 140 226 148 128 226 148 144 10 226 148 130 53 226 148 130 10 226 148 
148 226 148 128 226 148 152 10
   9!:7 '+++++++++|-'
   9!:6 ''
+++++++++|-
   a. i. (9!:36 '') 5!:30 [ <5 NB. 
43 45 43 10 124 53 124 10 43 45 43 10

Mind blown. :-)

Cheers, bob

> On May 21, 2017, at 8:23 AM, bill lam <[email protected]> wrote:
> 
> There is an undocumented conjunction 5!:30 which
> display what would be sent to the front-end as a
> character string, eg,
>   b,a
> `DDD `C C
>   (0 256 0 222) 5!:30 b,a
> `DDD `C C
> 
>   a.i.(0 256 0 222) 5!:30 b,a
> 96 68 68 68 32 96 67 9 67 10
> 
> The TAB is there sent to front-end
> 
>   <b,a
> +---------+
> |`DDD `C C|
> +---------+
>   (0 256 0 222) 5!:30 <b,a
> +---------+
> |`DDD `C C|
> +---------+
> 
>   a.i.(0 256 0 222) 5!:30 <b,a
> 43 45 45 45 45 45 45 45 45 45 43 10 124 96 68 68 68 32 96 67 32
> 67 124 10 43 45 45 45 45 45 45 45 45 45 43 10
> 
> the TAB becomes space after formating box.
> 
> IIRC the left argument should be the output control 9!:36/37
> 
> Вс, 21 ΠΌΠ°ΠΉ 2017, robert therriault написал(Π°):
>> Thanks Henry,
>> 
>> So the display of the tab characters would depend on their position relative 
>> to the next tab stop. Being consistently inconsistent in the display then 
>> would make sense. :-)
>> 
>> Cheers, bob
>> 
>>> On May 21, 2017, at 7:58 AM, Henry Rich <[email protected]> wrote:
>>> 
>>> The symbol is being output exactly as it is defined: with a TAB (9{a.) 
>>> character as part of the display.
>>> 
>>> How that gets displayed is up to the display system (Qt etc.).
>>> 
>>> The original purpose of TAB characters was to put the character following 
>>> the TAB into a fixed column in the display.  It sounds like that's what's 
>>> happening.
>>> 
>>> If you want a fixed number of spaces in the display, you should replace the 
>>> TAB with that many spaces.
>>> 
>>> Henry Rich
>>> 
>>> On 5/21/2017 10:52 AM, robert therriault wrote:
>>>> I just noticed something strange in the display of symbols that include 
>>>> the tab character in their label. They are not consistently displayed 
>>>> depending on where they show up in a string of symbols. Is this something 
>>>> that will be cleaned up or is there a rule that will let me reliable 
>>>> predict how the symbols will display? Currently, the display of a symbol 
>>>> seems to depend on the preceding symbol in the string.
>>>> 
>>>>    JVERSION
>>>> Engine: j806/j64/darwin
>>>> Beta-1: commercial/2017-03-09T12:01:12
>>>> Library: 8.06.01
>>>> Qt IDE: 1.5.3/5.6.2
>>>> Platform: Darwin 64
>>>> Installer: J806 install
>>>> InstallPath: /users/bobtherriault/j64-806
>>>> Contact: www.jsoftware.com
>>>> 
>>>> NB. using unifont as fixed width font in the session, hoping that email 
>>>> does not mangle the spacing of the displays too much.
>>>> 
>>>>    a=. s: <67 9 67{a.
>>>>   b=.s: <68 68 68{ a.
>>>>   a,b NB. 'a' is displayed full width
>>>> `C C `DDD
>>>>   b,a
>>>> `DDD `C    C
>>>>   a,a NB. second occurrence of 'a' is displayed shorter than the first
>>>> `C C `C    C
>>>>   b,a,a NB. first occurrence of 'a' has tab as single space, second is 
>>>> shortened
>>>> `DDD `C    C `C    C
>>>>    a,b,a,a NB. three different displays of the same symbol within one 
>>>> string of symbols,
>>>> `C C `DDD `C       C `C    C
>>>>  a =  a,b,a,a
>>>> 1 0 1 1
>>>> 
>>>> The simple solution would be to treat all the special character as they 
>>>> are when the symbol array is boxed which is to have them just display as 
>>>> single spaces.
>>>> 
>>>>   <a,b
>>>> β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
>>>> β”‚`C C `DDDβ”‚
>>>> β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
>>>>   <b,a
>>>> β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
>>>> β”‚`DDD `C Cβ”‚
>>>> β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
>>>>   <b,a,a
>>>> β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
>>>> β”‚`DDD `C C `C Cβ”‚
>>>> β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
>>>>   <a,b,a,a
>>>> β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
>>>> β”‚`C C `DDD `C C `C Cβ”‚
>>>> β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
>>>> 
>>>>  Cheers, bob
>>>> 
>>>> ----------------------------------------------------------------------
>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>> 
>>> 
>>> ---
>>> This email has been checked for viruses by AVG.
>>> http://www.avg.com
>>> 
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> -- 
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to