View Single Post
Old 01-31-2023, 04:28 AM   #493
philm
Member
philm began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
Smile

Thank you very much for your replies!

Actually, I need to know where the 280th -ish word is, so I thought to select some text approximately, and have a word count (\w+ ) but you open up possibilities.

Quote:
Originally Posted by KevinH View Post
You can restrict searches to marked text in Sigil and use Find to count anything you want. If do not want counts of specific words you can use regular expressions to count all words in marked text.
When I select text in preview and search > mark selected text it only unmarks, as stated in the info bar: "Text selection unmarked". I'm using Ubuntu 22.04

When I select text in source xhtml, CTRL+SHIFT+M does mark text but searching for "\w+ " results in all tags content to be counted as words, like "a " in `<a href...` or elsewhere in tags (style, etc).

I need to count rendered words, not everything from code.
Actually I need to spot every 280th rendered word. Sorry for not being clearer in my first draft.
Any idea welcome!

Last edited by philm; 01-31-2023 at 04:41 AM.
philm is offline   Reply With Quote