0 votos
179 vistas

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…

Publicación antigua - se muestra en su idioma original
Paratext por (1,4k puntos) | 179 vistas

Por favor, inicie sesión o regístrese para responder a esta pregunta.

Preguntas relacionadas

0 votos
0 respuestas 203 vistas
Crea una copia en HTML visualizable/imprimible del Plan del Proyecto asociado con un proyecto. Herramientas personalizadas ... mostrar el plan a usuarios que no utilizan Paratext.
[Moderator]
dhigby
1,3k
preguntada nov 12, 2021
0 votos
1 respuesta 227 vistas
Obtuve un error al intentar usar Outils personnalisation > Admin > Show Project Plan HTML en PT9.0 en Wasta- ... donde el módulo _winreg se referencia en los scripts de cms.
n8_in_car 298 preguntada ene 24, 2023
0 votos
2 respuestas 949 vistas
Recientemente informé a los desarrolladores de que la versión 9.1 (a diferencia de la 8 o la 9.0) rompe ... De ser así, espero que los desarrolladores reconsideren esta elección.
viverechristus 296 preguntada dic 31, 2020
0 votos
5 respuestas 470 vistas
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 preguntada may 14, 2019
0 votos
1 respuesta 446 vistas
Me gustaría exportar el proyecto a HTML para poder compartir borradores con otras personas. No quiero exportar a PDF, ... otras. Cómo oculto las marcas USFM del HTML exportado?
bit 495 preguntada abr 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And over all these virtues put on love, which binds them all together in perfect unity.
Colossians 3:14
3,049 preguntas
6,007 respuestas
5,672 comentarios
2,029 usuarios