0 votes
559 vues

A team I am working with needed to make consistent changes in a project in order to correct certain incorrect Unicode characters. The team had done a lot of work on the Parallel Passages tool. Since the change affected nearly every verse, all of the parallel passages marked as done are now turned red. Is there a way to restore the Parallel passage status to that which it was before the letter changes?

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

4 Réponses

0 votes
Meilleure réponse

CrazyRocky, I’m afraid that is not currently possible. We do have a case created already if you want to enquire periodically about its status:
Maintain back translation status etc. for certain bulk actions (PTX-15982)

I don’t think this case has a high priority right now, but in case you want to give input, below is the currently-proposed solution.

For certain kinds of bulk-editing actions, checkboxes in the following “exempt” locations should no longer lose their “Checked” status.

  • Back Translation project(s)
  • Daughter translation project(s)
  • Rows in the Parallel Passages checking view

If any of the following actions is performed on a verse which has already been Checked (in the Back Translation etc.), it should remain Checked:

  • Mark/Unmark performed from the Biblical Terms window.
  • Replace All launched from any spellcheck method (the “X” button or “Apply correction” link in Wordlist, etc.) Note that it does not matter whether the user clicks “Yes” or “Yes to All”.

Out of scope:

  • Ordinary edits
  • Ordinary use of Find/Replace or RegEx Pal

Note that some have suggested we expand the scope and do one of the following:

  • Add smarts to detect when an ordinary Find/Replace action may be a simple spelling fix. OR…
  • Add an non-remembered advanced option to Find/Replace to ‘Preserve “checked” status’ of affected verses.
Ancienne publication - affichée dans sa langue d'origine
par (264 points)

In our case we used a simple find/replace in an Arabic script language. I used the same find/replace on the TermRendereings.xml file and an export of the Wordlist to update those tools. For Parallel Passages there is the ParallelPassageStatus.xml. file. I am thinking that if I had a copy of that file from before the change, i could have run the same find/replace on it and then replaced the file in the PT directory. Do you think that would have worked?

Ancienne publication - affichée dans sa langue d'origine

You can get a copy of that file before the change via the tool TortoiseHg (which is mentioned sometimes in this forum). Using it you can access the history not only for the files of the biblical books, but also for files like ParallelPassageStatus.xml.
TortoiseHg is a rather complex tool, so here is only a short description of what you would have to do:

  1. In order to be extra save, copy the Paratext project folder to somewhere else
  2. Using TortoiseHG, open the copied folder as “project repository”
  3. Find the right revision in the list of revisions
  4. Do a right click on the file ParallelPassageStatus.xml and choose Save at revision...

After you changed this saved file in the intended way, you can copy the file to the original Paratext project folder (overwriting the existing file) and do a normal Send/Receive.

Ancienne publication - affichée dans sa langue d'origine

Since a find/replace should not affect the ParallelPassageStatus.xml file, you could simplify this greatly by just marking a point in project history (for safety) and directly changing the file on disk. No need to go through TortoiseHg to get a certain revision.

Ancienne publication - affichée dans sa langue d'origine
0 votes

I was under the impression that any edit (including a Find/Replace) done in Paratext would affect the Parallel Passages status boxes, but I could be wrong.

Even if it does affect them, you might try using RegEx Pal or an external editor to edit some verses, after checking them off in the Parallel Passages tool, to see if that causes the ticks to become question marks. Should be fairly easy to do if you have a test project to play with.

Ancienne publication - affichée dans sa langue d'origine
par (264 points)
réaffiché
+1 vote

I’m not (yet) seeing how putting the ParallelPassageStatus.xml file back to an older version would help - especially as it looks like that file stores the content of the verse text (presumably in order to check if it has been changed since the status box was checked). Maybe I’m missing something here… but as far as I can tell, regardless of how you change the text of a verse (from a minor spelling change to a major re-write; using Find-and-Replace or RegExPal, or whatever else) if the stored text is different to the current text, then the status box will get unchecked.

Ancienne publication - affichée dans sa langue d'origine
par (3,2k points)

That is correct. The status is calculated on the fly based on comparing the text of the verse when it was marked as complete and what it is now. That is why there is no need to go to a previous version and why a find/replace does not affect the file. Thus, it should be fairly safe to run the same find/replace on the file as was run on the text (as long as it doesn’t change the XML element/attribute names).

Note that this same system is also used for the derived translation status icons.

Ancienne publication - affichée dans sa langue d'origine
0 votes

Thank you. I will inform the team.

Ancienne publication - affichée dans sa langue d'origine
par (1,8k points)

Questions connexes

0 votes
3 réponses 435 vues
A user in a PT8 project has lost all his notes after April 8. I looked at the Notes_(username).xml file for ... only restore text and did not restore notes. Thanks. anon291708 MXB
anon109032 110 posée avr. 27, 2018
0 votes
2 réponses 258 vues
Dear Support team I wanted to insert Parallel Passage References in Paratext8 from a model project or from an ... create a new topic. thanks for understanding. Blessings binoy
binoy 327 posée févr. 16, 2019
0 votes
1 réponse 363 vues
(John Macaulay writes) Can I copy parallel passage references (starting with \r) from one model text (or resource ... to do with cross references, using Tools, Cross References?
anonyme posée avr. 10, 2015
0 votes
1 réponse 188 vues
스크린샷 2018-06-25 오후 2.27.49.png856 402 24.9 KB To reset my project, I deleted my project from the server, and ... of Publisher Edition' has gone. What do I need to do?
anon143470 116 posée juin 25, 2018
0 votes
5 réponses 520 vues
Ma façon habituelle de travailler consiste à avoir environ six fenêtres de texte ou plus dans PT sur deux écrans ... ferait gagner beaucoup de temps et me rendrait très heureux.
Tim 934 posée avr. 30, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus.
Galatians 3:28
3,045 questions
6,005 réponses
5,671 commentaires
2,026 utilisateurs