Count number of words in the entire TW

185 views
Skip to first unread message

Yaron Hadad

unread,
May 2, 2014, 10:29:35 PM5/2/14
to tiddl...@googlegroups.com
Hey everybody,

I noticed this question was posed before with no answer, so I'm just trying again.

Is there a way to count the total number of words in my TiddlyWiki? I know how to do it per post, and trying to do it for the whole TW.

If there is no way, I'd be happy to try and write a macro if someone can suggest a place to start.

I'd greatly appreciate your help.

Thanks!

Måns

unread,
May 3, 2014, 5:03:34 AM5/3/14
to tiddl...@googlegroups.com
Hi Yaron


 I know how to do it per post, and trying to do it for the whole TW.
 
How do you count words per tiddler?
Can you share an example?

Cheers Måns Mårtensson 

Yaron Hadad

unread,
May 3, 2014, 2:11:27 PM5/3/14
to tiddl...@googlegroups.com
Hi Måns,

It is pretty easy.

I installed the WordCountMacro to count the number of words I write. Then I then changed [[ViewTemplate]] by adding the line
{{{
<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>), <span macro="wordCount"></span> words</div>
}}}
to ensure it shows a word count in each post (then it shows the word count in the upper part of the post, see attached image.

Good luck!
Yaron




--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/QmSVaJEMJ6M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Screen Shot 2014-05-03 at 11.11.11 AM.png

Måns

unread,
May 4, 2014, 3:40:12 AM5/4/14
to tiddl...@googlegroups.com
Thank you Yaron

What happens if you transclude several tiddlers into one tiddler - the macro (which you have put into the standard ViewTemplate) - maybe it will count content from the transcluded tiddlers too?

Cheers

Yaron Hadad

unread,
May 4, 2014, 12:08:48 PM5/4/14
to tiddl...@googlegroups.com
Hey,

I'm not sure how to do this. I mean, what do you mean by transcluding the tiddlers? How do you practically do it?

Thanks.

Måns

unread,
May 4, 2014, 7:34:06 PM5/4/14
to tiddl...@googlegroups.com
Hi Yaron

You can show/transclude content from other tiddlers via the tiddler macro by writing: <<tiddler TiddlerTitle>>.

This way you can add any number of tiddlers content into any other number of tiddlers..

It is even possible to extract sections or slices of text like this: <<tiddler TiddlerTitle##Section>> <<tiddler TiddlerTitle::Slice>>

Taking it even further you can use other tiddlers as templates by using the placeholders $1 to $9 for the content that you want replaced during transclusion. See http://tiddlywiki.org/#tiddler

Cheers Måns Mårtensson

Yaron Hadad

unread,
May 5, 2014, 12:06:20 PM5/5/14
to tiddl...@googlegroups.com
Sounds promising. Does it allow automatically adding all the tiddlers without manually adding their names? Anyways I'll ready about this - thanks!

Måns

unread,
May 5, 2014, 1:52:32 PM5/5/14
to tiddl...@googlegroups.com
Hi Yaron

 Does it allow automatically adding all the tiddlers without manually adding their names? 

Yep. 
You can create your own filtered list of tiddlers tagged with a specified tag - and show their content via your own list template.


Cheers Måns Mårtensson


Yaron Hadad

unread,
May 5, 2014, 2:57:01 PM5/5/14
to tiddl...@googlegroups.com
Amazing - thanks so much!


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/QmSVaJEMJ6M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages