[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread Mohammad
Hi BTC, Thank you! Yes, this works fine. Cheers Mohammad On Wednesday, December 12, 2018 at 9:02:19 PM UTC+3:30, BurningTreeC wrote: > > Mohammad, you have some errors in your find() macro definition > > this works: > > \define show-matches() > <$list filter="[range[1,$(matchCount)$]]" variable=

[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread BurningTreeC
Mohammad, you have some errors in your find() macro definition this works: \define show-matches() <$list filter="[range[1,$(matchCount)$]]" variable="matchIndex"> <$list filter="[enlistregexp[$(searchRegex)$]nth]" variable="match"> <> - <$text text=<>/> \end \define find(tiddler,delim-start

[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread Mohammad
I have confused, how I can use << >> instead of // and //? It should be related to regexp I think? On Wednesday, December 12, 2018 at 3:59:25 PM UTC+3:30, BurningTreeC wrote: > > Hi Mohammad, > > you can try something like this: > > \define show-matches() > <$list filter="[range[1,$(matchCount

[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread Mohammad
BTC, Is this valid and correct to remove the delimiters in show-matches <> - <$text text={{{[removeprefix[//]removesuffix[//]]}}} /> I am insisted to have the correct, and clean TW syntax! -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread Mohammad
Many thanks BTC and thank you for sharing the inverse string macro. Cheers Mohammad -- 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 tiddlywiki+unsubscr...@googleg

[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread BurningTreeC
Hi Mohammad, yes this should work! :) The only downside is that it works for words only, not for sentences between the delimiters I've recently made a macro that could be changed to split text into sentences delimited by a given prefix and suffix. It needs some work to do that, but I believe i

[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread Mohammad
Hi BTC, Many thanks. Your solution is great! Just a minor question, if I want to collect and count *bold *words or any other words *delimited *by some delimiters can I do as below \define find (tiddler, delim-start:"//" delim-end:"//" > <$set name="text" value={{TiddlerWithSearchText}}> <$set

[tw5] Re: TW5.1.18 and Word counting and listing

2018-12-12 Thread BurningTreeC
Hi Mohammad, you can try something like this: \define show-matches() <$list filter="[range[1,$(matchCount)$]]" variable="matchIndex"> <$list filter="[enlistregexp[$(searchRegex)$]nth]" variable="match"> <> - <$text text=<>/> \end <$set name="text" value={{TiddlerWithSearchText}}> <$set name