Skip to content

A Simple drawing package to make SVG and ASCII-art diagrams for RFCs

License

Notifications You must be signed in to change notification settings

nevil-brownlee/rfc-draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RFC-Draw

A simple drawing package to make SVG and ASCII-art diagrams for RFCs

RFC-draw is a python tkinter-based drawing system, with three components:

  • rfc-draw.py - interactive drawing program to create on-screen diagrams,
      and save them to rfc-draw-data (.rdd) files

  • rdd-to-svg.py - creates a drawing's SVG file that conforms to the RFC7996 SVG schema

  • rdd-to-ascii.py - creates a drawing's ASCII-art (.txt) file

rfc-draw.py let's you draw (with your mouse) three kinds of objects, in three layers, with restrictions to allow for ASCII-art:

  1. Lines
      Lines have one or more segments; each segment must be either horizontal or vertical.

  2. Rectangles
      Rectangles may have line(s) of text at their centre.

  3. Text
      A text object has one or more (centred) lines of text.

To use rfc-draw you'll need to install the following python modules:
  tkinter, math, sys, re, os, svgwrite, traceback (for POSIX and windows)
  termios (for POSIX) or msvcrt (for Windows)

To install a python module, e.g. tkinter, the (POSIX) command is
   pip3 install tkinter

If that doesn't work, you may need to use a more up-to-date version of pip,
i.e. one that matches your version of python, for example pip3.10

About

A Simple drawing package to make SVG and ASCII-art diagrams for RFCs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages