Copy link to clipboard
Copied
I'm interested in creating a script that works at the sentence level that counts the number of words in a selected sentence and reports it in the Output View to help the author write more concisely. Is such a thing is possible in RoboHelp 9, the verison I have? For example, can a RH script operate on selected text, like it can in a Word macro?
It's been a while since I've worked ona RH script, but from what I remember, something like this isn't possilble.
If that isn't possible, is it possible to to it at the topic level? For example, go through each sentence, count all the words in each sentence in a topic, and if any sentence is greater than the number of specified words, it displays that sentence in the output view.
Copy link to clipboard
Copied
Nevermind. I figured out a way to do it at the topic level, and that's sufficient for me.
Copy link to clipboard
Copied
Jared
Just saw a link to http://www.wordcounter.net/
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Just to add: In RH10 you can be notified when a topic is opened or closed. With scripting there is no way to determine which content on a page is selected. The only way to know which topics are currently opened is by setting a script to monitor the open and close topic events and save the open topics in a settings file so that other scripts can use that information.
Greet,
Willam
Copy link to clipboard
Copied
another tool to count and spell check
Copy link to clipboard
Copied
Thanks. I ended up creating a script in RH 9 where I type in the HTML name and it goes through each sentence and spits out those with more than the desired number of words in the output pane. It's a bit of a hack, but it serves my purposes.
Copy link to clipboard
Copied
Thanks for this post nice article Word Counter