walkmap.read-svg

Utility functions for scalable vector graphics (SVG) into walkmap structures.

command-string->vertices

(command-string->vertices s)

Return the destination of each successive line (l, L) and move (m, M) command in this string s, expected to be an SVG path command string.

match->vertex

(match->vertex match-vector x y)

TODO: write docs

path-elt->path

(path-elt->path elt)

Given the SVG path element elt, return a walkmap path structure representing the line (l, L) and move (m, M) commands in that path.

progeny

(progeny elt predicate)

Return all the nodes in the XML structure below this elt which match this predicate.

read-svg

(read-svg file-name)(read-svg file-name map-kind)

TODO: write docs

upper-case?

(upper-case? s)

TODO: write docs