Je me suis retrouvé à devoir faire cela, et j'ai créé une Expression Régulière qui me permet de changer tous les champs Status de « todo » à « deleted » livre par livre. J'ai remarqué que le format/l'ordre des champs dans le fichier XML était toujours cohérent :

image1284×121 7.28 KB
J'ai donc pu créer une expression qui trouve une VerseRef dans un livre particulier, ignore le reste de cette ligne, puis saute un nombre quelconque de lignes qui commencent par des espaces puis un <S ou <C, puis cherche une ligne qui commence par des espaces puis <Status>todo. Elle changera ce « todo » en « deleted ». Voici l'expression :
Find: (VerseRef="\dJN .+\r\n(\s+<[SC].+\r\n)*?\s+<Status>)todo
Replace: \1deleted
Dans un éditeur de texte capable de travailler avec des Expressions Régulières (Notepad++ si vous n'avez pas de favori), utilisez ces chaînes de recherche et de remplacement pour trouver toutes les notes non résolues dans 1JN, 2JN, 3JN, et les changer en résolues.
Le \dJN dans l'expression de recherche utilise une autre RegEx pour trouver les notes dans tous les livres qui commencent par un chiffre puis JN. Vous pouvez remplacer cette chaîne par un autre code de livre pour trouver les notes dans ce livre, par exemple MAT, ISA, ou des choses comme \dCO pour 1CO et 2CO.
J'espère que cela aidera quelqu'un là-bas (et pourrait m'aider si je dois le refaire…
)
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:

image1284×121 7.28 KB
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…
)
Traduit automatiquement depuis English