From 602b34bc0c0bcbc89445b6c1834a0eb25e9b644f Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 11 Jan 2020 21:46:43 -0500 Subject: [PATCH] mathtext: full strings #260 --- src/poc/mathtext.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/poc/mathtext.cpp b/src/poc/mathtext.cpp index 23e915378..7a5c5f24d 100644 --- a/src/poc/mathtext.cpp +++ b/src/poc/mathtext.cpp @@ -9,24 +9,17 @@ int mathtext(struct notcurses* nc){ const int HEIGHT = 9; const int WIDTH = dimx; struct ncplane* n = ncplane_new(nc, HEIGHT, WIDTH, dimy - HEIGHT - 1, dimx - WIDTH - 1, NULL); - cell b = CELL_TRIVIAL_INITIALIZER; - cell_set_bg_alpha(&b, CELL_ALPHA_TRANSPARENT); - cell_set_fg_alpha(&b, CELL_ALPHA_TRANSPARENT); - ncplane_set_base(n, &b); - cell_release(n, &b); if(n){ struct ncplane* stdn = notcurses_stdplane(nc); - ncplane_set_bg_alpha(n, CELL_ALPHA_TRANSPARENT); - // FIXME reenable the left parts of these strings, issue #260*/ - ncplane_printf_aligned(n, 0, NCALIGN_RIGHT, /*∮E⋅da=Q,n→∞,∑f(i)=∏g(i)*/"⎧⎡⎛┌─────┐⎞⎤⎫"); + ncplane_printf_aligned(n, 0, NCALIGN_RIGHT, "∮E⋅da=Q,n→∞,∑f(i)=∏g(i)⎧⎡⎛┌─────┐⎞⎤⎫"); ncplane_printf_aligned(n, 1, NCALIGN_RIGHT, "⎪⎢⎜│a²+b³ ⎟⎥⎪"); - ncplane_printf_aligned(n, 2, NCALIGN_RIGHT, /*∀x∈ℝ:⌈x⌉=−⌊−x⌋,α∧¬β=¬(¬α∨β)*/"⎪⎢⎜│───── ⎟⎥⎪"); + ncplane_printf_aligned(n, 2, NCALIGN_RIGHT, "∀x∈ℝ:⌈x⌉=−⌊−x⌋,α∧¬β=¬(¬α∨β)⎪⎢⎜│───── ⎟⎥⎪"); ncplane_printf_aligned(n, 3, NCALIGN_RIGHT, "⎪⎢⎜⎷ c₈ ⎟⎥⎪"); - ncplane_printf_aligned(n, 4, NCALIGN_RIGHT, /*ℕ⊆ℕ₀⊂ℤ⊂ℚ⊂ℝ⊂ℂ(z̄=ℜ(z)−ℑ(z)⋅𝑖)*/"⎨⎢⎜ ⎟⎥⎬"); + ncplane_printf_aligned(n, 4, NCALIGN_RIGHT, "ℕ⊆ℕ₀⊂ℤ⊂ℚ⊂ℝ⊂ℂ(z̄=ℜ(z)−ℑ(z)⋅𝑖)⎨⎢⎜ ⎟⎥⎬"); ncplane_printf_aligned(n, 5, NCALIGN_RIGHT, "⎪⎢⎜ ∞ ⎟⎥⎪"); - ncplane_printf_aligned(n, 6, NCALIGN_RIGHT, /*⊥