2026/11/05

From WoozleCodes
Jump to navigation Jump to search
Thursday, November 5, 2026 (#309)
prev ⇐ Wednesday Thursday Friday

References

Main Work

  • DBA
    • ⇒ problem: dumping each schema using the previous schema's filename
      • ⇒ improving logging output so I can figure out what's going on
        • ⇒ new rich-text output system
          • ⇒ "attributes"
            • ⇒ how to handle walking down the blob-tree while properly applying stacked attributes

Right now, the Style clade-family has these methods:

#
    function FormatBranch(RTextIface $o) : string;
    function FormatString(string $s) : string;
    function FormatTwigs(RTextIface $o) : string;

...where FormatBranch() splits up the blob ($o) into its string and twigs components and calls FormatString() and FormatTwigs() correspondingly.

I don't think this will really work, however, because (aside from having to crawl the tree for each attribute found on each blob) I can't think it's handling the attribute-stacking properly. (Or is it? How can I model this, either in my head or in print...)

My intuition says that the tree-crawling needs to be based in the blob-object (cRich). This is partly because that's where the rendering-process starts, but also because the blob-tree is kind of the centerpiece: each blob needs to be rendered according to its attributes (and therefore styles), including the rendering of its twigs -- so it only makes sense for the process to follow that structure.