0 suara
249 tampilan

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…

Postingan lama - ditampilkan dalam bahasa aslinya
Paratext oleh (1,4k poin) | 249 tampilan

Silakan masuk atau daftar untuk menjawab pertanyaan ini.

Pertanyaan terkait

0 suara
0 jawaban 257 tampilan
Membuat salinan HTML yang dapat dilihat/dicetak dari Rencana Proyek (Project Plan) yang terkait dengan proyek. ... bagus untuk menunjukkan rencana kepada pengguna non-Paratext.
[Moderator]
dhigby
1,3k
bertanya Nov 12, 2021
0 suara
1 jawaban 366 tampilan
Saya mendapat error saat mencoba menggunakan Outils personnalisation > Admin > Show Project Plan HTML di PT9 ... dua-satunya tempat modul _winreg dirujuk dalam skrip cms.
n8_in_car 298 bertanya Jan 24, 2023
0 suara
2 jawaban 1,7k tampilan
Saya baru saja melaporkan kepada para pengembang bahwa 9.1 (berbeda dengan 8 atau 9.0) secara rutin ... saya berharap para pengembang akan mempertimbangkan kembali pilihan ini.
viverechristus 296 bertanya Des 31, 2020
0 suara
5 jawaban 903 tampilan
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 bertanya Mei 14, 2019
0 suara
1 jawaban 719 tampilan
Saya ingin mengekspor proyek ke HTML agar saya dapat membagikan draf kepada orang lain. Saya tidak ingin ... Bagaimana cara menyembunyikan penanda USFM dari HTML yang diekspor?
bit 496 bertanya Apr 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Every day they continued to meet together in the temple courts. They broke bread in their homes and ate together with glad and sincere hearts, praising God and enjoying the favor of all the people. And the Lord added to their number daily those who were being saved.
Acts 2:46-47
3,081 pertanyaan
6,048 jawaban
5,710 komentar
2,048 pengguna