0
180 次瀏覽

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 點) 提出 | 180 次瀏覽

登入註冊 以回答此問題。

相關問題

0
0 個回答 203 次瀏覽
建立與專案相關的專案計畫(Project Plan)的 HTML 可檢視/列印副本 自訂工具(Custom tools) > 管理(Admin) > 顯示專案計畫 HTML(Show Project Plan Html) 壓縮檔 ProjectPlanHTML.zip ... 瀏覽器中開啟以檢視或列印 這是向非 Paratext 使用者展示計畫的絕佳方式
[Moderator]
dhigby
1.3k 提出
已提問 11月 12, 2021
0
1 個回答 227 次瀏覽
我在 Wasta-Linux 上的 PT9.0 中嘗試使用「Outils personnalisation」>「Admin」>「Show Project Plan HTML」時遇到了錯誤 原來該 Python 腳本試圖使用 Windows 登錄(Registry)來尋 ... 找 順帶一提,這些似乎是 cms 腳本中唯一引用 _winreg 模組的兩個地方
n8_in_car 298 提出 已提問 1月 24, 2023
0
2 個回答 949 次瀏覽
我最近向開發人員報告,9.1 版本(與 8 或 9.0 不同)經常在單字中間斷行(而我們的文字是有空格分隔單字的!) 我們專案使用的是非西方文字(高棉文) 我想知道其他處理非西方文字的人現在是否也有這個問題?如果是的話,請 ... PT 9.1 是否改變了文字渲染方式,並使用了與 Microsoft 類似的技术?如果是這樣,我希望開發人員能重新考慮這個選擇
viverechristus 296 提出 已提問 12月 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 提出 已提問 5月 14, 2019
0
1 個回答 446 次瀏覽
我想將專案匯出為 HTML,以便與他人分享草稿 我不想匯出為 PDF,因為 PDF 在智慧型手機和其他小螢幕裝置上操作起來相當不便 我可以透過開啟 Paratext,點擊專案選單按鈕,然後選擇「進階」(Advanced),再選擇「將專案 ... 而,USFM 標記是可見的,例如 \v 1 和 \s 等標記 我該如何隱藏匯出 HTML 中的 USFM 標記?
bit 495 提出 已提問 4月 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
3,049 個問題
6,007 個回答
5,672 則評論
2,029 位使用者