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
