0 票
250 次浏览

Wasn’t sure where to report this bug fix for the Show Project Plan Html script, found in the project Custom Tools > Admin menu. I noticed that only the last stage was showing the icon for “When previous stage is complete”. In stage 6 you get the hamburger-like icon:

image

But in stage 5, where there should be the icon, it is blank:

image

It looks like this is because there is an additional text value in the tag that isn’t being handled (maybe a new one in later versions of Paratext?). The code in ProjectPlanHtml.py needs to add the line with WhenStageIsCompleteByChapter below (around line 171):

def symbolFor(strTerm):
aDict = {'WhenProjectStarts':'▒',
         'WhenStageIsComplete':'Ξ',
         'WhenStageIsCompleteByChapter':'Ξ',
         'WhenBookStarts':'□',
         'AfterPreviousTaskForChapter':'↑',
         'AfterPreviousTaskForBook':'↑',
         'ManualByChapter':'C',
         'ManualByProject':'P',
         'Manual':'B',
         'Auto' : '∞'}

There is another mistake in the ProjectPlanImport.py module, around line 51. What was:

            elif (strToken, enumType) == ('EditingRequired',parser.BEGIN):
            self.availability = 'Yes'
            parser.parseSkipUntil('EditingRequired', parser.END)

should be changed to:

            elif (strToken, enumType) == ('EditingRequired',parser.BEGIN):
            self.editingRequired = 'Yes'
            parser.parseSkipUntil('EditingRequired', parser.END)

I’m not sure if this last change is necessary to fix the problem at hand, but it was obviously the original author’s intention to modify the editingRequired variable instead of the availability variable, and I thought originally that that error might be causing the problem. Probably best to change it as well…

较早的帖子 - 以原始语言显示
Paratext 中 由 (1.4k 分) 发布 | 250 次浏览

请登录或注册以回答此问题。

相关问题

0 票
0 个回答 257 次浏览
创建与项目关联的项目计划(Project Plan)的 HTML 可查看/可打印副本 Custom tools > Admin > Show Project Plan Html 压缩文件 ProjectPlanHTML.zip (12.9 KB) 信息 项目计划 ... 浏览器中打开以进行查看或打印 这是向非 Paratext 用户展示计划的一种绝佳方式
[Moderator]
dhigby
1.3k 发布
提问于 十一月 12, 2021
0 票
1 个回答 366 次浏览
我在 Wasta-Linux 上的 PT9.0 中尝试使用 Outils personnalisation > Admin > Show Project Plan HTML 时遇到了错误 原来该 Python 脚本试图使用 Windows 注册表来查找 ... 的查找 顺便说一下,这些似乎是 cms 脚本中引用 _winreg 模块仅有的两个地方
n8_in_car 298 发布 提问于 一月 24, 2023
0 票
2 个回答 1.7k 次浏览
我最近向开发人员报告说,9.1 版本(与 8 或 9.0 版本不同)经常会在单词中间换行(而且我们的单词之间是有空格的!) 我们的项目使用非西方文字(高棉语) 我想知道其他使用非西方文字的人现在是否也有这个问题?如果是这样 ... PT 9.1 是否改变了文本渲染方式,并使用了类似 Microsoft 的技术?如果是这样,我希望开发人员会重新考虑这一选择
viverechristus 296 发布 提问于 十二月 31, 2020
0 票
5 个回答 903 次浏览
In Paratext 8.0.100.77 there is a bug in the formatting in a back translation project. Before each verse there is ... present in version 74. 2019-05-14.png1920 1080 1.01 MB
Iver Larsen 869 发布 提问于 五月 14, 2019
0 票
1 个回答 719 次浏览
我想将项目导出为 HTML,以便与他人分享草稿 我不想导出为 PDF,因为 PDF 在智能手机和其他小屏幕设备上使用起来很不方便 我可以通过打开 Paratext,点击项目菜单按钮,然后选择 高级 (Advanced),再选择 将项目导出为 ... 标记是可见的,例如 \v 1 和 \s 等标记 我该如何在导出的 HTML 中隐藏这些 USFM 标记?
bit 496 发布 提问于 四月 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I appeal to you, brothers and sisters, in the name of our Lord Jesus Christ, that all of you agree with one another in what you say and that there be no divisions among you, but that you be perfectly united in mind and thought.
1 Corinthians 1:10
3,081 个问题
6,048 个回答
5,710 条评论
2,048 位用户