ascii-art-to-unicode: ASCII Art to Unicode Box Drawing converter

[ bsd3, library, program, unclassified ] [ Propose Tags ]

aa2u converts ASCII Art box drawings to Unicode.

> aa2u
+-------------+
| Hello World |
+-------------+
^D
┌─────────────┐
│ Hello World │
└─────────────┘

For more examples see the doctest suite in Text.AsciiArt.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1
Dependencies ascii-art-to-unicode, base (>=4.7 && <5), comonad, strict [details]
License BSD-3-Clause
Copyright 2017 Franz Thoma
Author Franz Thoma
Maintainer f.m.thoma@googlemail.com
Home page https://github.com/fmthoma/ascii-art-to-unicode#readme
Source repo head: git clone https://github.com/githubuser/ascii-art-to-unicode
Uploaded by fmthoma at 2017-04-16T12:40:59Z
Distributions NixOS:0.1.0.1
Executables aa2u
Downloads 1659 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-04-16 [all 1 reports]

Readme for ascii-art-to-unicode-0.1.0.0

[back to package description]

ASCII art to Unicode converter

Small CLI program to convert ASCII box drawings to unicode. Inspired by svgbob and The Monads Hidden Behind Every Zipper.

> aa2u
+-------------+             |
| Hello World |             |  -----+
+-------------+             |       |     +--+
                            |       +-----+  |
----------------------------+                |
                            |         +------+
          +-----+---.       |         |
          |     +---+       |   +--+  |
      .---|         |---.   |   |  |  |
      |   +---------+   |#  |   |  |  |
      |                 |#  |   |  +--+
      '-----------------'#  |   +---------+
        ##################  |

+------+-----+---------+
| This | is  | a table |
+------+-----+---------+
| It   | has | some    |
+------+-----+---------+
| values     |         |
+------+-----+---------+
| 0    | 1   | 2  | 3  |
+------+-----+----+----+
^D
┌─────────────┐             │
│ Hello World │             │  ─────┐
└─────────────┘             │       │     ┌──┐
                            │       └─────┘  │
────────────────────────────┤                │
                            │         ┌──────┘
          ┌─────┬───╮       │         │
          │     └───┤       │   ┌──┐  │
      ╭───│         │───╮   │   │  │  │
      │   └─────────┘   │█  │   │  │  │
      │                 │█  │   │  └──┘
      ╰─────────────────╯█  │   └──────────
        ██████████████████  │

┌──────┬─────┬─────────┐
│ This │ is  │ a table │
├──────┼─────┼─────────┤
│ It   │ has │ some    │
├──────┴─────┼─────────┤
│ values     │         │
├──────┬─────┼─────────┤
│ 0    │ 1   │ 2  │ 3  │
└──────┴─────┴────┴────┘

Usage:

aa2u > outfile  # Reads from stdin
aa2u < infile   # Prints to stdout
aa2u infile     # Input file as argument works as well
aa2u < infile > outfile  # Convert a file