APL Fonts and Keyboards

This page contains resources that are believed to be of general interest to the APL community. The fonts are freely available to everyone, irrespective of whether you use Dyalog (or any other APL system for that matter).

APL Keyboard

Black Cherry G80-3000 keyboards with Dyalog glyphs engraved are available in UK, US and DK layouts. USB and PS2 adapters are included. The keyboards have been tested using both Microsoft Windows and Linux. Prices...

Click to see large image: DK UK US

The APL Font

Adrian Smith's Unicode APL font has become a "standard" and is used by several vendors. It can be downloaded as a fixed-width or proportional font:

  • APL385 (fixed-width – the standard form)
  • APL333 (a proportional version of APL385)

 

After downloading the appropriate font, follow the instructions specific to your operating system:

Dyalog on the Microsoft Windows Operating System

Installing the Font

Navigate to the downloaded .ttf file in Windows Explorer, right-click on it and select Install from the drop-down menu.

NOTE: The setup_fonts.msi file contains all the fonts supplied with the Microsoft Windows versions of Dyalog, including APL385 (for Dyalog Unicode edition) and the Dyalog Symbol (for Dyalog Classic edition) fonts. To install these fonts, double-click on the downloaded setup_fonts.msi file and follow the on-screen instructions.

Enabling the Keyboard Key Mappings

The Dyalog Unicode IME defines the mapping of keystrokes to Unicode characters – it can be regarded as an overlay of the standard keyboard which contains just APL characters. It enables APL characters to be input into any Microsoft Windows application that supports IME input, including Dyalog Unicode Edition (not Classic), PuTTY, Notepad and the Microsoft Office Suite.

The version of the Dyalog Unicode IME that should be downloaded and installed is dependent on whether a 32-bit or 64-bit version of the Microsoft Windows operating system is installed:

NOTE: These .msi files should support any Dyalog Unicode edition from version 12.1 onwards, providing that the interpreter has a build date later than 20 April 2011. Dyalog Ltd recommends that you always install the latest version of the Dyalog Unicode IME that is available (currently 14.1.25329.0).

To install the Dyalog Unicode IME, download the appropriate .msi file. Double-click on the downloaded .msi file and follow the on-screen instructions. After installation you must reboot your PC to complete the installation process. If you already have a Dyalog Unicode IME installed and want to update it, then you must uninstall the currently installed version and reboot your PC before installing the new one.

Documentation

The Dyalog for Microsoft Windows UI Guide includes:

  • Configuring the Dyalog IME (from within a Session or in the Microsoft Windows taskbar)
  • Configuring automatic selection of the APL keyboard each time a session is started (Unicode edition only)

Diagrams showing the keyboard layouts can be found on the keyboard layout page of the dfns website.

More hints and tips about using the Dyalog Unicode IME can be found in the FAQ section of the Dyalog forum. For example:

Dyalog on the Linux Operating System

NOTE: When installing Dyalog on the Raspberry Pi, (or any other Debian-based Linux distribution), the fonts and keyboard mappings are automatically installed and enabled.

Installing the Font

Most non-Debian-based Linux distributions include fonts that can display the APL character set. However, if the APL385/APL333 font is required, then place the downloaded .ttf file in the /usr/share/fonts/truetype/dyalog/ directory. As root, open a command prompt and run fc-cache /usr/share/fonts.

Enabling the Keyboard Key Mappings

Most Linux distributions released after mid-2012 have Dyalog keyboard support included with the distribution, for example, openSUSE 12.2, Ubuntu 12.10 and Fedora 17. Keyboard support for other window managers (for example, Gnome and Unity) is in a state of flux; the latest information about the process of installing and configuring Dyalog keyboard support for such environments can be found on the Dyalog forum or by e-mailing us.

Documentation

The Dyalog for UNIX Installation and Configuration Guide includes detailed instructions for:

  • configuring the terminal window for Dyalog keyboard support (global per user per UI)
  • generating APL glyphs through the PuTTY terminal emulator by installing the Dyalog Unicode IME and APL385 font

For Linux distributions that have Dyalog keyboard support included with the distribution, a diagram showing the keyboard layout can be found in the /usr/share/X11/xkb/symbols/apl file.

Diagrams showing the keyboard layouts can be found on the keyboard layout page of the dfns website.

Dyalog on the Mac OS Operating System

NOTE: When installing Dyalog for Mac OS, the font and keyboard mappings are automatically installed and enabled for use in a Dyalog Session – the following allows use of Dyalog glyphs both outside and inside a Dyalog Session (for example, in email).

Installing the Font

Place the downloaded .ttf file in the /Library/Fonts/ directory.

Enabling the Keyboard Key Mappings

To enter Dyalog glyphs, the keyboard key mappings must be enabled. To enable these keyboard key mappings on Mac OS, the appropriate DyalogAlt.keylayout and DyalogAlt.icns files for your locale must be downloaded and installed in the /Library/Keyboard Layouts directory. To download a zip file containing these files, click on the relevant flag (if the country you require is not shown, then please e-mail us):

DyalogAlt.keylayout and DyalogAlt.icns files: Denmark Finland U.K. U.S.

The keyboard key mappings installed with these files are enabled whenever the Dyalog keyboard is selected in the main menu bar. The following locale-specific images show these keyboard key mappings. To enter Dyalog glyphs using these keyboard key mappings, hold down the key combination shown shaded in the following images and press the appropriate character key.

mac_keyboard.pdf (keyboard key mapping images): Denmark Finland U.K. U.S.

Documentation

The Dyalog for Mac OS Installation and Configuration Guide includes detailed instructions for:

  • installing the APL385 Unicode font
  • using the DyalogAlt.keylayout file to enable keyboard key mappings