Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 27, 2016, 05:24:23 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Drawskrit  (Read 3611 times)

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,186
    • View Profile
    • Donate to Member
Drawskrit
« on: December 19, 2014, 03:43:04 PM »
My NANY contribution for this year is a simple description language for drawings and diagrams (which I've named Drawskrit). My main goal is to be able to describe diagrams with text. The description language should be natural and simple (I don't want a diagram programming language).

Its current state is experimental. I have a JavaScript implementation that demonstrates the current specification. I'm afraid it's not very useful yet though. I'm not sure I'll ever get it to a state where it'll be powerful enough to specify real-world non-toy diagrams without becoming a complex monster language.

A few of the current obvious shortcomings:
  • needs more shapes (e.g. arrows)
  • current text alignment sucks (specification bug)
  • dotted/dashed looks horrible with thick lines (implementation bug)
  • needs more documentation (e.g. layers)
  • JS implementation needs to be decoupled from the HTML demo page

If I ever get it to a state where it's actually useful, I'm planning to implement it as a cross-platform tool which can be integrated into an automated build process.

A non-formal specification (i.e. a description) and the JavaScript implementation can be found here:

https://github.com/phitsc/drawskrit

Drawskrit is open source.

If someone wants to play around with it please direct your browser here:

http://rawgit.com/ph...er/js/drawskrit.html

As a first example, paste the following text into the big text box on the left of the above web page:

orange background filled shapes
_
small blue circle small green circle
tiny purple square big red triangle tiny purple square
small olive smile

==
fat navy huge empty dashed circle

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,253
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Drawskrit
« Reply #1 on: December 19, 2014, 03:45:24 PM »
that's pretty cool.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 10,243
    • View Profile
    • Donate to Member
Re: Drawskrit
« Reply #2 on: December 19, 2014, 04:10:56 PM »
very nice :up:

yellow background empty shapes

-
small blue circle small green circle
tiny purple square big red triangle tiny purple square
small olive smile

Screenshot - 2014-12-19 , 23_10_04.pngDrawskrit
Tom

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,841
    • View Profile
    • Donate to Member
Re: Drawskrit
« Reply #3 on: December 19, 2014, 07:20:19 PM »
Love the live update!



Quote
black background filled shapes

small red circle
small blue circle small green circle
tiny purple triangle big yellow smile tiny purple triangle


==
fat orange huge empty dashed circle

Jibz

  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,119
    • View Profile
    • Donate to Member
Re: Drawskrit
« Reply #4 on: December 20, 2014, 01:50:13 AM »
Almost like handwriting PostScript, except without the reverse polish notation :D.

Mattes57

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 18
    • View Profile
    • Donate to Member
Re: Drawskrit
« Reply #5 on: January 05, 2015, 11:48:02 AM »
Interesting concept.
Will it be possible to specify exact sizes?

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,186
    • View Profile
    • Donate to Member
Re: Drawskrit
« Reply #6 on: January 05, 2015, 03:28:15 PM »
Interesting concept.
Will it be possible to specify exact sizes?

The current concept assumes that shapes change their sizes depending on with how many other shapes they have to share the available space.

So with exact size, do you mean the size within one cell, or within the whole drawing?

Mattes57

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 18
    • View Profile
    • Donate to Member
Re: Drawskrit
« Reply #7 on: January 06, 2015, 04:16:57 AM »
With "exact size", I meant specifying for example, a square that is 100x100 pixel