bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Another option for APL keyboard mapping


From: Elias Mårtenson
Subject: Re: [Bug-apl] Another option for APL keyboard mapping
Date: Thu, 23 Oct 2014 13:33:06 +0800

This is a neat idea, and something like this should be integrated in GNU APL itself, I think.

However, making the assumption that Alt causes esc-prefixing is not an ideal approach. May I suggest that you take a look a the features that Curses offers to do this in a terminal-independent manner?

Also, perhaps one could integrate an alternative approach, similar to the Quail-mode in the Emacs mode? (prefix with a "normal" character, "." in Emacs case).

Regards,
Elias

On 23 October 2014 13:04, David Lamkins <address@hidden> wrote:
As much as I like gnu-apl-mode and aplwrap (I use both on a daily basis), I felt like there ought to be a more lightweight approach to getting APL characters into GNU APL.

Today I wrote `akt`, the APL Keyboard Translator.

https://github.com/TieDyedDevil/akt

This small C program simply reads stdin and writes stdout. It takes advantage of the fact that most modern terminal emulators will map the Alt key to send an ESC prefix; therefore APL characters are seen by `akt` as a two-character sequence. `akt` maps this sequence to the Unicode character expected by GNU APL.

Long story short:

$ akt | apl

adapts your keyboard to generate the proper characters for GNU APL.

Caveat: I've only built and tested this on my Fedora 20 Linux systems. YMMV. If you're so inclined to create patches for other Unix-like platforms, I'll be happy to merge them.


--


reply via email to

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