Desculpe, não vi que você tinha respondido.
Pode ser possível escrever várias que cubram as possibilidades, não tenho certeza. No projeto em que eu estava trabalhando, havia várias coisas diferentes interrompendo o \wj
Para um marcador \wj que foi interrompido por versículos, a expressão regular que eu usei foi
(\\wj [^\\]+)(\r\n\\v \d+(-\d+)? )
String de substituição
\1\\wj*\2\\wj
Na string de substituição, há um espaço final após o \\wj
Basicamente, ela procura texto que não seja de marcador, seguido por um marcador de versículo, e então fecha o \wj antes do marcador de versículo e reabre depois.
Além disso, se eu me lembro certo, se você fizer uma substituição de tudo, terá que executar isso várias vezes.
BEH
Sorry, I didn’t see that you had replied.
It might be possible to write several that cover the possibilities, not sure. In the project I was working on, there were several different things breaking up the \wj
For a \wj marker that was broken up by verses, the regular expression I used was
(\\wj [^\\]+)(\r\n\\v \d+(-\d+)? )
Replacement string
\1\\wj*\2\\wj
In the replacement string, there is a final space after the \\wj
Basically, it searches for non marker text, followed by a verse marker, and then closes the \wj before the verse marker, and reopens after.
Also, if I recall correctly, if doing a replace all, you have to rerun this multiple times.
BEH
Tradução automática de English