Trying a different approach and wondering if it matters anyway
A reader on this forum pointed out to me that I am misusing \add…\add* by doing our lists this way. So now I’m trying to use \rem instead. I am experimenting with lines like this in the text:
\rem πορνεία/sexual immorality
\li pasin iyn toro temiyn ke wuruaw tana,
\rem ἀκαθαρσία/impurity
\li re pasin koro teiynjieiyn ektek ono,
\rem πάθος/lust
\li pasin iyn toroꞌa re niy etere iyn awro pasin kokelek,
I tried to make a regex that would take out the \rem lines the way mjames gave me a way to take out the \li lines containing \add…\add* earlier in this thread. I have tried and failed using these combinations:
‘\rem .*?\li’>‘\li’
‘\li’>‘’
and
‘\rem .*?\r\n’>‘’
‘\li’>‘’
Those \rem markers are all escaped, but this platform is stripping them out.
When I used what mjames gave me and I used \add…\add*, I was able to print the lists as lists, which is helpful in checking, and I could also print the lists collapsed into normal paragraphs, which is our goal for publishing trial editions. All I can do now is print them as lists. Apparently, I’m not really getting the \rem lines out, so when I remove the \li markers, it’s all one \rem paragraph and therefore the contents of those lines doesn’t make it to the PDF. So maybe all I need is a better regex to do that in PrintDraftChanges and all will be well.
I want to retain the options to print the lists as lists or as paragraphs. I also want to retain the markings in the text, even after DBL submission, so we can have those helpful markings when we revise these books later before a complete NT is published.
But I know that when I submit these books to the DBL, all that custom marking must be gone.
So when I’m ready to submit books to the DBL, I wonder if this would work:
- Mark a point in the project history (“before cleanup for DBL submission”).
- Remove all custom markup.
- Mark a point in the project history again (“DBL submission”).
- Submit to DBL.
- Revert those books back to (“before cleanup for DBL submission”).
- Continue to work on the text as before, continue to print it locally as needed, in whatever form needed.
If that is a viable strategy, then I wonder if it matters whether I abuse USFM by using \add…\add* and \li or whether I abuse it by interleaving \rem lines with \li lines in the middle of a paragraph? If it doesn’t matter, then I guess we will use the markup strategy that is the most helpful for both using the text and submitting it to DBL. I’m not sure which method that is. I’m open to suggestions.
I’m leaning toward doing this:
\li \add sexual immorality/πορνεία\add*
\li pasin iyn toro temiyn ke wuruaw tana,
\li \add impurity/ἀκαθαρσία \add*
\i pasin koro teiynjieiyn ektek ono,
\li \add debauchery/ἀσέλγεια\add*
\li ke pasin iyn etere takai ektekna iyn toro re pasin kokelek ektek ono,
I originally chose \add…\add* because it is a character style and we won’t use it in our translations since it is only designed to mark something we would never mark in our translations.
Whatever I do, we’re going to do the same thing in at least 12 translations in our cluster. So I need to get this right.
Please feel free to suggest an entirely different approach to this problem.
Thanks for any help you can give me on this, and thank you for reading this far.
John Nystrom
Aitape West Translation Programme
SIL PNG