16

I'd like to produce unicode art with artist-mode. But it appears that artist-mode only supports ASCII art.

How can I configure artist-mode to produce instead of

  +---------------+
  |               |
  |       +-------+--+
  |       |       |  |
  |       |       |  |
  |       |       |  |
  +-------+-------+  |
          |          |
          |          |
          |          |
          +----------+

this

  ┌───────────────┐
  │               │
  │       ┌───────┼──┐
  │       │       │  │
  │       │       │  │
  │       │       │  │
  └───────┼───────┘  │
          │          │
          │          │
          │          │
          └──────────┘
Flow
  • 564
  • 6
  • 17
  • 4
    I actually read "how can I draw a unicorn with artist-mode" :-) unicode makes so much more sense... The characters are actually hardcoded, you would have to fork artist.el and replace/adapt the (XXX-char) functions. – Tom Regner Sep 25 '14 at 09:47

1 Answers1

11

There is nice package by TTN called aau2 which is available in GNU ELPA.

I tried to test it. result is nice as you expected.

M-x package-install RET ascii-art-to-unicode RET
\select region/
M-x aa2u RET

Edit: just for reference, here is mailing list link for an example. http://lists.gnu.org/archive/html/help-gnu-emacs/2014-05/msg00316.html

kindahero
  • 528
  • 4
  • 11