A Hebrew Torah book has, depends on the version (Masoretic, Samartian, Dead Sea scrolls, and possibly others) around 300,000 Hebrew letters.
A standard Quran book has exactly or approximately 327,792 Hejazi or “classical” Arabic letters ; I said exactly or aproximately because if I am not mistaken it depedns on the edition, especially when comparing the Hafs edition to the Warsh edition.
I want to know how many letters are there in a standard New Testament book, preferably in the original Koine Greek, but I guess English would do as well.
How would you prefer to do this? For example, would you use a command line user interface text processing tool? Would you use a graphical user interface tool? Would it be a local tool or a web tool?
Well first of all, there is no “standard” New Testament book - there are like 20 different versions, each slightly different.
As much as I dislike the language, this effort would be tailor made for python which is built to collate and crunch data. It would just need to import the text (assuming you can find a reliable online source), then process the file line by line and letter by letter.
How is text of the New Testament different from any other text written in the same language? If there is a relevant difference then please explain. Otherwise there are many utilities that already exist that can do what you need to do.
Also, you say letters but do you mean characters that include punctuation? Should number digits be included? You do not need a special utility to tell you how many total characters there are in a file.
Not to mention that unless the user’s going to be uploading their own, there are almost certainly already digitized versions of most every text, which would mean at best there would be sources for this information already…
The user would probably want to read the book online by chapters, but in that case just to get an output of how many Koine Greek letters are there in a most authentic compilation comprised of all New Testament books shared by all churches worldwide today.
I assume that for starters I would have to manually copy-paste each book text into a separate file, so for example I would have to create a file named matthew.txt and then paste into it the text of all chapters of the Book of Matthew, probably separated by empty lines.
Then I would need to count the computer-characters somehow (I assume that a code editor like Geany or Visual Studio Code can do it), and then decrement at least the amount of empty lines separating each chapter from the next chapter after pasting it.
I could probably also change the .txt extension to .odt extension or to .rtf extension and then count the computer characters with LibreOffice Writer or Microsoft Word.
What else could be in the text? Probably nothing else. Therefore the size of the file is the count. Very simple. If you want to exclude space characters then it would be simple to count the number of spaces.
Translations of the New Testament might have a copyright but I doubt the original Greek does.
That depends on the definition of multi-byte. If it refers to a character encoding in which all characters are the same number of bytes then the difference between a single byte and multiple bytes is trivial.
I admit that I am accustomed to characters occupying just one byte.
If you can be specific about what the encoding is for your data then people can be specific. You are being vague and therefore you can only get vague answers.
Well if we’re talking about putting Greek characters in, you’re not going to be able to get Unicode value 913 into an 8 bit value. But a space (unicode value 32) does. And if a single letter character takes 2 bytes, and symbols take 1, and you’re counting the number of bytes to count the number of characters, you’re in trouble, because SOME of your characters are 1 byte, and some are 2…
I find no speculation is a regex command like this:
Although, in this case I need to match Koine Greek letters and I don’t know if there is regex for that, but it could be invented by creating a regex sequence of this language’s writing-system letter characters.
I will be more specific. First decide what specific data you need to process. Specify it in a manner that people can access it or at least be specific about what the language is and the encoding and specifics like that. You must at least know the encoding of the data.