0 голосов
250 просмотров

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 от (1,4тыс. очков) | 250 просмотров

Пожалуйста, войдите или зарегистрируйтесь, чтобы ответить на этот вопрос.

Похожие вопросы

0 голосов
0 ответов 257 просмотров
Создаёт HTML-копию плана проекта (Project Plan), связанного с проектом, которую можно просмотреть или распечатать. ... способ показать план пользователям, не работающим в Paratext.
[Moderator]
dhigby
1,3тыс.
задал вопрос ноя 12, 2021
0 голосов
1 ответ 366 просмотров
При попытке использовать Outils personnalisation > Admin > Show Project Plan HTML в PT9.0 в Wasta-Linux ... - единственные, где модуль _winreg упоминается в скриптах cms.
n8_in_car 298 задал вопрос янв 24, 2023
0 голосов
2 ответов 1,7тыс. просмотров
Недавно я сообщил разработчикам, что в версии 9.1 (в отличие от 8 или 9.0) строки регулярно переносятся ... у Microsoft? Если да, надеюсь, разработчики пересмотрят этот выбор.
viverechristus 296 задал вопрос дек 31, 2020
0 голосов
5 ответов 903 просмотров
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 задал вопрос май 14, 2019
0 голосов
1 ответ 719 просмотров
Я хотел бы экспортировать проект в HTML, чтобы делиться черновиками с другими людьми. Я не хочу экспортировать в PDF ... далее. Как мне скрыть маркеры USFM в экспортированном HTML?
bit 496 задал вопрос апр 14, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Give proper recognition to those widows who are really in need.
1 Timothy 5:3
3,081 вопросов
6,048 ответов
5,710 комментариев
2,048 пользователей