Skip to main content

A Declarative DSL for Customizing ASCII Art

  • Conference paper
  • First Online:
Book cover Practical Aspects of Declarative Languages (PADL 2017)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 10137))

Included in the following conference series:

  • 488 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. O’Dell, D.H.: ASCIIToSVG: an ASCII art diagram to SVG converter. https://9vx.org/dho/a2s/index.html

  2. Sideris, S.: DITAA, DIagrams Through ASCII Art. http://ditaa.sourceforge.net/

  3. Hobby, J.D.: A user’s manual for MetaPost. AT&T Bell Laboratories, Murray Hill (1992)

    Google Scholar 

  4. Tantau, T.: The TikZ and PGF packages: manual for version 3.0.0. (2015)

    Google Scholar 

  5. Gansner, E.R., North, S.C.: An open graph visualization system and its applications to software engineering. Softw. Pract. Exp. 30, 1203–1233 (2000)

    Article  MATH  Google Scholar 

  6. Sveidqvist, K.: Mermaid - generation of diagrams and flowcharts from text in a similar manner as markdown. https://knsv.github.io/mermaid/

  7. Booch, G., Rumbaugh, J., Jacobson, I.: Unified Modeling Language User Guide. Addison-Wesley Object Technology Series, 2nd edn. Addison-Wesley Professional, Reading (2005)

    Google Scholar 

  8. Jackson, D.: Alloy: a lightweight object modelling notation. ACM Trans. Softw. Eng. Methodol. 11, 256–290 (2002)

    Article  Google Scholar 

  9. McTernan, M.: Mscgen. http://www.mcternan.me.uk/mscgen/

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Felix S. Klock II .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics