-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
apl.html
60 lines (57 loc) · 1.96 KB
/
apl.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>APL</title>
<style>
kbd {
border: 1px solid buttonshadow;
border-radius: .5ex;
padding: 0 .25ex;
margin: 0 .2ex;
background: buttonface;
}
</style>
</head>
<body>
<article>
<h1><a href="https://aplwiki.com">APL</a> language bar, key-bindings, and character compositions <a
href="."><button>More…</button></a></h1>
<p>This provides three ways to easily enter APL characters into pretty much any input field on any webpage:</p>
<ol>
<li>Use backtick <kbd>`</kbd> as prefix APL key, e.g. <kbd>`</kbd><kbd>a</kbd> gives <code>⍺</code>.</li>
<li>Enter a combo sequence and hit Tab, e.g. <kbd>a</kbd><kbd>a</kbd><kbd>Tab</kbd> gives <code>⍺</code>.
</li>
<li>Click on symbols in the language bar.</li>
</ol>
<p>Try it here: <input autofocus /></p>
<p>Hover over a symbol in the language bar for keybindings and combo sequences.</p>
<p>To enter the <code>`</code> character, press <kbd>`</kbd><kbd>Space</kbd>.
<h2>Installation</h2>
<h3>Desktop browser</h3>
<ol>
<li>Drag this link to your bookmarks bar: <a
href='javascript:(d=>{let e=d.createElement("script");e.src="https://abrudz.github.io/lb/lb.js";d.body.appendChild(e)})(document)'>APL</a>
</li>
</ol>
<h3>Mobile browser</h3>
<ol>
<li>Add a bookmark for this page.</li>
<li>Edit the bookmark's target URL address to
<code>javascript:(d=>{let%20e=d.createElement("script");e.src="https://abrudz.github.io/lb/lb.js";d.body.appendChild(e)})(document)</code>
</li>
</ol>
<h3>Webpage</h3>
<ol>
<li>Include this HTML in your page:
<code><script src="https://abrudz.github.io/lb/lb.js"></script></code></li>
</ol>
<h2>Activation</h2>
<ol>
<li>Navigate to the web page where you want to enter APL characters.</li>
<li>Click on the <em>APL</em> bookmark. The language bar should appear at the web page's top.</li>
</ol>
</article>
<script src="lb.js"></script>
</body>
</html>