Abstract
When writing source comments or blog posts, developers often choose to express diagrams as ASCII art, accepting the drawback that it is ugly. mon-artist is a software library, inspired by a2s, that converts blocks of text-based art into SVG elements far more pleasing to the eye than the original text. mon-artist allows custom SVG generation by revising the rules used for detecting and rendering graphical “paths” within the text, and uses a declarative DSL to encode its rendering rules.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
O’Dell, D.H.: ASCIIToSVG: an ASCII art diagram to SVG converter. https://9vx.org/dho/a2s/index.html
Sideris, S.: DITAA, DIagrams Through ASCII Art. http://ditaa.sourceforge.net/
Hobby, J.D.: A user’s manual for MetaPost. AT&T Bell Laboratories, Murray Hill (1992)
Tantau, T.: The TikZ and PGF packages: manual for version 3.0.0. (2015)
Gansner, E.R., North, S.C.: An open graph visualization system and its applications to software engineering. Softw. Pract. Exp. 30, 1203–1233 (2000)
Sveidqvist, K.: Mermaid - generation of diagrams and flowcharts from text in a similar manner as markdown. https://knsv.github.io/mermaid/
Booch, G., Rumbaugh, J., Jacobson, I.: Unified Modeling Language User Guide. Addison-Wesley Object Technology Series, 2nd edn. Addison-Wesley Professional, Reading (2005)
Jackson, D.: Alloy: a lightweight object modelling notation. ACM Trans. Softw. Eng. Methodol. 11, 256–290 (2002)
McTernan, M.: Mscgen. http://www.mcternan.me.uk/mscgen/
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Klock, F.S. (2017). A Declarative DSL for Customizing ASCII Art. In: Lierler, Y., Taha, W. (eds) Practical Aspects of Declarative Languages. PADL 2017. Lecture Notes in Computer Science(), vol 10137. Springer, Cham. https://doi.org/10.1007/978-3-319-51676-9_13
Download citation
DOI: https://doi.org/10.1007/978-3-319-51676-9_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-51675-2
Online ISBN: 978-3-319-51676-9
eBook Packages: Computer ScienceComputer Science (R0)