Typing glyphs: Difference between revisions

Jump to navigation Jump to search
m
 
(11 intermediate revisions by 6 users not shown)
Line 14: Line 14:
| [[wikipedia:Cherry (company)|Cherry]] || Dyalog || 🇺🇸 🇬🇧 🇩🇪 🇩🇰 || [https://www.dyalog.com/apl-font-keyboard.htm#mainContent Dyalog]
| [[wikipedia:Cherry (company)|Cherry]] || Dyalog || 🇺🇸 🇬🇧 🇩🇪 🇩🇰 || [https://www.dyalog.com/apl-font-keyboard.htm#mainContent Dyalog]
|-
|-
! rowspan=3 | Key caps
! rowspan=4 | Key caps
| Model M || Dyalog || 🇺🇸 ||[https://www.pckeyboard.com/page/product/USAPLSET Unicomp]
| Model M || Dyalog || 🇺🇸 ||[https://www.pckeyboard.com/page/product/USAPLSET Unicomp]
|-
| CannonKeys || [[APL2]] || 🇺🇸 || [https://cannonkeys.com/products/cannoncaps-big-blue?_pos=1&_sid=41ce0ba55&_ss=r cannonkeys.com]
|-
|-
| Cherry || [[APL2]] || 🇺🇸 || [https://mykeyboard.eu/catalogue/pbt-crp-r4-alphas-apl_3957/ mykeyboard.eu]
| Cherry || [[APL2]] || 🇺🇸 || [https://mykeyboard.eu/catalogue/pbt-crp-r4-alphas-apl_3957/ mykeyboard.eu]
Line 32: Line 34:
=== Web ===
=== Web ===


[[Adám Brudzewsky]]'s [https://abrudz.github.io/lb/apl  in-browser language bar] adds APL keyboard functionality to most web pages on demand.
* [[Adám Brudzewsky]]'s [https://abrudz.github.io/lb/apl  in-browser language bar] adds APL keyboard functionality to most web pages on demand.


[https://daveremba.com/public/apl_vk_demo/  APL VK] is a virtual keyboard for the APL Language for modern mobile devices.
* [https://daveremba.com/apl_vk_demo/  APL VK] is a virtual keyboard for the APL Language for modern mobile devices. You can add this to your own web page to provide a means to enter APL symbols into a web based form or editor. It is similar to the APL language bar but is optimized for mobile devices.
You can add this to your own web page to provide a means to enter APL symbols into a web based form or editor.  
It is similar to the APL language bar but is optimized for mobile devices.  This is work in progress.


=== Text editors ===
=== Text editors ===
 
{{Main|Text editors}}
Keyboard layout extensions exist for several popular [[text editors]] like VS Code, Emacs and Vim. This can be an alternative, or complementary, to system-wide settings.
Keyboard layout extensions exist for several popular text editors like VS Code, Emacs and Vim. This can be an alternative, or complementary, to system-wide settings.


=== Linux ===
=== Linux ===
{{Main|Typing glyphs on Linux}}
{{Main|Typing glyphs on Linux}}


Most Linux distributions released after mid-2012 have Dyalog keyboard support included with the distribution.
* Most Linux distributions released after mid-2012 have Dyalog shifting-key support included with the distribution.
 
* [https://github.com/secwang/espanso-apl-keyboard espanso-apl-keyboard] provides text replacement entry.


[[File:Array Hacker's Keyboard.png|thumb|right|Array Hacker's Keyboard]]
[[File:Array Hacker's Keyboard.png|thumb|right|Array Hacker's Keyboard]]
Line 59: Line 61:
* [[Adám Brudzewsky]] has [https://github.com/abrudz/Kbd various keyboard English layouts for Windows], which allow <kbd>AltGr</kbd> as shifting key, <kbd>`</kbd> as prefix key, or ASCII symbol composition.
* [[Adám Brudzewsky]] has [https://github.com/abrudz/Kbd various keyboard English layouts for Windows], which allow <kbd>AltGr</kbd> as shifting key, <kbd>`</kbd> as prefix key, or ASCII symbol composition.


* [[Fawn Locke]] offers [https://github.com/awagga/DvorakAPL a number of alternative Dvorak keyboard layouts for Windows], which adopt the functionality of Adám's layouts.
* [https://github.com/secwang/espanso-apl-keyboard espanso-apl-keyboard] provides text replacement entry.


* The [https://www.dyalog.com/apl-font-keyboard.htm#tab-1 Dyalog Unicode IME] uses <kbd>Ctrl</kbd>. Unless unselected, this [[wikipedia:Input_method|IME]] is installed by default with [[Dyalog APL]]:<br>[[File:Dyalog_APL_Installer.png|frameless|Dyalog APL IME selected in installer]]
* The [https://www.dyalog.com/apl-font-keyboard.htm#tab-1 Dyalog Unicode IME] uses <kbd>Ctrl</kbd>. Unless unselected, this [[wikipedia:Input_method|IME]] is installed by default with [[Dyalog APL]]:<br>[[File:Dyalog_APL_Installer.png|frameless|Dyalog APL IME selected in installer]]
* [https://github.com/Dyalog/APLAutoHotKey APLAutoHotKey] is an application to produce configurable AutoHotKey scripts for shifting key input.
* e-sushi has  [https://github.com/e-sushi/aplhotstrings/tree/main an AutoHotkey script] that allows ASCII composition.


==== Troubleshooting ====
==== Troubleshooting ====
Line 67: Line 73:


=== macOS ===
=== macOS ===
* [https://github.com/secwang/espanso-apl-keyboard espanso-apl-keyboard] provides text replacement entry.
To enable these keyboard key mappings on [[wikipedia:macOS|macOS]], the appropriate <code>.keylayout</code> files for your locale must be downloaded and installed in the <code>/Library/Keyboard Layouts</code> directory:
To enable these keyboard key mappings on [[wikipedia:macOS|macOS]], the appropriate <code>.keylayout</code> files for your locale must be downloaded and installed in the <code>/Library/Keyboard Layouts</code> directory:
* [[Dyalog Ltd.]] provides keyboard layouts for [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltDK.zip Danish], [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltIT.zip Finnish], [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltIT.zip Italian], [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltUK.zip British], and [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltUS.zip American].  
* [[Dyalog Ltd.]] provides keyboard layouts for [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltDK.zip Danish], [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltIT.zip Finnish], [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltIT.zip Italian], [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltUK.zip British], and [https://www.dyalog.com/uploads/files/download.php?file=DyalogAltUS.zip American].  
* LdBeth provides a keyboard layout for [https://github.com/LdBeth/APL-JIS Japanese (JIS)].
* LdBeth provides a keyboard layout for [https://github.com/LdBeth/APL-JIS Japanese (JIS)].
* [https://aplwiki.com/wiki/Typing_glyphs#ASCII_symbol_composition ASCII symbol composition] US and UK layouts are available from [https://github.com/abrudz/kbd#ascii-symbol-composition-layouts github.com/abrudz/kbd].
* [https://aplwiki.com/wiki/Typing_glyphs#ASCII_symbol_composition ASCII symbol composition] US and UK layouts are available from [https://github.com/abrudz/kbd#ascii-symbol-composition-layouts github.com/abrudz/kbd].


Line 75: Line 86:


* ohAitch's [https://github.com/ohAitch/APLiOS APLiOS], aimed primarily at iPadOS, provides a number bar and APL symbol layers.
* ohAitch's [https://github.com/ohAitch/APLiOS APLiOS], aimed primarily at iPadOS, provides a number bar and APL symbol layers.
* [https://github.com/gitonthescene/APLKeyboard APLKeyboard] is built with [http://omz-software.com/pythonista/ Pythonista's] keyboard extension.  The keys are a bit small but it's functional.
* [https://github.com/gitonthescene/APLKeyboard APLKeyboard] is built with [http://omz-software.com/pythonista/ Pythonista's] keyboard extension.  The keys are a bit small but it's functional.


Line 133: Line 145:
=== ASCII symbol composition ===
=== ASCII symbol composition ===


Many APL glyphs can be approximated by overlaying or juxtaposing two ASCII characters. [[ngn/apl]]'s scripted demo interface and [https://abrudz.github.io/lb/apl Adám Brudzewsky's in-browser language bar] allow such a pair of characters and hitting the <kbd>Tab↹</kbd> key to replace them with the corresponding APL character. For example, <kbd><</kbd>,<kbd>-</kbd>,<kbd>Tab↹</kbd> will insert <syntaxhighlight lang=apl inline>←</syntaxhighlight> and <kbd>T</kbd>,<kbd>o</kbd>,<kbd>Tab↹</kbd> will insert <syntaxhighlight lang=apl inline>⍕</syntaxhighlight>.
Many APL glyphs can be approximated by overlaying or juxtaposing two ASCII characters. [[ngn/apl]]'s scripted demo interface, [https://abrudz.github.io/lb/apl Adám Brudzewsky's in-browser language bar], and [[TryAPL]]'s web interface allow such a pair of characters and hitting the <kbd>Tab↹</kbd> key to replace them with the corresponding APL character. For example, <kbd><</kbd>,<kbd>-</kbd>,<kbd>Tab↹</kbd> will insert <syntaxhighlight lang=apl inline>←</syntaxhighlight> and <kbd>T</kbd>,<kbd>o</kbd>,<kbd>Tab↹</kbd> will insert <syntaxhighlight lang=apl inline>⍕</syntaxhighlight>.
 
For Windows users, e-sushi has  [https://github.com/e-sushi/aplhotstrings/tree/main an AutoHotkey script] that allows such composition.


=== Text replacement ===
=== Text replacement ===
Line 170: Line 184:
</syntaxhighlight>
</syntaxhighlight>


Depending on whether you want the whole document to use the APL font or not, you may remove the command to set the main font. If you do so, APL glyphs will be rendered correctly inside code listings and similar environments, but not in the main body of the document.
Depending on whether you want the whole document to use the APL font or not, you may remove the command to set the main font. If you do so, APL glyphs will be rendered correctly inside code listings and similar environments, but not in the main body of the document.  


==== Listings ====
==== Listings ====
Line 203: Line 217:
\makeatother
\makeatother
</syntaxhighlight>
</syntaxhighlight>
==== Metafont ====
An APL metafont usable to typeset APL in LaTeX files is available on the ([https://ctan.org/pkg/apl?lang=en Comprehensive TeX Archive Network]), available for free use.
The version of the package is from 1987 and may not be suitable for glyphs used in modern APL implementations..


=== plainTeX ===
=== plainTeX ===
4

edits

Navigation menu