+1 голос
465 просмотров

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

Старое сообщение — показано на исходном языке
Paratext от (241 очков)
снова показан | 465 просмотров

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,8тыс. очков)
снова показан
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,9тыс. очков)
изменено от
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 ответ 279 просмотров
Как пользователь, я хотел бы узнать, сколько слов содержится в конкретной книге или книгах.
Phil_Leckrone 9,9тыс. задал вопрос фев 8, 2024
0 голосов
0 ответов 186 просмотров
(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 ответов 191 просмотров
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 ответов 288 просмотров
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 ответ 346 просмотров
При переводе 3-й книги Царств мы хотим использовать дроби, когда указываем число в виде цифр, например, в 7:10 ... . Есть ли какое-то дополнительное настройка, которую я пропустил?
JohnBrownie 385 задал вопрос окт 16, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus.
Galatians 3:28
3,048 вопросов
6,007 ответов
5,672 комментариев
2,028 пользователей