0 votes
243 vues

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…

Ancienne publication - affichée dans sa langue d'origine
Paratext par (1,4k points) | 243 vues

Veuillez vous connecter ou vous inscrire pour répondre à cette question.

Questions connexes

0 votes
0 réponses 252 vues
Crée une copie HTML consultable/imprimable du Plan de Projet (Project Plan) associé à un projet. Outils personnalisés ... le plan aux utilisateurs qui n'utilisent pas Paratext.
[Moderator]
dhigby
1,3k
posée nov. 12, 2021
0 votes
1 réponse 343 vues
J'ai rencontré une erreur en essayant d'utiliser Outils personnalisation > Admin > Show Project Plan ... endroits où le module _winreg est référencé dans les scripts cms.
n8_in_car 298 posée janv. 24, 2023
0 votes
2 réponses 1,6k vues
J'ai récemment signalé aux développeurs que la version 9.1 (contrairement à la 8 ou à la 9.0) casse régulièrement ... le cas, j'espère que les développeurs réexamineront ce choix.
viverechristus 296 posée déc. 31, 2020
0 votes
5 réponses 874 vues
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 posée mai 14, 2019
0 votes
1 réponse 699 vues
Je souhaite exporter le projet en HTML afin de pouvoir partager des brouillons avec d'autres personnes. Je ne veux ... . Comment masquer les marqueurs USFM dans le HTML exporté ?
bit 496 posée avr. 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I appeal to you, brothers and sisters, in the name of our Lord Jesus Christ, that all of you agree with one another in what you say and that there be no divisions among you, but that you be perfectly united in mind and thought.
1 Corinthians 1:10
3,079 questions
6,045 réponses
5,708 commentaires
2,045 utilisateurs