+1
445 次瀏覽

Hi,
How to calculate number of words in chapter or in one book. It should not include marking.

舊文章 - 以原文顯示
Paratext (241 點) 提出
已重新顯示 | 445 次瀏覽

3 個回答

0
最佳回答

Here is some regex that will do a similar thing in RegexPal:
(?<=(\\(?!(b|c|cp|f|fr|id\w*|jmp|periph|rem|toc\d|usfm|v|vp|x|xo)\s)\+?\w+[\s\*]|[cv]\s+\S+\s))[^\\]*?(?=\\|\Z):::\S+
Use Count (CTRL-O) to find all the words in a an entire project down to a single book.This will give you more words but it is probably more accurate. The Wordlist excludes numbers and words in certain reference fields like \r \ior and sometimes \xt which may not need to be checked for spelling, but should probably be included in a word count.

Detail
This is an explanation of the regex:
The first part is a context where you want to count words. It excludes markers as well as chapter and verse numbers: (?<=(\\(?!(b|c|cp|f|fr|id\w*|jmp|periph|rem|toc\d|usfm|v|vp|x|xo)\s)\+?\w+[\s\*]|[cv]\s+\S+\s)[^\\]*?(?=\\|\Z):::

  • It includes a list of markers whose contents you probably do not want counted:
    (?!(b|c|cp|f|fr|id\w*|jmp|periph|rem|toc\d|usfm|v|vp|x|xo)\s)
  • This part excludes chapter numbers and verse numbers: [cv]\s+\S+\s

The second part \S+ simply finds text separated by spaces. Since it is greedy it will find text up to a space, end of string, or end of file.

舊文章 - 以原文顯示
(1.8k 點) 提出
已重新顯示
0
Here is a quick way to get a count of any selection (based on Word List options) of verse, chapter, section, book, or books. You use Excel to get the full count.
Here is a Quick Tip video: https://www.loom.com/share/21b31bb8bf37492695e1b27589f75f43?sid=60a34a28-7f27-44ec-a9e3-dcbcbc33de86
舊文章 - 以原文顯示
(9.9k 點) 提出
已編輯 提出
0

Thank you so much anon848905 exactly I want like this, I tried by Regex \w+ but it did not give exactly value.

舊文章 - 以原文顯示
(241 點) 提出

相關問題

0
1 個回答 272 次瀏覽
作為使用者,我想知道特定書卷或幾卷書中總共有多少字。
Phil_Leckrone 9.9k 提出 已提問 2月 8, 2024
0
0 個回答 172 次瀏覽
(anon451647 writes) This line (in PrintDraftChanges.txt) will change a plus sign to a thin space if it has a non- ... not match them (especially if they are non-Roman letters).
匿名 提出 已提問 4月 10, 2015
0
0 個回答 182 次瀏覽
To move a book from one difficulty level to another, see either of the following: [How do I change the expected rate ... /520) (the Change the difficulty level of a book section)
[Expert]
anon421222
735 提出
已提問 2月 23, 2017
0
3 個回答 279 次瀏覽
Hello, Anytime I use the \ip Introduction - Paragraph marker in Paratext, the words turns grey. I would be grateful if you can help me correct it. Thank you. anon878803
anon878803 132 提出 已提問 11月 8, 2019
+1
1 個回答 341 次瀏覽
在翻譯《列王紀上》第 7 章時,當我們以數字形式呈現數值時,希望使用分數,例如 7:10: Aitoka sae ale ateva laghe atoka siola namungaili atu, kasina aluseaane erooroo kotolu me ... 點符號 似乎沒有辦法說明分數可以是數字的一部分 是否有我遺漏的進一步設定?
JohnBrownie 385 提出 已提問 10月 16, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
3,045 個問題
6,005 個回答
5,671 則評論
2,026 位使用者