diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-11-01 09:26:43 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-11-01 09:27:21 -0500 |
| commit | 418f03d389ecc80008c87ef14e9fa153f3e225ef (patch) | |
| tree | 2afe2ca2ee317c187dc5d98bc55cf046e1950145 /tutorial | |
| parent | a3cbe4c5721b6f53bac1a7edbc9137120c6c43e9 (diff) | |
Commit missing SVG script tutorial/prim.bqn (for primitive infoboxes)
Diffstat (limited to 'tutorial')
| -rw-r--r-- | tutorial/prim.bqn | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tutorial/prim.bqn b/tutorial/prim.bqn new file mode 100644 index 00000000..0b2269e9 --- /dev/null +++ b/tutorial/prim.bqn @@ -0,0 +1,11 @@ +# Show keys and names for primitives +# Input is a list of "glyph%keys%Monad%Dyad" strings + +Primitives ← { + Row ← { + s ← ¯1⊸↓⌾(¯1⊸⊑) ((+`׬)⊸-'%'⊸=)⊸⊔ 𝕩∾" " + t ← ⟨0⊸Highlight, ("kbd"Enc"\"⊸∾)⍟≠⟩⊸({𝕎𝕩}¨)⌾(2⊸↑) s + "tr" Enc ((3<≠s)◶⟨2⊸/∾∾⟜" colspan='2'"¨,4⊸/⟩ ⟨"td"⟩) Enc¨ t + } + "table class='primitives'" Enc Row¨ 𝕩 +} |
