klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2.04k stars 305 forks source link

Wordcount #1563

Closed rafzed closed 2 weeks ago

rafzed commented 3 weeks ago

Is your feature request related to a problem? Please describe.

Hi! I've discussed with a few writing friends and some (myself included) want to know how much words are in the story as it can be due to a limitation for a competition or publication limitations.

Describe the solution you'd like.

The idea is to implement a wordcount so it's easier to keep track of it instead of taking notes on the side using other applications.

image

Describe alternatives you've considered.

Actually i already implemented that solution and I'm using it so it's more about is it something that you're willing to include in the main branch ?

thank you!

Additional context on this suggestion.

No response

Presubmission checklist

greyelf commented 3 weeks ago

I'm curious, how are you distinguishing between words that are part of the project's descriptive & dialogue related textual content, and the "words" that make up the project's code (eg. macros, HTML) related textual content?

And does the technique you're using understand the potential nuances of the different Story Format?

rafzed commented 3 weeks ago

Basically it's a simplistic thing i'm doing, just using regex, there are two made but they can be easily tweaked and improved.

For now, i'm a noob in using twine so i use only plaintext and links, i only remove the links between passages and format the rest to get the wordcount for the current story.

If you have an example for macros/html i can try them on my working build and see how this goes (and fix it along).

klembot commented 3 weeks ago

@rafzed Twine has word count along with other stats--it sounds like this is a feature you may not have been aware of?

rafzed commented 2 weeks ago

@klembot thanks i did not knew that indeed! I thought of a solution as in Word to see it directly as we write and not into a menu.

Well never mind then ^^ Thank you!