Delayed reaction:

I do very much like this, though:

```
[["]] [<currentTiddler>] =[["]]
```

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 wrote:

> 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={{{
> [<currentTiddler>addprefix["]addsuffix["]]
> [["("]]
> [[<"numValue1">]]
> [[","]]
> [[<"numValue2">]]
> [[")"]]
> +[join[]]
> }}}>
> ```
>
> On Monday, June 19, 2023 at 1:22:08 AM UTC-3 Charlie Veniot wrote:
>
>> 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 cognitive disability.
>>
>> I think loads of folk would appreciate your less verbose approach.  
>> Thanks !
>>
>> On Sunday, June 18, 2023 at 11:45:44 PM UTC-3 Brian Theado wrote:
>>
>>> On Sun, Jun 18, 2023 at 5:36 PM Charlie Veniot <[email protected]> 
>>> 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={{{
>>> [["]addsuffix<currentTiddler>addsuffix["]]
>>>
>>> [["(" <"numValue1"> "," <"numValue2"> ")"]]
>>> +[join[]]
>>> }}}/>
>>> ```
>>>
>>> and a slight variation:
>>>
>>> ```
>>> <$railroad text={{{
>>> [["]] [<currentTiddler>] =[["]]
>>>
>>> [["(" <"numValue1"> "," <"numValue2"> ")"]]
>>> +[join[]]
>>> }}}/>
>>> ```
>>>
>>> For me the first line in each of the above read slightly easier than 
>>> that addprefix/addsuffix combination since I don't need to mentally 
>>> re-order anything. And having all the quoting together in a single line 
>>> (2nd line in each of the above) I found it easier to read since at a glance 
>>> I can tell everything on that line is part of one static string.
>>>
>>> Maybe these small tweaks aren't what you had in mind, but I thought I'd 
>>> share in case it helps.
>>>
>>> Also, the future 5.3 version of Tiddlywiki might introduce substitution 
>>> within attribute values: 
>>> https://tiddlywiki5-git-fork-saqimtiaz-textsubstitution-jermolene.vercel.app/#Substituted%20Attribute%20Values.
>>>  
>>> With that feature, you could do this:
>>>
>>> ```
>>> <$railroad text=`"$(currentTiddler)$" "(" <"numValue1"> "," 
>>> <"numValue2">")"`/>
>>> ```
>>>
>>> I know Charlie has a self-imposed policy not to upgrade past 5.2.3, so 
>>> this last one is for others who might be interested.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f6fa4cc8-aa33-4d51-aa77-c662b1fbfb2fn%40googlegroups.com.

Reply via email to