On Thu, Sep 11, 2025 at 09:35:30PM +0100, Deri wrote:
> This probably will not be much help, since you want to do it as character
> based. But if you want to do slides with groff, I know of three possible
> routes:-

Thank you so much for those informations. I definitely will check those
because I need some fresh ideas.

for the moment, what I started to do is to

* convert a slide into a 2D matrix of chars
* searching for patterns like ┌─────┐ to get horizontal lines
* then transpose the matrix
* searching for patterns like ┌││││││└ to match vertical lines

now I need to find the size of the "caracter box" so I can compute
the coordonates of the corners.

ths is my current sample:

        ┌────────┐┌───────┐
        │tty     ││ shell │┌──────────────┐
        │(kbd)  ─▶ 0    1─▶ ~/foo         │
        │        ││       │└──────────────┘
        │        ││       │┌──────────────┐
        │        ││      2 ─▶ /dev/null   │
        │        │└───────┘└──────────────┘
        └────────┘

Tadziu made me think of possible evolutions like rendering the boxes
with different shapes (tty, files, ...) but for now, let's focus on
the simple boxes.

regards.


-- 
Marc Chantreux
Pôle CESAR (Calcul et services avancés à la recherche)
Université de Strasbourg
14 rue René Descartes,
BP 80010, 67084 STRASBOURG CEDEX
03.68.85.60.79

Attachment: signature.asc
Description: PGP signature

Reply via email to