dihaa: ASCII based Diagram drawing in Haskell (Idea based on ditaa)

[ gpl, graphics, program ] [ Propose Tags ] [ Report a vulnerability ]

dihaa is a tool which allows converting simple ASCII art drawings of box diagrams to images.

See documentation of Main for more details.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.2.1.1, 0.2.1.2
Change log ChangeLog.md
Dependencies base (>=4.8 && <5), FontyFruity (>=0.5.3), JuicyPixels (>=3.2.8), Rasterific (>=0.7.2), vector [details]
License GPL-2.0-only
Author Sascha Wilde
Maintainer Sascha Wilde <wilde@sha-bang.de>
Category Graphics
Home page http://sha-bang.de
Source repo head: hg clone https://bitbucket.org/sascha_wilde/dihaa
Uploaded by wilde at 2017-05-06T12:42:24Z
Distributions NixOS:0.2.1.2
Reverse Dependencies 1 direct, 0 indirect [details]
Executables dihaa
Downloads 1931 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for dihaa-0.2.1.2

[back to package description]

dihaa -- Creating Diagrams from ASCII Art

dihaa is a tool to create pictures of diagrams from ASCII art:

This is an simple example of valid dihaa input:

                                      +----------------+
                                 +--->| PNG Image File |
+-------------+      +-------+   |    +----------------+
| Text Source +----->| dihaa +---+
+-------------+      +-------+   |    +-------------------+
                         ^       +--->| UTF-8 Box Drawing |
Commandline Options -----+            +-------------------+

Building

dihaa is written in Haskell and can be build using cabal. I recommend using a sandbox for building the dependencies (Rasterific is used for image creation) and dihaa it self:

cabal sandbox init
cabal install

Usage

To process the text input call dihaa with either -p to create a PNG image or -u to create UTF-8 output using unicode box drawing elements. Try .cabal-sandbox/bin/dihaa -p test.dihaa, his will create test.dihaa.png.

For more details refer to the haddoc documentation of Main.

Acknowledgment

This tool is inspired by: https://github.com/stathissideris/ditaa which currently has far more features than dihaa.