0
179 次浏览

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 分) 发布 | 179 次浏览

登录注册以回答此问题。

相关问题

0
0 个回答 203 次浏览
创建与项目关联的项目计划(Project Plan)的 HTML 可查看/可打印副本 Custom tools > Admin > Show Project Plan Html 压缩文件 ProjectPlanHTML.zip (12.9 KB) 信息 项目计划 ... 浏览器中打开以进行查看或打印 这是向非 Paratext 用户展示计划的一种绝佳方式
[Moderator]
dhigby
1.3k 发布
提问于 十一月 12, 2021
0
1 个回答 227 次浏览
我在 Wasta-Linux 上的 PT9.0 中尝试使用 Outils personnalisation > Admin > Show Project Plan HTML 时遇到了错误 原来该 Python 脚本试图使用 Windows 注册表来查找 ... 的查找 顺便说一下,这些似乎是 cms 脚本中引用 _winreg 模块仅有的两个地方
n8_in_car 298 发布 提问于 一月 24, 2023
0
2 个回答 949 次浏览
我最近向开发人员报告说,9.1 版本(与 8 或 9.0 版本不同)经常会在单词中间换行(而且我们的单词之间是有空格的!) 我们的项目使用非西方文字(高棉语) 我想知道其他使用非西方文字的人现在是否也有这个问题?如果是这样 ... PT 9.1 是否改变了文本渲染方式,并使用了类似 Microsoft 的技术?如果是这样,我希望开发人员会重新考虑这一选择
viverechristus 296 发布 提问于 十二月 31, 2020
0
5 个回答 470 次浏览
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 个回答 446 次浏览
我想将项目导出为 HTML,以便与他人分享草稿 我不想导出为 PDF,因为 PDF 在智能手机和其他小屏幕设备上使用起来很不方便 我可以通过打开 Paratext,点击项目菜单按钮,然后选择 高级 (Advanced),再选择 将项目导出为 ... 标记是可见的,例如 \v 1 和 \s 等标记 我该如何在导出的 HTML 中隐藏这些 USFM 标记?
bit 495 发布 提问于 四月 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
So Peter was kept in prison, but the church was earnestly praying to God for him.
Acts 12:5
3,049 个问题
6,007 个回答
5,672 条评论
2,029 位用户