+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 发布 提问于 二月 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).
匿名用户 发布 提问于 四月 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 发布
提问于 二月 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 发布 提问于 十一月 8, 2019
+1
1 个回答 341 次浏览
在翻译《列王纪上》第 7 章时,当我们用数字表示数量时,希望使用分数,例如在 7:10 中: Aitoka sae ale ateva laghe atoka siola namungaili atu, kasina aluseaane erooroo kotolu me ... 符,以及标点符号 似乎没有办法说明分数可以是数字 是否有我遗漏的进一步设置?
JohnBrownie 385 发布 提问于 十月 16, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They devoted themselves to the apostles’ teaching and to fellowship, to the breaking of bread and to prayer.
Acts 2:42
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户