You are correct that there is another problem. Normal display from J uses
special chars (values less than 32) for the box draw chars. JHS converts
these values to the box draw utf8 (2 byte) values to get the proper char
displayed. This is not done within a jhtml display so you will have to do
it.

The upper left corner box draw char has the internal J value of 16. The
utf8 box draw char for this is 226 148.

To display this char with jhtml you need to display char values 226 148
140. To display the upper left corner box draw with jhtml you would do:
   jhtml 226 148 140{a.

The user manual section on box draw gives the wchar utf8 values for box
draw chars:
9484 9516 9488 9500 9532 9508 9492 9524 9496 9474 9472

This stuff can be confusing. If this is enough for you to go on, great. If
not, let me know and I can provided more info.

On Sun, Mar 20, 2016 at 5:00 PM, Brian Schott <schott.br...@gmail.com>
wrote:

> Eric,
>
> I think there is some other problem, because not only am I already using
> CSS for font family, and I am using "Monaco" and have experimented with
> "Courier New" and others.
>
> I have done another test as follows.
>
> Before reading on, please note that no error occurs below if instead of
> just < in front of text I use ":< which I am really using in my
> application. But also, no fancy box symbols appear and I am still stuck
> with ascii boxes.
>
> In j64-804/addons/ide/jhs/demo/jdemo4.ijs I altered the text input as
> follows.
>
> text=: <(0 : 0)
> Now is the <span id="one" class="mark">time</span>
> for all <span id="two" class="mark">good</span>
> folk to come to the party.
> )
>
> I see the following (error message).
>
> HBS error:jdemo4 text
>
>
>    JVERSION
> Engine: j804/j64/darwin
> Release: commercial/2015-12-21 18:06:25
> Library: 8.04.15
> Platform: Darwin 64
> Installer: J804 install
> InstallPath: /users/brian/j64-804
> Contact: www.jsoftware.com
>
> If I change 'javascript:' to <'javascript' I get the following error.
>
> HBS error:jdemo4 <'javascript:'
>
> Thanks,
>
> On Sun, Mar 20, 2016 at 12:20 PM, Eric Iverson <eric.b.iver...@gmail.com>
> wrote:
>
> > Box draw should work in JHS html written to the log. But you need a font
> > that supports them and it sounds as if your default font does not have
> > those characters. You can use css to select the font to use.
> >
> > --
> (B=)
> ----------------------------------------------------------------------
> 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