[TW5] Character Counter for Editor(s)

334 views
Skip to first unread message

Thomas Elmiger

unread,
Jan 26, 2017, 7:29:48 AM1/26/17
to tiddl...@googlegroups.com

Hi all,


As a writer/author I sometimes draft articles which get limited space in publications. Then I should kow, how many characters I have written. My use case:

  • In edit mode users can see a counter for the number of characters in the tiddler’s text field.
  • (maybe add a counter for words too – no priority here)

UPDATE: There is a plugin for character counting in the editor now. You can find it here => http://tid.li/tw5/plugins.html#EditorCounter


A short research led me to http://inmysocks.tiddlyspot.com/#%24%3A%2Fwidgets%2Finmysocks%2Fword-count.js – for my usage color would not be necessary, word count would be an option. My questions:


– Are there any alternatives?

– Has anyone ever combined this with the edit template?

– Was there ever developed something similar, as discussed in Hangout #65 at 1:02:55?


All hints are highly appreciated!


Author’s greetings,

Thomas

Jed Carty

unread,
Jan 26, 2017, 7:43:45 AM1/26/17
to TiddlyWiki
I don't remember making that at all. But at the demo site here http://ooktech.com/jed/ExampleWikis/WordCount/ it does have word counts when editing a tiddler. The count only updates if you pause in typing for a short time.

Like I said, I don't remember making it so I can't say much more about it than that. And I am not sure if there are alternatives or not.

Josiah

unread,
Jan 26, 2017, 9:17:18 AM1/26/17
to TiddlyWiki
Ciao Thomas and all

I have a need for that too ... CHARACTER COUNTS. Mainly because I'm an avid Twitter user and 140 is all you get. Composing posts without feedback on how many characters you have left makes it awkward to write them.

So this would be most useful (reasonably) "live" inside the editor.

Best wishes
Josiah


On Thursday, 26 January 2017 13:29:48 UTC+1, Thomas Elmiger wrote:

Hi all,


As a writer/author I sometimes draft articles which get limited space in publications. Then I should kow, how many characters I have written. My use case:

  • In edit mode users can see a counter for the number of characters in the tiddler’s text field.
  • (maybe add a counter for words too – no priority here)

A short research led me to http://inmysocks.tiddlyspot.com/#%24%3A%2Fwidgets%2Finmysocks%2Fword-count.js – for my usage color would not be necessary, word count would be an option. My questions:

Jed Carty

unread,
Jan 26, 2017, 9:27:09 AM1/26/17
to TiddlyWiki
Josiah,

I made the same widget so it can count characters and in fact I use it so I can post to twitter. You can see it in use here http://ooktech.com/jed/externalbrain/#New%20Blog%20Post

Josiah

unread,
Jan 26, 2017, 9:52:01 AM1/26/17
to TiddlyWiki
Ciao Jed

Thank you. Very, very helpful!

Best wishes
Josiah

Jeremy Ruston

unread,
Jan 26, 2017, 1:11:28 PM1/26/17
to tiddl...@googlegroups.com
It's worth noting that Twitter's tweet length rules are somewhat counter-intuitive; a straightforward character count isn't sufficient. Issues include links, which always count as 23 characters, even if the link is shorter than 23 characters, and the reliably confusing multi-byte character issues:


Best wishes

Jeremy
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0a0f5a28-5647-45be-b758-20c4bbc5252f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Josiah

