Re: [tw5] Railroad plugin: one way to setup a tiddler transclusion template

2023-06-20 Thread Charlie Veniot
Incrementally and iteratively, getting to Railroad Diagram ZEN. A barebones-beginning railroad diagram editor tagged as $:/tags/ViewTemplate, with one edit text field to enter the railroad diagram text, and the other edit field to describe the bits in the diagram. The macros to transclude the d

Re: [tw5] Railroad plugin: one way to setup a tiddler transclusion template

2023-06-19 Thread Charlie Veniot
The only way for me to remember that "=" prefix, I think, is by applying it often. Taking Brian's approach to simplify things by dumping addsuffix and addprefix: ``` <$railroad text={{{ =[["]] =[] =[["]] =[["("]] =[[<"numValue1">]] =[[","]] =[[<"numValue2">]] =[[")"]] +[join[]] }}}> ``` On Mond

Re: [tw5] Railroad plugin: one way to setup a tiddler transclusion template

2023-06-18 Thread Charlie Veniot
Delayed reaction: I do very much like this, though: ``` [["]] [] =[["]] ``` I rarely run into de-duplication issues, so I keep forgetting about that "x-nay de-duplication, eh?" prefix. I've got to figure out a way to remember that. On Monday, June 19, 2023 at 1:30:43 AM UTC-3 Charlie Veniot wr

Re: [tw5] Railroad plugin: one way to setup a tiddler transclusion template

2023-06-18 Thread Charlie Veniot
Looking back at my OP, it became a game of Where's Waldo because of a mismatch between the number of lines in the macrocall and number of nodes in the railroad diagram. The fix: ``` !! Syntax <$railroad text={{{ [addprefix["]addsuffix["]] [["("]] [[<"numValue1">]] [[","]] [[<"numValue2">]] [["

Re: [tw5] Railroad plugin: one way to setup a tiddler transclusion template

2023-06-18 Thread Charlie Veniot
Definitely more concise with fewer square brackets going on. My challenge is it makes it harder to make a one-to-one relationship between the "bubbles" in the diagram and the pieces related to the bubbles. Kind of like I'm playing a game of "Where's Waldo". But that's part and parcel of my co

Re: [tw5] Railroad plugin: one way to setup a tiddler transclusion template

2023-06-18 Thread Brian Theado
On Sun, Jun 18, 2023 at 5:36 PM Charlie Veniot wrote: > If you have an approach you think is simpler than the one described above, > please let everybody know about it. > Here is one I find simpler (YMMV): ``` <$railroad text={{{ [["]addsuffixaddsuffix["]] [["(" <"numValue1"> "," <"numValue2">

[tw5] Railroad plugin: one way to setup a tiddler transclusion template

2023-06-18 Thread Charlie Veniot
I'm documenting two BASIC Anywhere Machine functions: MIN and MAX . I'm using the railroad plugin to describe syntax. MIN and MAX having identical syntax (and I've got many other cases like this), I wanted to define the railroad diagram once for both the MIN and MAX tiddlers. I created a templ