aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-18 20:39:22 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-04-18 20:39:22 -0400
commitf2754035893cd44c290e3d50e4d5c21746ea88c8 (patch)
treea5b131bc4dfc6b9edb8fd53288cc9b110245253e /docs
parent1b8993fd8d7dafeed32f9cd74e7063953de4232e (diff)
Change site font from DejaVu BQN to BQN386
Diffstat (limited to 'docs')
-rw-r--r--docs/fonts.html4
-rw-r--r--docs/index.html2
-rw-r--r--docs/repl.js2
-rw-r--r--docs/style.css8
4 files changed, 8 insertions, 8 deletions
diff --git a/docs/fonts.html b/docs/fonts.html
index 42cf2a62..1ffd552f 100644
--- a/docs/fonts.html
+++ b/docs/fonts.html
@@ -272,9 +272,9 @@ Iosevka Term Extended
<p style="margin-top:4em">Finally, a REPL where you can enter any code you like (but remember, not all characters from these fonts are embedded—just those likely to be used in BQN).</code>
<div class="fonts">
- <input type="radio" id="f0" name="font" class="DejaVu" checked="checked"/>
+ <input type="radio" id="f0" name="font" class="DejaVu"/>
<label for="f0">DejaVu</label>
- <input type="radio" id="f1" name="font" class="BQN386"/>
+ <input type="radio" id="f1" name="font" class="BQN386" checked="checked"/>
<label for="f1">BQN386</label>
<input type="radio" id="f2" name="font" class="Fairfax"/>
<label for="f2">Fairfax</label>
diff --git a/docs/index.html b/docs/index.html
index cde1b387..fe8ae698 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -51,7 +51,7 @@
<p>More snippets are programmed into the live demo at the top of the page: hit the arrow at the right of the code window to see them. For longer samples, you can <a href="https://github.com/mlochbaum/BQN/blob/master/src/c.bqn">gaze into the abyss</a> that is the self-hosted compiler, or the <a href="https://github.com/mlochbaum/BQN/blob/master/src/r.bqn">shallower but wider abyss</a> of the runtime, or take a look at the friendlier <a href="https://github.com/mlochbaum/BQN/blob/master/md.bqn">markdown processor</a> used to format and highlight documentation files. This repository also has <a href="https://github.com/mlochbaum/BQN/blob/master/examples/fifty.bqn">some translations</a> from <a href="https://www.jsoftware.com/papers/50/">&quot;A History of APL in 50 Functions&quot;</a>.</p>
<h2 id="how-do-i-work-with-the-character-set">How do I work with the character set?</h2>
<p>Right at the beginning, you can use the bar above the online REPL to enter BQN code: hover over a character to see a short description, and click to insert it into the editor. But you'll soon want to skip the clicking and use keyboard input. I type the special characters using a backslash escape, so that, for example, typing <code><span class='Value'>\</span></code> then <code><span class='Value'>z</span></code> writes <code><span class='Function'>⥊</span></code> (the backslash character itself is not used by BQN). The online REPL supports this method out of the box, and configuration files to enable it in various other places are included with the <a href="https://github.com/mlochbaum/BQN/tree/master/editors">editor plugins</a>. There's also a <a href="https://abrudz.github.io/lb/bqn">bookmarklet</a> you can use to enable BQN input in any webpage in your browser.</p>
-<p>The <a href="https://mlochbaum.github.io/BQN/fonts.html">font comparison page</a> shows several fonts that support BQN (including the one used on this site, a modified version of DejaVu Sans Mono). Most other monospace fonts are missing some BQN characters, such as double-struck letters <code><span class='Value'>𝕨</span></code>, <code><span class='Value'>𝕩</span></code> and so on, which will cause these characters to be rendered with a fallback font and possibly have the wrong width or look inconsistent.</p>
+<p>The <a href="https://mlochbaum.github.io/BQN/fonts.html">font comparison page</a> shows several fonts that support BQN (including the one used on this site, BQN386). Most other monospace fonts are missing some BQN characters, such as double-struck letters <code><span class='Value'>𝕨</span></code>, <code><span class='Value'>𝕩</span></code> and so on, which will cause these characters to be rendered with a fallback font and possibly have the wrong width or look inconsistent.</p>
<h2 id="how-do-i-get-started">How do I get started?</h2>
<p><em>Writing good learning material for a programming language is a pretty huge task, so neither the tutorials nor the documentation are complete. With some willingness to experiment and possibly outside knowledge of array programming, it's enough to get by, just not smooth sailing.</em></p>
<p>BQN's <a href="tutorial/index.html"><strong>tutorials</strong></a> are intended as an introduction to array programming with BQN. They assume only knowledge of elementary mathematics, but will probably be hard to follow if you have <em>no</em> programming experience. BQN has a lot in common with dynamically-typed functional languages like Lisp, Julia, or Javascript, so knowledge of these languages will be particularly helpful. However, there's a significant (but shrinking) gap between the last tutorial and existing documentation. If you're motivated, you may be able to get across by reading material on other array languages like APL, J, NumPy, or Julia.</p>
diff --git a/docs/repl.js b/docs/repl.js
index b65ac21e..cc7a7cf4 100644
--- a/docs/repl.js
+++ b/docs/repl.js
@@ -125,7 +125,7 @@ doc.kb.onmousedown = ev => {
}
if (doc.demo) {
- let fonts=[["DejaVu","Mod"],["BQN386"],["Fairfax","HD"],["3270","font"],["Iosevka","Term"],["Julia","Mono"]];
+ let fonts=[["BQN386"],["DejaVu","Mod"],["Fairfax","HD"],["3270","font"],["Iosevka","Term"],["Julia","Mono"]];
let fclass = f => f==="3270"?"f"+f:f
let fontsel = '<select>'+fonts.map(f =>
'<option value="'+f[0]+'">'+f[0]+(f[1]?' '+f[1]:'')+'</option>'
diff --git a/docs/style.css b/docs/style.css
index 0431b5e4..67eab216 100644
--- a/docs/style.css
+++ b/docs/style.css
@@ -37,7 +37,7 @@ table th {
}
@font-face{
- font-family: BQN;
+ font-family: BQNMod;
src: url(DejaVuBQNSansMono.ttf) format('truetype');
}
@font-face{
@@ -45,7 +45,7 @@ table th {
src: url(FairfaxHD_sub.woff2) format('woff2');
}
@font-face{
- font-family: BQN386;
+ font-family: BQN;
src: url(BQN386.ttf) format('truetype');
}
@font-face{
@@ -60,8 +60,8 @@ table th {
font-family: f3270;
src: url(3270_sub.woff2) format('woff2');
}
-pre.DejaVu , .DejaVu .kb span, .DejaVu .code, .DejaVu .rslt { font-family:BQN,monospace; }
-pre.BQN386 , .BQN386 .kb span, .BQN386 .code, .BQN386 .rslt { font-family:BQN386,monospace; }
+pre.DejaVu , .DejaVu .kb span, .DejaVu .code, .DejaVu .rslt { font-family:BQNMod,monospace; }
+pre.BQN386 , .BQN386 .kb span, .BQN386 .code, .BQN386 .rslt { font-family:BQN,monospace; }
pre.Iosevka, .Iosevka .kb span, .Iosevka .code, .Iosevka .rslt { font-family:Iosevka,f3270,monospace; }
pre.Julia , .Julia .kb span, .Julia .code, .Julia .rslt { font-family:JuliaMono,monospace; }
pre.Fairfax, .Fairfax .kb span, .Fairfax .code, .Fairfax .rslt { font-family:FFHD,monospace; font-size:1.1rem; line-height:1.01; }