Add Instant Word Count Feature to OpenOffice.org Writer

Dmitri Popov

Productivity Sauce

Sep 23, 2010 GMT
Dmitri Popov

While the Writer's Tools extension for OpenOffice.org is developed and maintained by your truly includes the Visual Word Count tool, it does have one serious drawback: it uses a modal window, i.e., you can't do anything until you close the Visual Word Count window. Fortunately, there is an alternative solution that solves that problem. The Live Word Count macro for OpenOffice.org is written in Python, so it uses a non-modal window which can be opened alongside the current document. To install the macro, create a folder called python in the /home/USER/.openoffice.org/3/user/Scripts directory (where USER is your actual user name), grab the latest version of the script and put it in the created folder. To run the macro, launch OpenOffice.org Writer and choose Tools | Macros | Run Macro. Select then My Macros | wc | wordCount and press the Run button.

Instead of navigating through the menus every single time you want to launch the macro, you can create a menu item for it. To do this, choose Tools | Customize and select the desired menu (e.g., Tools) from the Menu drop-down list in the Menus section. Press the Add button and select the OpenOffice.org Macros | My Macros | wc | wordCount macro. This adds the macro to the selected menu. You can then use the Up and Down buttons to move the created menu item. To change the item's name, press the Modify button, choose Rename, and give the menu item a descriptive name (e.g., Live Word Count). Press OK, and you are done.

Thanks to Leif Lodahl for the tip.

Comments

  • Visual Word Count

    Yes, It is true. I would love to see in the status bar like in the other application. However, I think we could also have that pop up some where prominently where we can see in real time when we are working on the file..rather than stop the work, select the content and then go to the toolbar click on the button for the pop up to appear and then display. Isn't it laborious?

    happy
  • Word count should be in the status bar.

    The word count should be something displayed in the status bar along the bottom, and not need an ugly pop up window. It is a pity that this feature has long been requested, yet never implemented.
comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News