unread,
Jan 26, 2017, 1:59:16 PM1/26/17
to TiddlyWiki
Whoops. I just sent a blank post :-(. Sorry.

Jeremy

I noticed that with links. I think the other cases are of slightly less concern unless you doing a lot of "combined" characters. I have no idea what happens in complex pictographic written languages.

Best wishes
Josiah

Jeremy Ruston

unread,
Jan 26, 2017, 2:01:37 PM1/26/17
to tiddl...@googlegroups.com
I have no idea what happens in complex pictographic written languages.

Emoji might be the most universal concern 😀😲💪

Best wishes

Jeremy


Best wishes
Josiah

On Thursday, 26 January 2017 19:11:28 UTC+1, Jeremy Ruston wrote:
It's worth noting that Twitter's tweet length rules are somewhat counter-intuitive; a straightforward character count isn't sufficient. Issues include links, which always count as 23 characters, even if the link is shorter than 23 characters, and the reliably confusing multi-byte character issues:


--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Thomas Elmiger

unread,
Jan 26, 2017, 2:50:14 PM1/26/17
to TiddlyWiki
Hi Jed

Would you mind if I incorporate your solution into a plugin together with a view template I made?

This would be a nice little feature for many authors I believe. Alternatively I could send you my editor view template …

Best regards, Thomas

Jed Carty

unread,
Jan 26, 2017, 4:09:15 PM1/26/17
to TiddlyWiki
With how much I have been busy lately I doubt I would get to putting anything together. Feel free to use anything I have made. Credit would be nice but don't worry too much about it, everything is there to be used.

If you make something I can probably put up a demo site on ooktech.com

Thomas Elmiger

unread,
Jan 26, 2017, 5:02:49 PM1/26/17
to tiddl...@googlegroups.com
Now that was fast: From asking to plugin within 10 hours. Thanks a lot, Jed!

=> Here you can get the plugin: http://tid.li/tw5/plugins.html#Get%20More%20Plugins

(Credit is present but somewhat hidden, I am not a plugin pro and still have to learn a lot about readme files and so on …)

Good night,
Thomas

2017-01-26 22:09 GMT+01:00 Jed Carty <inmy...@gmail.com>:
With how much I have been busy lately I doubt I would get to putting anything together. Feel free to use anything I have made. Credit would be nice but don't worry too much about it, everything is there to be used.

If you make something I can probably put up a demo site on ooktech.com

--
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/krhBHAI6-vM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Thomas Elmiger

unread,
Feb 13, 2017, 2:52:08 PM2/13/17
to TiddlyWiki
Hi all,

Just wanted to let you know that there is a new version 0.3.2 of the plugin at http://tid.li/tw5/plugins.html#EditorCounter

Besides some minor technical improvements it features now
* a character counter for the title
* a word counter for the text
* a settings tiddler where you can choose which counters you want to see
* a readme with proper credits for Jed

Let me know if there is anything else I could improve!

Thank you and all the best,
Thomas

Josiah

unread,
Feb 13, 2017, 4:10:36 PM2/13/17
to TiddlyWiki
Its really useful. Thanks you and Jed!

Not sure if its possible to have a "Twitter Mode"? This would calculate an https url (whatever its length) as 23 characters and add that to the total.

Would be great for folk like me who are active Twitter posters.

Best wishes
Josiah

Thomas Elmiger

unread,
Feb 14, 2017, 10:41:00 AM2/14/17
to TiddlyWiki
Hi Josiah, as Jeremy pointed out, an exact twitter calculation could become very complicated, so I will leave the guesswork to the user ;–)
Happy tweeting!
Thomas

wimm

unread,
Feb 16, 2017, 1:00:43 PM2/16/17
to TiddlyWiki
Did you see the charactercounter for use in the (e.g.) sidebar based on textlength filter, shows results for a selection of tiddlers, also shows charactercount when not in edit mode.. 

Thomas Elmiger

unread,
Mar 4, 2017, 6:39:09 AM3/4/17
to TiddlyWiki
Hi all

Just to let you know: I started a new thread to announce a major update: https://groups.google.com/d/msg/tiddlywiki/M0tXH37TXEU/PEzZFizfAgAJ (Autosave feature)

Hi Wimm – thanks for pointing to your solution, I will have a look at this before the next update.

Did you see the charactercounter for use in the (e.g.) sidebar based on textlength filter, shows results for a selection of tiddlers, also shows charactercount when not in edit mode.. 

Cheers, Thomas
Reply all
Reply to author
Forward
0 new messages