From feafc455d067b3c6ab4a969db050a13540d4bd8a Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 3 Nov 2021 15:57:17 -0400 Subject: =?UTF-8?q?Change=20=E2=89=8D=E2=97=8B<=20to=20=E2=8B=88=20through?= =?UTF-8?q?out=20diagram-making=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/arithmetic.md | 6 +++--- doc/array.md | 2 +- doc/depth.md | 2 +- doc/fold.md | 6 +++--- doc/functional.md | 2 +- doc/group.md | 2 +- doc/map.md | 4 ++-- doc/reshape.md | 2 +- doc/scan.md | 6 +++--- doc/search.md | 4 ++-- doc/selfcmp.md | 2 +- doc/take.md | 2 +- 12 files changed, 20 insertions(+), 20 deletions(-) (limited to 'doc') diff --git a/doc/arithmetic.md b/doc/arithmetic.md index fa1067bf..03b02c3c 100644 --- a/doc/arithmetic.md +++ b/doc/arithmetic.md @@ -81,14 +81,14 @@ lg ← "g"At"stroke=currentColor|stroke-width=0.6|opacity=0.5" Text ← ("text" Attr "dy"‿"0.35em"∾Pos)⊸Enc types ← "Number"‿"Character" -t ← ((1-˜0.65⌊↕3)(0.25⊸+⊸≍¨≍○<≍˜¨)1∾0.5+↕2) (Text¨⟜(<∾types˙))¨ "𝕨"‿"𝕩" +t ← ((1-˜0.65⌊↕3)(0.25⊸+⊸≍¨⋈≍˜¨)1∾0.5+↕2) (Text¨⟜(<∾types˙))¨ "𝕨"‿"𝕩" ((-p+d×0.1‿0.3)∾dim) SVG ⟨ "rect" Elt rc ∾ (Pos 0‿0)∾"width"‿"height"≍˘FmtNum 2×d ("rect" Elt hc ∾ ("width"‿"height"≍˘FmtNum d׬2×hp)∾˜Pos∘+⟜hp)∘≍¨⟜⌽ ↕2 - tg Enc "end"‿"middle" ("g"Attr"text-anchor"≍○<⊢)⊸Enc¨ t + tg Enc "end"‿"middle" ("g"Attr"text-anchor"⋈⊢)⊸Enc¨ t cg Enc (⥊≍⌜˜0.5+↕2) Text¨ 2‿1‿1 / Highlight¨ "+ -"‿"+ "‿" -" - lg Enc (<"xy"≍⌜"12") ("line" Elt ≍˘○⥊)⟜(FmtNum d×⊢)¨ ≍○<⟜⌽ 1‿1≍¯0.5‿2.2 + lg Enc (<"xy"≍⌜"12") ("line" Elt ≍˘○⥊)⟜(FmtNum d×⊢)¨ ⋈⟜⌽ 1‿1≍¯0.5‿2.2 ⟩ --> diff --git a/doc/array.md b/doc/array.md index 5c50ca08..ffed6002 100644 --- a/doc/array.md +++ b/doc/array.md @@ -25,7 +25,7 @@ pg ← "class=purple|stroke-width=2|style=fill:none" Text ← ("text" Attr "dy"‿"0.33em"∾Pos)⊸Enc Line ← "line" Elt ("xy"≍⌜"12")≍˘○⥊ FmtNum -Path ← "path"⊘("path"At⊣) Elt "d"≍○<⊢ +Path ← "path"⊘("path"At⊣) Elt "d"⋈⊢ Pd ← ·∾∾¨⟜FmtNum Rd ← Pos∘⊣ ∾ "width"‿"height"≍˘FmtNum∘⊢ Rect ← "rect"⊸At⊸Elt diff --git a/doc/depth.md b/doc/depth.md index d5df81ec..ae15e879 100644 --- a/doc/depth.md +++ b/doc/depth.md @@ -13,7 +13,7 @@ tc ← "text"At"dy=-0.2em|class=Number" bc ← "path"At"class=bluegreen|stroke-width=2|style=fill:none|opacity=0.4" dc ← "text"At"font-size=18px|text-anchor=start|opacity=0.9" -Path ← bc Elt "d"≍○<⊢ +Path ← bc Elt "d"⋈⊢ Brak ← { P ← ∾"M l l "∾¨ ·FmtNum∘⥊ ∾ Path (d×⟨0.6×𝕩-0.75,0.4⟩) (-⌾⊑⊸P ∾ P⟜⌽) -⌾⊑⊸≍5‿13 diff --git a/doc/fold.md b/doc/fold.md index f17a6f62..2cd7fdb7 100644 --- a/doc/fold.md +++ b/doc/fold.md @@ -15,13 +15,13 @@ bg ← "class=bluegreen|stroke-width=3|style=fill:none|opacity=0.7" lg ← "class=lilac|stroke-width=2" Text ← ("text" Attr "dy"‿"0.32em"∾ ·Pos d⊸×)⊸Enc -Path ← "path" Elt "d"≍○<⊢ +Path ← "path" Elt "d"⋈⊢ Line ← "line" Elt (⍉"xy"≍⌜"12")≍˘○⥊ ·FmtNum ·d⊸ע⊢ Brak ← { l ← 6‿15 P ← ∾"M l l "∾¨ ·FmtNum∘⥊ ∾ - Path ∾ (((-⊸≍0.4)+0‿¯1⊏𝕨)((0‿¯1×l)+d×≍)⌜𝕩) P¨ ≍○<⟜⌽ -⌾⊑⊸≍l + Path ∾ (((-⊸≍0.4)+0‿¯1⊏𝕨)((0‿¯1×l)+d×≍)⌜𝕩) P¨ ⋈⟜⌽ -⌾⊑⊸≍l } _pair ← {1(↓𝔽-⊸↓)⊢} @@ -39,7 +39,7 @@ lp ← 0.35 ((lpׯ0.5‿1≍1.2‿¯0.5)+≍)¨_pair sp ⟨sx {⍉(≍˜𝕨)≍(≍⟜-lp)+𝕩≍1⊑ty}○⊑ sy⟩ ⟩ - "text-anchor=end" Ge (¯1.1≍¨ty) Text¨ ≍○<⟜(ft∾(Highlight"´")∾⊢) "𝕩" + "text-anchor=end" Ge (¯1.1≍¨ty) Text¨ ⋈⟜(ft∾(Highlight"´")∾⊢) "𝕩" (tp∾<(⊑sx)≍1⊑ty) Text¨ xt∾⊏zt sp Text¨ (¯1↓xt) ∾⟜ft⊸∾¨ 1↓zt bg Ge tx Brak ⊑ty diff --git a/doc/functional.md b/doc/functional.md index dae5ba18..071ecd2c 100644 --- a/doc/functional.md +++ b/doc/functional.md @@ -50,7 +50,7 @@ Circ ← { tr ← ("translate"Fn p) ∾ 0⊸≠◶⟨"","rotate"⊸Fn⟩t tp ← "textPath"Attr∘‿2⥊⟨"href","#"∾id,"startOffset","%"∾˜FmtNum 25+6×l⟩ Ell ← ∾"maa"∾⟜Fmt¨0⌾(¯1⊸⊑)⊸{⟨-𝕨⟩∾(𝕩∾0‿1∾¬o)⊸∾¨2‿¯2×<𝕨} - Path ← "path" Elt ∾⟜("d"≍○ diff --git a/doc/map.md b/doc/map.md index 469c7c5c..c8a4d65d 100644 --- a/doc/map.md +++ b/doc/map.md @@ -34,7 +34,7 @@ Gb ← { Text ← ("text" Attr Pos)⊸Enc Line ← "line" Elt ("xy"≍⌜"12")≍˘○⥊ ·FmtNum d×⊢ -Path ← "path" Elt "d"≍○<⊢ +Path ← "path" Elt "d"⋈⊢ { dim ← 7.5‿2.2 ⋄ sh ← ¯2.3‿¯0.1 tx ← ↕≠xt ⋄ ty ← 0.7+↕2 @@ -126,7 +126,7 @@ Except for the more sophisticated shape, this result is exactly what you'd get i tx ← ↕≠xt ⋄ ty ← 0.7+↕3 da ← "id=gr|gradientUnits=userSpaceOnUse|x1=0|x2=0|y1=14.4|y2=216" - Stop ← "stop" Elt "offset"‿"stop-color"≍˘≍○< + Stop ← "stop" Elt "offset"‿"stop-color"≍˘⋈ defs ← "defs" Enc ("linearGradient"At da) Enc "0%"‿"70%" Stop¨ lcol ((∾˜d)×((-∾+˜)0.5‿0.2)+sh∾dim) SVG defs ∾ g Ge ⟨ diff --git a/doc/reshape.md b/doc/reshape.md index f0bddc50..fa939ce4 100644 --- a/doc/reshape.md +++ b/doc/reshape.md @@ -16,7 +16,7 @@ lg ← "stroke=#3b285c|fill=none|stroke-width=4|stroke-linejoin=round|opacity=0. Text ← ("text" Attr "dy"‿"0.33em"∾Pos)⊸Enc Pd ← ·∾∾¨⟜FmtNum -Path ← ("path"At⊣) Elt "d"≍○<⊢ +Path ← ("path"At⊣) Elt "d"⋈⊢ pad ← 48‿51 ⋄ sh ← 0‿0 dim ← (pad-0‿7) + ¯1⊑¨ tx‿ty ← pad+d× ¯1(⊑{⟨↕𝕨,⥊+⌜´(↕¨×·×`⌾⌽1+«)𝕩⟩}↓)≢xt diff --git a/doc/scan.md b/doc/scan.md index 85758875..73ce3f0a 100644 --- a/doc/scan.md +++ b/doc/scan.md @@ -16,13 +16,13 @@ bg ← "class=bluegreen|stroke-width=3|style=fill:none|opacity=0.6" lg ← "class=lilac|stroke-width=2" Text ← ("text" Attr "dy"‿"0.32em"∾ ·Pos d⊸×)⊸Enc -Path ← "path" Elt "d"≍○<⊢ +Path ← "path" Elt "d"⋈⊢ Line ← "line" Elt ("xy"≍⌜"12")≍˘○⥊ ·FmtNum d×⊢ Brak ← { l ← 6‿15 P ← ∾"M l l "∾¨ ·FmtNum∘⥊ ∾ - Path ∾ (((-⊸≍0.4)+0‿¯1⊏𝕨)((0‿¯1×l)+d×≍)⌜𝕩) P¨ ≍○<⟜⌽ -⌾⊑⊸≍l + Path ∾ (((-⊸≍0.4)+0‿¯1⊏𝕨)((0‿¯1×l)+d×≍)⌜𝕩) P¨ ⋈⟜⌽ -⌾⊑⊸≍l } VL ← ≍˜⊸≍⟜((≍⟜-0.3)⊸+) @@ -37,7 +37,7 @@ dim ← ⟨2.5+≠tx,0.75+1⊑ty⟩ ⋄ sh ← ¯2.3‿0 ∾ sx {𝕨⊸VL¨⌽⌾(1⊸⊑)<˘ty≍˘𝕩}¨ sy sx ((¯1‿¯0.14≍¯0.3‿¯0.07)+≍)¨ sy ⟩ - cg Ge (¯1.1≍¨ty) Text¨ ≍○<⟜(ft∾(Highlight"`")∾⊢) "𝕩" + cg Ge (¯1.1≍¨ty) Text¨ ⋈⟜(ft∾(Highlight"`")∾⊢) "𝕩" "font-size=21px" Ge (⍉tx≍⌜ty) Text¨ xt≍zt "font-size=19px" Ge sx (≍ Text ft˙)¨ sy bg Ge tx⊸Brak¨ ty diff --git a/doc/search.md b/doc/search.md index 266bd484..5a093dc7 100644 --- a/doc/search.md +++ b/doc/search.md @@ -25,10 +25,10 @@ tp ← y ≍˜¨¨ 1‿4/⟨tx,↕lf⟩ hp ← 0.2‿¯0.45(+⟜(1‿0×sh)≍¯2⊸×⊸+)1‿0×dim L0 ← ("xy"≍⌜"12")≍˘○⥊ ·FmtNum d × ·⌽˘ (≍˘⟜-0.08×4≍˜×∘-˜´) + ≍⟜(2↑y) LL ← "line" Elt =⟜li "mask"‿"url(#m)"⊸∾⍟⊣ L0∘≍ -Ilg← (1⊸+∾-)∘= <⊸(⊔¨) ∾≍○<∾○(↕∘≠) +Ilg← (1⊸+∾-)∘= <⊸(⊔¨) ∾⋈∾○(↕∘≠) lgg ← "linearGradient"At"id=grad|x2=0|y2=1" -Stop ← "stop" Elt "offset"‿"stop-color"≍˘≍○< +Stop ← "stop" Elt "offset"‿"stop-color"≍˘⋈ defs ← "defs" Enc ("mask"At"id=m") Enc ⟨ lgg Enc "0.6"‿"0.9" Stop¨ "#000"‿"#fff" "rect" Elt "fill"‿"url(#grad)" ∾ ((sh⊑⊸≍⊑) Rp dim⊑⊸≍-˜´) 2↑y diff --git a/doc/selfcmp.md b/doc/selfcmp.md index e4330dd9..967f7974 100644 --- a/doc/selfcmp.md +++ b/doc/selfcmp.md @@ -16,7 +16,7 @@ xl ← ≠ xc ← ⊐ xt ← '''(Highlight∾∾⊣)¨"mississippi" xn ← ≠ xu ← xt /˜ xf ← 0= xo ← ⊒ xt Text ← ("text" Attr "dy"‿"0.32em"∾(Pos d⊸×))⊸Enc -Path ← "path" Elt "d"≍○<·∾⊣∾¨·FmtNums(d⊏˜∊⟜" Vv")⊸× +Path ← "path" Elt "d"⋈·∾⊣∾¨·FmtNums(d⊏˜∊⟜" Vv")⊸× Rp ← Pos⊸∾⟜("width"‿"height"≍˘FmtNum)○(d⊸×) tx ← ↕xl ⋄ y ← » yd ← +`0.6+1.2‿1‿xn‿1.8‿1.8 diff --git a/doc/take.md b/doc/take.md index d90f4055..0244051e 100644 --- a/doc/take.md +++ b/doc/take.md @@ -20,7 +20,7 @@ Line ← "line" Elt ("xy"≍⌜"12")≍˘○⥊ ·FmtNum d×⊢ _brak ← { P ← ∾"M l l "∾¨ ·FmtNum∘⥊ ∾ - "path" Elt "d"≍○< ∾ (𝕨((0‿¯1×𝕗)+d×≍)⌜𝕩) P¨ ≍○<⟜⌽ -⌾⊑⊸≍𝕗 + "path" Elt "d"⋈ ∾ (𝕨((0‿¯1×𝕗)+d×≍)⌜𝕩) P¨ ⋈⟜⌽ -⌾⊑⊸≍𝕗 } ab ← ¯25‿12 -- cgit v1.2.3