[tw5] Re: Chinese characters in Stroll doesn't work well

2022-01-23 Thread fh hf
Hi David. Thanks for your Stroll and your kind reply. I've tried to change ` $:/config/Search/MinLength` to 2 or 1, but it didn't work, even after saved and reloaded. 在2022年1月23日星期日 UTC+8 00:11:58 写道: > Hi fh hf! Welcome to TiddlyWiki / Stroll! > > I think this is caused by Tiddlywiki's

[tw5] Re: dynamically building a string by concatenation in a macro

2022-01-23 Thread PMario
On Saturday, January 22, 2022 at 7:07:59 PM UTC+1 CarloGgi wrote: ... > Now, before I ask why ON EARTH the above code doesn't work, let me say > that I expect for it to be because of how macros are parsed and when macro > substitution is made, in which case I will do a little comment on it

Re: [Talk TW] [Google Group (Read Only)] [tw5] dynamically building a string by concatenation in a macro

2022-01-23 Thread Brian Theado
Jeremy, That is a very enlightening way of explaining it. I wasn't sure where in the docs this exact explanation would fit, but I did make a PR at https://github.com/Jermolene/TiddlyWiki5/pull/6417 which adds warnings about the non-recursive nature of attribute value processing. On Sun, Jan 23,

[tw5] Re: Dynamic class

2022-01-23 Thread Thomas Schnetzer
Many thanks this works! Eric Shulman schrieb am Sonntag, 23. Januar 2022 um 10:41:15 UTC+1: > Remove the quotes around `"""<>"""`. Like this: > ``` > <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" > class=<> /> > > <$macrocall $name="testFunction" alignmentTabs=<> >

Re: [Talk TW] [Google Group (Read Only)] [tw5] dynamically building a string by concatenation in a macro

2022-01-23 Thread Jeremy Ruston
My reply used the jargon because I was being brief. It's really not as irregular as it appears; it's largely a matter of ones terms of reference. It's like the difference between an expression and a string literal `a=b+c` and `a="b+c"`, if you're familiar with programming languages. A simple

Re: [tw5] Re: dynamically building a string by concatenation in a macro

2022-01-23 Thread CarloGgi
@jeremy thanks for the clarification. So it seems that you can correctly (in the sense of *syntactically* correct) use a macro call as argument of a widget attribute, but functionally fail to have it work as intended. This shows clearly that TW is way too much stuffed with booby-traps and

[tw5] Re: Dynamic class

2022-01-23 Thread Eric Shulman
Remove the quotes around `"""<>"""`. Like this: ``` <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" class=<> /> <$macrocall $name="testFunction" alignmentTabs=<> tName="""$tName$""" /> ``` On Sunday, January 23, 2022 at 1:29:55 AM UTC-8 thomas.sch...@gmail.com wrote: >

[tw5] Re: Dynamic class

2022-01-23 Thread Thomas Schnetzer
Hello Marc I tested this only the last Test shows the Tabs Vertical Thanks for your help. ``` \define testFunction(alignmentTabs:"", tName:"" ) Second Test: <>,$alignmentTabs$ <$macrocall $name="tabs" tabsList="[tag[$tName$]nsort[order]]" class="""$alignmentTabs$""" /> \end \define