Hi David,

did you have a look at tools/APL_keyboard ? It works in the same way (piping its output to GNU APL),
but makes fewer assumptions about the encoding of the keyboard sequences. And it can be "trained"
for not-so-standard keyboards.

/// Jürgen


On 10/23/2014 07:04 AM, David Lamkins 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