4
edits
m (Reorder things) |
(→iOS: Keyboard built with Pythonista for iOS) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 66: | Line 66: | ||
* 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. | |||
== By method == | == By method == | ||
Line 91: | Line 92: | ||
=== Shifting key === | === Shifting key === | ||
It is quite common to use <kbd>Ctrl</kbd> or <kbd>Alt</kbd> or <kbd>AltGr</kbd> (right-side <kbd>Alt</kbd>) as an additional shifting key. For example, <kbd>AltGr</kbd>+<kbd>4</kbd> would give < | It is quite common to use <kbd>Ctrl</kbd> or <kbd>Alt</kbd> or <kbd>AltGr</kbd> (right-side <kbd>Alt</kbd>) as an additional shifting key. For example, <kbd>AltGr</kbd>+<kbd>4</kbd> would give <syntaxhighlight lang=apl inline>≤</syntaxhighlight> while <kbd>AltGr</kbd>+<kbd>Shift</kbd>+<kbd>4</kbd> would give <syntaxhighlight lang=apl inline>⍋</syntaxhighlight>. | ||
* The [https://www.dyalog.com/apl-font-keyboard.htm#tab-1 Dyalog Unicode IME] uses <kbd>Ctrl</kbd> | * The [https://www.dyalog.com/apl-font-keyboard.htm#tab-1 Dyalog Unicode IME] uses <kbd>Ctrl</kbd> | ||
Line 117: | Line 118: | ||
=== Keyword look-up === | === Keyword look-up === | ||
* The [https://github.com/Dyalog/ride/releases/latest Dyalog RIDE] (Remote Integrated Development Environment) allows hitting the prefix key (<kbd>`</kbd> by default, but configurable) twice, followed by the (beginning of the) name of a symbol or a functionality. It then displays a drop-down of choices with arrow keys to indicate choice and the Tab key to insert the symbol. E.g. <kbd>`</kbd>,<kbd>`</kbd>,<kbd>d</kbd>,<kbd>i</kbd>,<kbd>v</kbd>,<kbd>Tab↹</kbd> inserts < | * The [https://github.com/Dyalog/ride/releases/latest Dyalog RIDE] (Remote Integrated Development Environment) allows hitting the prefix key (<kbd>`</kbd> by default, but configurable) twice, followed by the (beginning of the) name of a symbol or a functionality. It then displays a drop-down of choices with arrow keys to indicate choice and the Tab key to insert the symbol. E.g. <kbd>`</kbd>,<kbd>`</kbd>,<kbd>d</kbd>,<kbd>i</kbd>,<kbd>v</kbd>,<kbd>Tab↹</kbd> inserts <syntaxhighlight lang=apl inline>÷</syntaxhighlight>. | ||
=== 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 < | * 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>. | ||
[[File:NARS2000 language bar.png|thumb|right|NARS2000 language bar]] | [[File:NARS2000 language bar.png|thumb|right|NARS2000 language bar]] | ||
Line 138: | Line 139: | ||
To check your setup is fully functional you can try compiling the following template: | To check your setup is fully functional you can try compiling the following template: | ||
[[File:LaTeX APL template.png|thumb|right|Screenshot of the typeset document]] | [[File:LaTeX APL template.png|thumb|right|Screenshot of the typeset document]] | ||
< | <syntaxhighlight lang=latex> | ||
\documentclass[11pt]{article} | \documentclass[11pt]{article} | ||
Line 152: | Line 153: | ||
\end{document} | \end{document} | ||
</ | </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. | ||
Line 159: | Line 160: | ||
LuaLaTeX and XeLaTeX can use the [https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings ''listings'' package] to include APL source with the following document preamble:<ref>Baker, John D. [https://analyzethedatanotthedrivel.org/2011/08/15/typesetting-utf8-apl-code-with-the-latex-lstlisting-package/ Typesetting UTF8 APL code with the LaTeX lstlisting package]. Analyze the Data not the Drivel. August 15, 2011.</ref> | LuaLaTeX and XeLaTeX can use the [https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings ''listings'' package] to include APL source with the following document preamble:<ref>Baker, John D. [https://analyzethedatanotthedrivel.org/2011/08/15/typesetting-utf8-apl-code-with-the-latex-lstlisting-package/ Typesetting UTF8 APL code with the LaTeX lstlisting package]. Analyze the Data not the Drivel. August 15, 2011.</ref> | ||
< | <syntaxhighlight lang=latex> | ||
% set lstlisting to accept UTF8 APL text | % set lstlisting to accept UTF8 APL text | ||
\makeatletter | \makeatletter | ||
Line 186: | Line 187: | ||
\lst@RestoreCatcodes | \lst@RestoreCatcodes | ||
\makeatother | \makeatother | ||
</ | </syntaxhighlight> | ||
=== plainTeX === | === plainTeX === | ||
Line 193: | Line 194: | ||
[[File:3270 APL font sample.png|thumb|right|Screenshot of the typeset document]] | [[File:3270 APL font sample.png|thumb|right|Screenshot of the typeset document]] | ||
< | <syntaxhighlight lang=latex> | ||
\input apldef.tex | \input apldef.tex | ||
Line 217: | Line 218: | ||
\DL | \DL | ||
\bye | \bye | ||
</ | </syntaxhighlight> | ||
== References == | == References == |
edits