Box diagrams in HTML and Unicode

diag2box.py. Stupid little script to turn

+--------+      +-----------+
| #daft  +------+ @diagrams |
+--------+      +-----+-----+
                      |
    +-----------------+------------+
    |                              |
+---+------+               +-------+----+
| suddenly |               |            |
| become   +---------------+ to unicode |
| changed  |               |            |
+----------+               +------------+

# fragment-daft
@ fragment-diagrams

into

~~~~ {style=”line-height: 1”} ┏━━━━━━━━┓ ┏━━━━━━━━━━━┓ ┃ daft ┣━━━━━━┫ diagrams ┃ ┗━━━━━━━━┛ ┗━━━━━┳━━━━━┛ ┃ ┏━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━┓ ┃ ┃

┏━━━┻━━━━━━┓ ┏━━━━━━━┻━━━━┓ ┃ suddenly ┃ ┃ ┃ ┃ become ┣━━━━━━━━━━━━━━━┫ to unicode ┃ ┃ changed ┃ ┃ ┃

┗━━━━━━━━━━┛ ┗━━━━━━━━━━━━┛ ~~~~

More in the discussion (powered by webmentions)

  • (no mentions, yet.)