最近有几位用户联系我,因为他们想要一种方法来统计包含文本的经文数量,以及未翻译的经文数量。
当然,我的标准回答是使用项目计划(Project Plan)。但即使使用项目计划,它显示的也是每个阶段各卷书的完成百分比,而不是经文数量。这或许更有用,但仍有许多人使用旧的电子表格系统来跟踪此类信息,或将其包含在报告中。
Steve White 提出了一个正则表达式,我对其稍作修改,以列出所有至少包含“耶稣哭了”的经文。
regex:\\v \d+ .*? \w{4,} \w{3,}
现在,虽然这会列出书中所有包含文本的经文,但这仍然是一项相当手动的工作。
我们启动了一个新的“脚本与技巧”(Scripts and Hacks)版块,利用内置于 Paratext 中的 Python 脚本引擎。我想象有人可以创建一个脚本,快速提取圣经每卷书中已翻译的经文数量。
当然,这不会说明该文本的质量,但可以生成一个简单的单页 HTML 报告,许多人会发现这很有用。有人愿意接受这个挑战吗?或者有人已经有自制的解决方案来解决这个问题?
I’ve had a couple users contact me now because they want a way to count the verses with text in them, and the ones untranslated.
Of course my standard answer is to use the project plan. But even with the project plan, it shows percentage complete for books at each stage, not the number of verses. Arguably more helpful, but there are still many people that are using an old spreadsheet system to track things like this, or to include in reports.
Steve White came up with a Regex that I modified a bit to list all verses with at least, “Jesus wept” in them.
regex:\\v \d+ .*? \w{4,} \w{3,}
Now, while this will make a list of all the verses in a book that contain text, it is still a rather manual operation.
We started a new Scripts and Hacks section that takes advantage of the Python scripting engine that is built into Paratext. I imagine that someone could create a script that can quickly pull out the number of translated verses for each book of the Bible.
Of course, this won’t say anything about the quality of that text, but a simple one page html report could be generated that many people would find useful. Is anyone up for the challenge? Or does someone already have a home brewed solution to this problem?
机器翻译自 English