0 suara
179 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) | 179 tampilan

Silakan masuk atau daftar untuk menjawab pertanyaan ini.

Pertanyaan terkait

0 suara
0 jawaban 203 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 227 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 949 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 470 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 446 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 495 bertanya Apr 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
3,049 pertanyaan
6,007 jawaban
5,672 komentar
2,029 pengguna