LibreOffice Logo LibreOffice Logo Extensions, Documentation and Templates repository

counter Wordcount Bookmarked Sections

This is a Libreoffice Writer extension that counts words in each section of a document and displays each wordcount in the status bar or inserted into the document as a field. Use it to know when you're nearly done writing.

★ ★ ★ ☆ ☆
Macro Writer
Download latest

latest release: 2024-03-20 07:50:20

Description

Usage

  1. Mark sections by simply adding a bookmark at the start of each section using the Libreoffice Writer menu option Insert -> Bookmark (These can be viewed later in the navigator sidebar by pressing F5).
  2. Then simply type Ctrl-Alt-W (or Cmd-Alt-W on Mac) and it will display the wordcount for each section in the status bar for 4 seconds.

Advanced Usage

  1. Ctrl-Alt-W will also create wordcount fields that you can insert into the document with Ctrl-F2 -> Variables -> User Field. If there are bookmarks, the wordcount fields will also be updated every time the document is saved.
  2. You can even enter formulas based on the wordcounts. If, for example, you have a bookmark called Essay, then to show footnotes as a percentage of Essay length, press `Ctrl-F2 -> Variables -> Insert Formula` and type into the Formula box `Wordcount_Footnotes/Wordcount_Essay` then format it like a percentage in the Format box by clicking Additional Formats and finally click Insert to insert it into your document.

Wordcount accuracy

The word counter uses the same word separator as Libreoffice, so it's accurate compared to both Libreoffice and MS Word, with the following exception:

  • If your document has bullets/numbering, the extension's wordcount will be low by one count per bullet compared to Libreoffice's total wordcount: see second screenshot. (If you know how I can fix this, let me know by posting an issue. I'm using counting words in textCursor.getString() which does not contain bullets.)

For further notes on counting accuracy, installation, and source code, see the extension home page.

Homepage: https://github.com/berwynhoyt/wordcount-sections

Repository: https://github.com/berwynhoyt/wordcount-sections

Release Description Compatibility Operating Systems License Release notes Updated  
v1.3 Bugfix - ignore bogus bookmarks Ignore libreoffice's auto-added bookmarks with strange names starting with __ 7.0 Linux, Windows, macOS MIT Sometimes libreoffice automatically adds bookmarks with strange names starting with __. The gotoRange() function produced an error on these bookmarks. This version ignores all bookmarks that do not support gotoRange() 2023-11-06 22:54:04 Download
v1.2 Bugfix This version is fixed so that it no longer causes an error on save if the extension is removed. 7.0 Linux, Windows, macOS MIT 2023-06-13 02:34:07 Download
v1.1 Bugfix Fix an incorrect error message the extension created when user tried to save non-text files (it should only affect text documents). 7.0 Linux, Windows, macOS MIT v1.1 Fix error message this extension incorrectly caused when saving a non-text document (like a spreadsheet) -- it should only affect text documents. 2023-04-02 11:43:08 Download
1.0 First pubic release 7.0 Linux, Windows, macOS MIT v1.0 First public release 2023-01-15 09:27:41 Download
Show more

Related Extensions

Gyokan "行間" (Paragraph Spacer)

Logo for Gyokan "行間" (Paragraph Spacer)

You can expand or shrink the line spacing between paragraphs with a single touch.段落の行間をワンタッチで調整できます。

04-2024

62

Not rated yet

Sqlite for LibreOffice on Windows

Logo for Sqlite for LibreOffice on Windows

Adds sqlite3 support to LibreOffice on Windows.

04-2024

2521

Not rated yet

Pandas for LibreOffice

Logo for Pandas for LibreOffice

Pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.&

09-2024

2742

★ ★ ★ ★ ★

Include Python Path for LibreOffice

Logo for Include Python Path for LibreOffice

Give the ability to include external python paths in LibreOffice. Making other python packages available in Python macros and scripts.

05-2024

2190

Not rated yet

Python Numpy Extension for LibreOffice

Logo for Python Numpy Extension for LibreOffice

Numpy is The fundamental package for scientific computing with Python.
This is a LibreOffice extension that allows you to use Numpy in LibreOffice python macros and scripts.

09-2024

2252

Not rated yet

OooDev GUI Automation for Windows

Logo for OooDev GUI Automation for Windows

Although the LibreOffice API gives access to many parts of the LibreOffice application, it does not give access to everything. This project is an extension that allows access to the GUI. This project a set of python modules to automate the LibreO

04-2024

910

Not rated yet

Feedback

★ ★ ★ ☆ ☆

Post your review

You cannot post reviews until you have logged in. Login Here.

Reviews

  • YanQ UXO Jan 25, 2024, 1:07 AM (10 months ago)

    ★ ★ ★ ★ ★

    Fantastic, works great. Signed up just to say thank you for this!

  • Heiko Tietze Jan 16, 2023, 7:08 AM (23 months ago)

    ☆ ☆ ☆ ☆ ☆

    None of the links is working (at the initial submission). Is it a private repository?

    • Berwyn Hoyt Jan 16, 2023, 11:15 PM (23 months ago)

      My apologies. I have made the repository public now.

RSS feed for reviews on this page | RSS feed for all reviews