diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-11-02 10:07:53 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-11-02 10:11:08 -0500 |
| commit | 0e8f57af12a3eda54e8e75672b0f0d67b06245e5 (patch) | |
| tree | 672b95deaa4f73575733e742e52f23674cf54189 | |
| parent | 95d9214df12c65416956a9b40b6792eafa27304f (diff) | |
Improve display of separators
| -rw-r--r-- | docs/style.css | 1 | ||||
| -rw-r--r-- | src/e.bqn | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/style.css b/docs/style.css index 622f866f..c91db5be 100644 --- a/docs/style.css +++ b/docs/style.css @@ -173,6 +173,7 @@ a:visited { color: #3d155f; } a:visited { color: #8781c1; } } +svg text { white-space: pre; } svg tspan { fill: currentColor; } @@ -6,9 +6,9 @@ pad← wh×2‿1 to ← 1+wh÷2‿3 t ← 10 -ps ← At "class=Paren|stroke=currentColor|fill=none|stroke-width=1" +ps ← At "stroke=currentColor|fill=none|stroke-width=1" rc ← At "class=code|stroke-width=1|rx=10" -gr ← "g" At "font-family=BQN,monospace|font-size=18px" +gr ← "g" At "font-family=BQN,monospace|font-size=18px|class=Paren|fill=currentColor" gt ← "g" At "font-size=15px|text-anchor=middle" gb ← "g" At "class=codeCover|stroke-width=8|stroke-linejoin=round" gf ← "g" At "opacity=0.9" @@ -39,7 +39,6 @@ GetHlcl←hlch{(+`≠¨𝕗)⍋(∾𝕗)⊸⊐} hlTag ← {"<tspan class='"∾𝕩∾"'>"}¨ hlcl Explain ← { - 𝕩↩'⋄'¨⌾((𝕩=@+10)⊸/)𝕩 b‿const‿blk‿i‿tok ← 𝕨 ba‿bc‿bo‿bp ← '0'-˜⟨ # For each instruction, number of: "11111000000000010000022000" # Arguments @@ -71,6 +70,8 @@ Explain ← { o ← hlTag ⊏˜ (n+3+role) (⊢+-×n⊸=) GetHlcl s⊏𝕩 c ← "</tspan>"¨e t ← c∾o + ilf ← /𝕩=@+10 + 𝕩 ↩ ((ilf∊s)⊏" ⋄")⌾(ilf⊸⊏)𝕩 src ← ((↕≠𝕩)∾(≠¨t)/e∾s-1) ⍋⊸⊏ 𝕩∾∾t tt← <˘⍉> ⟨o, e(𝕩⊏˜⊢+↕∘¬)¨s, c⟩ ti← s⊐(¬f)/mi |
