bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] try-GNU-APL


From: Dr . Jürgen Sauermann
Subject: Re: [Bug-apl] try-GNU-APL
Date: Mon, 8 Apr 2019 22:14:54 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Hi Blake,

never mid. I have added an APL popup window that one can use
for copy-and-paste APL characters.

I am working on an improved keyboard that pushes the characters
clicked into the APL window. It works so far for computing the proper
character, but I am struggling with hot to transfer the character from
the keyboard window to the APL window.

I tried a number of alternatives along the lines of:

           var form = window.opener.document.forms["APL_input"]["in_form"];
           form.innerHTML = form.innerHTML + key;

While key is correct at this point, it never arrives in the try-GNU-APL.html window, nor does
the above raise an error. I t very much looks like the destination being is copied rather
than being referenced so that the key lands in the copy and has no impact on the original.

/// Jürgen


On 4/7/19 10:49 PM, Blake McBride wrote:
Now that I think about it a little more.  I don't think the link I gave you will help.  I think shellinabox allows an APL program to run over the net in a browser, but it didn't allow APL characters to be displayed or entered.


On Sun, Apr 7, 2019 at 11:02 AM Blake McBride <address@hidden> wrote:
Hi Jürgen,

I think you need an akt-like thing for the browser.  I know it can be done because I've done it before.  See https://github.com/shellinabox/shellinabox.git  That works great with GNU APL!

Can't do much right now, working on https://github.com/blakemcbride/Build

Thanks!

Blake


On Sun, Apr 7, 2019 at 10:49 AM Dr. Jürgen Sauermann <address@hidden> wrote:
Hi Blake,

I see. Not really sure what a good solution would be, but my current thinking is that the page
should get a separate column on the left side with a number of links to other pages that are
related to GNU APL (GNU APL home, GNU APL community, Bits-and-Pieces, info manual,
etc.).

One of the links could be a copy to a separate window with an APL keyboard. Or maybe a
"Keyboard" button right to the "Enter:" button. I am not a web designer so I have to figure how
to do that (ideally such that a click in the keyboard window is pushed into the input field).

Any help is welcome (the current try-GNU-APL page is websock/client/apl_js.html in SVN).

Best Regards,
/// Jürgen


On 4/7/19 5:29 PM, Blake McBride wrote:
Hi Jürgen,

I kind of got all of that.  Here is the problem:

I use "akt" to get to APL characters.  I don't use any keyboard configuration.  Likewise, those new to APL that wish to "try" it are not going to have any special keyboard setup either.  The will be using tryapl.org with a regular browser on a not-specially-configured keyboard.  Although I easily get all that you said, the people interested in "trying" APL won't.

Thanks.

Blake


On Sun, Apr 7, 2019 at 10:11 AM Dr. Jürgen Sauermann <address@hidden> wrote:
Hi Blake,

there is an input field (after the text
"APL Input:") at the bottom of the page.
You enter your APL command or _expression_ into that field and then press enter
on your keyboard or push the button labelled "Enter". The text entered then goes
straight to the GNU APL interpreter.

If your keyboard is configured accordingly, then you move the cursor over the input
field (so that it gets the input focus) and then simply type the APL characters (using Ctrl-
or Alt- or whatever your keyboard configuration requires). The normal keyboard
configuration for GNU APL should do it.

Without a proper keyboard configuration you can first enter command
]keyb to
display an APL keyboard in the APL output. From that output you can then copy
and paste individual APL characters to the input field (in my browser you mark the text
and then copy it with the middle mouse button, like it is commonly done in X-based systems).

Likewise you can copy and paste longer APL input lines from other web pages that display
APL code (in UTF-8 encoding).

Best Regards,
/// Jürgen



On 4/7/19 4:37 PM, Blake McBride wrote:
Interesting, but I can't figure out how to input APL characters.

--blake


On Sat, Apr 6, 2019 at 1:41 PM Dr. Jürgen Sauermann <address@hidden> wrote:
Hi,

inspired by Dyalog's https://tryapl.org/ I have set up a small server
with try-GNU-APL. Not as fancy as
tryapl.org, but at least something.

The URI is:

http://juergen-sauermann.de/try-GNU-APL

The code for the entire server is rather small and stored in the
latest SVN 1131 (subdir websocket).

Enjoy,
/// Jürgen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]