-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
155 lines (143 loc) · 6.39 KB
/
index.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<title>BQN386</title>
<style>
@font-face {
font-family: "BQN386";
src: url("BQN386.woff2");
}
body {
font-size: 16px;
background-color: #181818;
color: #D2D2D2;
margin: 1em auto;
max-width: 43em;
padding: 0 0.62em;
line-height: 1.6;
}
body, code, .code, textarea {
font-family: BQN386, "BQN386 Unicode";
}
.code, code, textarea {
background-color: #141414;
color: #D2D2D2;
border: 1px solid rgba(255,255,255,.1);
white-space:pre-wrap;
}
.code, textarea {
padding: .8em;
border-radius: 6px;
}
textarea {
font-size: 16px;
width: 100%;
height: 8em;
box-sizing: border-box;
}
code {
padding: 0.15em 0.1em 0.05em;
background-color: #222;
border-color: #333333;
border-radius: 2px;
}
table, tr, th, td {
padding: 0.4em 0.8em;
border: 1px solid #343434;
box-sizing: border-box;
border-spacing: 0;
border-collapse: collapse;
}
td.f {
padding: 0.4em 0.6em;
text-align: right;
width: 100%;
}
td.c {
white-space:pre-wrap;
}
tr {
background-color: #1c1c1c;
}
tr:nth-child(2n) {
background: #171717;
}
thead,th {
background-color: #141414;
}
table {
border-radius: 6px;
vertical-align: middle;
}
a {
color: #a7dbc6;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1 {
margin-bottom: 0;
line-height: 1;
}
#title {
text-align: center;
margin-bottom: 2em;
}
::-webkit-scrollbar-button, ::-webkit-scrollbar-track {
display:none;
}
::-webkit-scrollbar-thumb {
background-color:#666;
}
::-webkit-scrollbar {
background-color:#444;
}
</style>
</head>
<body>
<div id=title><h1>BQN386</h1><a href="BQN386.ttf">ttf</a>, <a href="BQN386.woff2">woff2</a></div>
An APL and BQN font extending <a href="https://abrudz.github.io/APL386/">APL386</a> by
Adám Brudzewsky, which is based on <a href="http://apl385.com/">APL385</a> by Adrian Smith.
<br><br>
This font keeps regular APL characters mostly intact (with an exception being making <code>○</code>-based charcters larger):
<br>
<div class="code">⎕⍞∆⍙ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_
^⌹⍳⍴!%*+,-<=>?|~⊢⊣⌷≤≥≠∨∧÷×∊↑↓○⌈⌊⊂⊃∩∪⊥⊤⍱⍲⍒⍋⍉⌽⊖⍟⍕⍎⍪≡≢⍷⍸⊆⊇⍧⍮√ϼ…
¨⍨⌸⍁⍩ᑈᐵ⌶/\& .@∘⌺⍫⍣⍢⍤⍛⍡⍥⍠ 0123456789¯∞ ⍬#⍺⍵⍶⍹∇{}:⋄←→</div>
<br>
Example of BQN characters:
<div class="code">+-×÷⋆√⌊⌈∧∨¬|=≠≤<>≥≡≢⊣⊢⥊∾≍⋈↑↓↕⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔
`˜˘¨⁼⌜´˝˙ ·• ∘⊸⟜○⌾⎉⚇⍟⊘◶⎊
π‿∞‿@↩←⇐→,⋄ 𝕨𝕩𝔽𝔾𝕎𝕏𝕗𝕘𝕊𝕤ℝ𝕣⟨⟩</div>
<br>
Try it:
<br>
<textarea spellcheck="false" placeholder="Type here..."></textarea>
<br>
All characters:
<div class="code" id="allchars"></div>
<br>
<div id="list"></div>
<script>
let chars = [..." !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƆƐƒƖƩǍǎǏǐǑǒǓǔǝǢǣǦǧǨǩǰǴǵǸǹǺǻǼǽǾǿȞȟȦȧȨȩȮȯȲȳȷɐɑɒɔɘəɛɜɩʃˆ˘˙˜˝̀́̂̃̄̅̆Ͷͷͻͼͽ;ͿΆ·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϕϖϜϝϱϲϳϴϵ϶ϷϸϹϼϽϾϿЀЁЂЃЄЅІЇЈЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяѐёѓєѕіїјўᐵᑈ–—―‖‗‘’‚‛“”„‟†‡•…‰‹›‼‽‿⁄⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎₧€ℝ™←↑→↓↔↕↖↗↘↙↩↶↷⇐⇧∅∆∇∉∊∎∏∐∑−∓∔∕∖∗∘∙√∛∜∞∣∥∧∨∩∪∫∵∼∾≈≉≍≠≡≢≣≤≥⊂⊃⊆⊇⊏⊐⊑⊒⊔⊖⊘⊙⊚⊛⊝⊢⊣⊤⊥⊸⊻⊼⊽⋄⋅⋆⋈⋔⌈⌉⌊⌋⌜⌦⌫⌶⌷⌸⌹⌺⌻⌼⌽⌾⌿⍀⍁⍂⍃⍄⍅⍆⍇⍈⍉⍊⍋⍌⍍⍎⍏⍐⍑⍒⍓⍔⍕⍖⍗⍘⍙⍚⍛⍜⍝⍞⍟⍠⍡⍢⍣⍤⍥⍦⍧⍨⍩⍪⍫⍬⍭⍮⍯⍰⍱⍲⍳⍴⍵⍶⍷⍸⍹⍺⎉⎊⎕⎶⏎␀ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ─━│┃┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╔╗╚╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕▯▲▼◇◊○◎◦◯◴◵◶◷♀♂♔♕♖♗♘♙♚♛♜♝♞♟♠♡♢♣♤♥♦♧⚇⟜⟦⟧⟨⟩⥊⥌⦃⦄⦅⦆⧵⬫𝔽𝔾𝕊𝕎𝕏𝕗𝕘𝕣𝕤𝕨𝕩🠬🠮"];
chars.sort();
let charset = new Set(chars.map(c=>c.codePointAt()));
let rows = new Set();
for (let c of charset) rows.add(c>>4);
let tbl = [...rows].sort((a,b)=>a-b).map(c => [
(c<<4).toString(16).padStart(4,'0').toUpperCase(),
...Array(16).fill().map((_,i)=>(c<<4)+i).map(c=>charset.has(c)? String.fromCodePoint(c) : '')
]);
allchars.innerText = chars.join('').replace(/[\x7f\xa0\xad]/g, '').match(/.{1,50}/g).join('\n').replace(/[\u0300\u0301\u0302\u0303\u0304\u0305\u0306]/g, c=>'◌'+c);
list.innerHTML = '<table><tbody>'+
tbl.map(r=>
'<tr>'+r.map((c,i)=>
`<td class=${i==0?'f':'c'}>`+
c.replace('<','<')+
'</td>').join('')+
'</tr>').join('')+
'</tbody></table>'
</script>
</body>
</html>