Entering APL Symbols (2 of 15)

APL uses a variety of symbols to represent its built-in functions. Many of these are symbols that do not exist on a standard keyboard. Some of these will be familiar (for example, ÷ for divide, and for greater-than-or-equal). Others are specific to APL (for example for round-up or greater-of, and for finding out if two arrays are exactly the same in shape and contents).

In order to use APL, you need to be able to enter these symbols.

The exact way of doing so will vary from one APL to another, so the following is only a guide. You should consult the documentation which comes with your version of APL.

Using an extended keyboard layout

The traditional way of entering special APL symbols is via the keyboard using one of a number of extended keyboard layouts.

For illustration purposes, here is the 'unified' layout which is selected by default in APLX. This is configured as follows (the exact layout will vary according to the country in which you live and the specific model of keyboard):

aplx_keyboard.jpg

As you can see, each key is shown with up to four symbols. As with a conventional keyboard, a given character key generates a lower case character and, when depressed in conjunction with the Shift key, the corresponding upper case character. These are shown in black and red on the above diagram, in the lower-left and upper-left positions on each key.

In order to enter the other symbols, you use the AltGr key, which acts just like the Shift key in that it modifies the effect of another key. (In non-APL applications, AltGr is used to type various different characters, primarily ones that are unusual for the locale of the keyboard layout, such as foreign currency symbols and accented letters.) Using the AltGr key with another key produces the symbol displayed in green, on the lower right of each key in the diagram above. The remaining symbols (shown in blue, on the top right of each key) are entered by pressing the AltGr and Shift keys simultaneously. (Note: On a Macintosh keyboard, use the Alt or Option key instead of AltGr).

For example, the key in the upper row of the keyboard, inscribed with the digit 4, produces the following symbols:

Most other modern APLs use a similar scheme to APLX, but you should check your vendor's documentation.

Choosing the keyboard layout

Two APL keyboard layouts are quite commonly used, and some APLs support both:

Within these two schemes your APL may also let you choose between different language versions, for example a keyboard layout including all the characters needed to type Danish or French.

Some APLs go further and allow complete customisation of which character is obtained for each key combination, so you can tailor the keyboard to suit yourself.Here are examples from APLX and VisualAPL.

Suggestion: If you are learning the APL keyboard, you should check whether your APL includes an on-screen keyboard which you can display for reference purposes.

Other ways of entering APL

Some APLs also include facilities to enter APL characters by choosing from a palette of symbols on screen. For example, APLX has a QuickSym facility.


CategoryAboutApl - CategoryAplx