laurent.orseau
2021-7-14 14:34:38

Request For Comments: text-block The https://pkgs.racket-lang.org/package/text-block\|text-block package [https://docs.racket-lang.org/text-block/\|docs] is in RFC phase, which means that now is the time to propose backward incompatible changes. It’s a bit like(*) pict or LaTeX, but only using 2d unicode text. Here’s what it can produce:


laurent.orseau
2021-7-14 14:35:25

(*) It’s obviously a pretty poor replacement for LaTeX, so don’t expect too much from it either :slightly_smiling_face:

This example is produced by <https://github.com/Metaxal/text-block/blob/main/examples/example3.rkt|this code>.

The documentation on the Racket server is partly out of date—for an up-to-date doc, just install the package raco pkg install text-block.


spdegabrielle
2021-7-14 19:48:15

Does is rely on fixed width glyphs for rendering?


laurent.orseau
2021-7-14 20:02:54

Indeed it does. It would be a nightmare otherwise :slightly_smiling_face:


spdegabrielle
2021-7-14 20:08:45

I’m confused. Is the ‘canvas’ a terminal/buffer?


laurent.orseau
2021-7-14 20:25:40

yes, or DrRacket’s interactions, but it’s all text


laurent.orseau
2021-7-14 20:47:38

Why are you confused?


spdegabrielle
2021-7-14 21:40:28

I just didn’t get the monospace thing but it makes sense given the context