Maaf, saya tidak melihat bahwa Anda sudah membalas.
Mungkin dimungkinkan untuk menulis beberapa yang mencakup kemungkinan-kemungkinan, tidak yakin. Dalam proyek yang sedang saya kerjakan, ada beberapa hal berbeda yang memecah \wj
Untuk penanda \wj yang dipecah oleh ayat, ekspresi reguler yang saya gunakan adalah
(\\wj [^\\]+)(\r\n\\v \d+(-\d+)? )
String penggantian
\1\\wj*\2\\wj
Dalam string penggantian, ada spasi terakhir setelah \\wj
Pada dasarnya, ini mencari teks non-penanda, diikuti oleh penanda ayat, lalu menutup \wj sebelum penanda ayat, dan membuka kembali setelahnya.
Juga, jika saya tidak salah ingat, jika melakukan penggantian semua, Anda harus menjalankan ini beberapa kali.
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
Diterjemahkan secara otomatis dari English