0 votes
167 views

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 by (1.4k points) | 167 views

Please log in or register to answer this question.

Related questions

0 votes
0 answers 191 views
Creates an HTML viewable/printable copy of the Project Plan associated with a project. Custom tools > Admin > Show Project ... a great way to show the plan to non Paratext users.
[Moderator]
dhigby
1.3k
asked Nov 12, 2021
0 votes
2 answers 852 views
I recently reported to the developers that 9.1 (unlike 8 or 9.0) is regularly breaking lines in the middle of words ... s? If so, I hope the developers will reconsider this choice.
viverechristus 296 asked Dec 31, 2020
0 votes
5 answers 407 views
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 asked May 14, 2019
0 votes
1 answer 391 views
I would like to export the project to HTML so that I can share drafts with people. I don't want to export to PDF, ... forth. How do I hide the USFM markers from the exported HTML?
bit 495 asked Apr 14, 2022
0 votes
1 answer 251 views
What patch is necessary to fix the problem that requires access to base project to use BT/Daughter/Aux? I thought it ... older updates, etc. Look like it's gone Thanks, listentwice
listentwice 1.2k asked Apr 25, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Accept the one whose faith is weak, without quarreling over disputable matters.
Romans 14:1
3,037 questions
5,994 answers
5,661 comments
2,022 users