Skip to content

5.14.1: a drawn page shows nothing its drawing leaves out

Choose a tag to compare

@tmoosting tmoosting released this 25 Nov 19:09
· 85 commits to main since this release

A drawn page (a graph, a map, a timeline) is made to be handed on. This release keeps off it what the drawing leaves out and what belongs to the drawer's own disk. The terminal still tells the person who draws everything.

  • Files that did not read. The page gives their count and names none: 2 files not read. The list, with why each did not read, is in the terminal of whoever drew this page. Before, it printed the first five file names with their reasons, and a file that does not read can belong to anything, a hidden element included. The terminal now lists every one (it stopped at five).
  • The map and the timeline leave out what the graph leaves out. An element hidden through the World's hidden list, and an element of a type outside the 22, were left off the graph and drawn on the other two. All three scripts now decide hidden, proposed, room and reading aid the way the onlyworlds package's reader does. --hidden, --room and --proposed draw them as before.
  • An id that two files hold. When either copy is an element the page leaves out, neither is drawn: before, a plain copy that sorted first was drawn under a hidden element's id. The terminal names both files and says which one the run took.
  • An id that is not text (a number) makes its file one of the files not read, in all three.
  • --presentation. The page names the colours file by its name alone, never its folder, and does not name one that did not read. The terminal keeps the path and the error.
  • Two foot lines on the map say "on no map drawn here" and "with no zone drawn here", which is true whether the map or zone is missing or left out.

What you may notice: a map or a timeline of a world that hides elements through the World's list now shows fewer things than it did, and its foot counts them under "hidden".

Seen and left: a folder named Elements with a capital is counted as one file not read; a name holding a broken character, and a world.json that is not an object, end the run with an error and no finished page; the timeline's foot does not count maps, pins and markers.

Changed: graph.py, map.py, timeline.py, three sentences of the draw skill. Checked with new tests that fail on the old scripts, one test that holds each left-out rule equal to the package's over thirteen values, one planted folder per script holding every left-out kind with every written file searched, two looks by an outside reader who drew folders of its own, and the release gate.