0
686 次浏览

有一个团队要求我删除其翻译项目中几个选定章节中的所有笔记。他们有数百条这样的笔记,因此手动解决它们需要很长时间。有没有办法让我执行批量操作来解决这些笔记?

机器翻译自 English
Paratext (229 分) 发布 | 686 次浏览

8 个回答

+2
最佳答案

There is not a command in Paratext for this. But I think you could do it in a manual edit if you are willing and able to edit XML files.

My suggestion:

  1. Make a copy of the project so you can try out your note editing in the copy, without affecting the regular project until you know your changes are what you want. You can do this by making a backup to file of the existing project (In Paratext, go to the main menu, Advanced , Backup project to file. )

  2. Restore from the backup file to a new project. (In Paratext, go to the main menu, Advanced, Restore project from file). Select the zip file you just made, then click “New” at the top right of the restore dialog to create a new project. Name the new project what you want. You can ignore the warning about doing this in a shared project. The new project will not be shared with anyone.

  3. Now close Paratext. In the new project folder, find the notes files and open them in Notepad or another text editor.
    image

  4. An individual note looks like this:

  5. Search for the desired chapter you want to resolve by typing the three letter book code, space, then the chapter number. (In our example, EXO 2 for Exodus chapter 2).

  6. When you find a note, to resolve it type “deleted” in the status field (as in the orange rectangle, between <Status> and </Status>)

  7. repeat search and edit for the other chapter numbers

  8. save your edits.

  9. if needed, edit other notes files. There is a note file for each user. But if several users comment on the same note, if the status is set to “deleted” in anyone of those user files, the note should be resolved.

Open Paratext and check if the notes in this new project work as desired. If Paratext says the notes file was corrupted, and renamed notes_user name.corrupt, you know you corrupted some of the XML markers. You should not remove any < or > or </ in the file.

[Expert]
(3.3k 分) 发布

已重新显示

This is still a lot of manual work, one cannot do a simple Find/Replace. It would be really useful if there was a “Bulk Resolve” feature within Paratext, since then one could first filter the notes and then resolve only those that match the filter.

0

Thank you @sewhite for the detailed instruction. I’ll try it and update you here.

(229 分) 发布
0

@sewhite I’ve followed your instructions and managed to resolved all the notes. Thanks a lot for your help. There were about 1800 notes to be resolved. So your tip has saved a lot of time for me.

(229 分) 发布
0

@MatjazCrnivec @anon649716

If you would like to request this feature, you can follow the instructions to “Make a Suggestion” here: https://paratext.org/paratext-help-and-support/

[Moderator]
(2.1k 分) 发布
+1

I found myself needing to do this, and created a Regular Expression that allows me to change all of the Status fields from “todo” to “deleted” on a book by book basis. I noticed that the format/order of the fields in the XML file was always consistent:

So I was able to create an expression that finds a VerseRef in a particular book, ignores the rest of that line, then skips over any number of lines that begin with spaces and then a <S or <C, then looks for a line that starts with spaces and then <Status>todo. It will change that “todo” to “deleted”. Here is the expression:

Find: (VerseRef="\dJN .+\r\n(\s+<[SC].+\r\n)*?\s+<Status>)todo
Replace: \1deleted

So in a text editor that can work with Regular Expressions (Notepad++ if you don’t have a favorite), use those find and replace strings to find all of the notes that are not resolved in 1JN, 2JN, 3JN, and change them to resolved.

The \dJN in the find expression uses a further RegEx to find notes in all books that start with a digit and then JN. You can replace that string with another book code to find the notes in that book, e.g. MAT, ISA, or things like \dCO for 1CO and 2CO.

Hope that helps someone out there (and might help me if I have to do it again… :slight_smile:)

(1.4k 分) 发布
0

Well, I’m finding that I need to process multiple books at a time, since I also need to process notes from multiple users. The way to do that in Regular Expressions is parentheses around a list of book names separated by vertical bars |.

So this is the expression for changing notes in all the gospels:

Find: (VerseRef="(MAT|MRK|LUK|JHN) .+\r\n(\s+<[SC].+\r\n)*?\s+<Status>)todo

For the entire NT (what I needed in my case):

Find: (VerseRef="(MAT|MRK|LUK|JHN|ACT|ROM|\dCO|GAL|EPH|PHP|COL|\dTH|\dTI|TIT|PHM|HEB|JAS|\dPE|\dJN|JUD|REV) .+\r\n(\s+<[SC].+\r\n)*?\s+<Status>)todo

If you want to mark notes as resolved in all books, you can just get rid of the book code (and the space afterwards), or if you want to make sure that there is SOME 3-letter code there (a bit of a sanity check), then you can use:

Find: (VerseRef="\w\w\w .+\r\n(\s+<[SC].+\r\n)*?\s+<Status>)todo
(1.4k 分) 发布
0

Alright, here’s one more bonus comment. I was finding a number of Notes that had an empty <Status></Status> field. It turns out I just want to get rid of all of these notes, so I created another RegEx that deletes entire Comments for the specified books.

 +<Comment .+?(VerseRef="(MAT|MRK|LUK|JHN|ACT|ROM|\dCO|GAL|EPH|PHP|COL|\dTH|\dTI|TIT|PHM|HEB|JAS|\dPE|\dJN|JUD|REV) .+\r\n(\s+<.+\r\n)*?\s+</Comment>\r\n)

Note that there is a space before that first + sign. I needed to use a space rather than \s, because that seemed to slurp up the line break before it and mess up the line breaking in the file.

(1.4k 分) 发布
+1

Beware that you may get unexpected behavior doing this to your notes file(s). Paratext is not expecting the first comment in a thread to already be “deleted”. Unless you know that the notes file you’re editing is for users who never create notes, I would strongly suggest not doing this.

You should be very careful editing any Paratext file directly!

[Expert]
(16.7k 分) 发布

相关问题

0
5 个回答 318 次浏览
I have a test project that has multiple people with write permission (a bit of a free-for-all), and after two people ... conflicts. Is there any way to resolve them all in bulk?
jeffh 1.4k 发布 提问于 十二月 2, 2020
0
1 个回答 362 次浏览
The book of Acts was checked by one of our translators. He placed a lot of notes for spelling issues and then for all ... would be nice if a right click or so would resolve it.
Anne Stoppels 106 发布 提问于 六月 13, 2023
0
1 个回答 38 次浏览
我有一个无法解决的笔记线程。它已经挂在那里快三年了,我看它看腻了。有没有什么想法,为什么我点击“Resolve”时线程无法解决?我是这个项目的管理员。该线程的初始作者已不再属于团队。 感谢你们能提供的任何帮助。 John Nystrom
john_nystrom 312 发布 提问于 四月 20
0
5 个回答 1.3k 次浏览
大家好, 有没有人知道如何批量创建(顾问)笔记?我想在许多不同的经节中创建相同的笔记。 例如,有些语言偏好“原因-结果”语序,而另一些语言偏好“结果-原因”语序。如果能创建笔记作为快速提示,以便那些偏好与源语言不同的团队知道需要考虑这种变化,那就太好了。这样说得通吗?团队可以选择与其语言相关的语言问题。
Caleb R 186 发布 提问于 八月 29, 2022
0
2 个回答 258 次浏览
Similarly to Iver, I have never used RegEx. I have a team who has changed their cross-reference format to use ... any courses, EMDC online sessions on RegEx? Thanks, anon928451
anon928451 127 发布 提问于 九月 21, 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,044 个问题
6,004 个回答
5,671 条评论
2,026 位用户