尝试不同的方法,并想知道这是否重要
论坛上的一个读者指出我通过这种方式制作列表是误用了 \add…\add*。所以现在我在尝试使用 \rem。我正在文本中试验像这样的行:
\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,
我试图制作一个正则表达式,以像 mjames 之前在这个帖子中提供去除包含 \add…\add* 的 \li 行的方式那样去除 \rem 行。我尝试并失败了,使用了这些组合:
‘\rem .*?\li’>‘\li’
‘\li’>‘’
以及
‘\rem .*?\r\n’>‘’
‘\li’>‘’
那些 \rem 标记都是转义的,但这个平台将它们去除了。
当我使用 mjames 给我的方法并使用 \add…\add* 时,我能够将列表作为列表打印,这在检查时很有帮助,我也能够将列表折叠为正常段落打印,这是我们出版试读版的目标。现在我只能将它们作为列表打印。显然,我没有真正去除 \rem 行,所以当我移除 \li 标记时,它们都变成了一个 \rem 段落,因此那些行的内容没有进入 PDF。所以也许我只需要一个更好的正则表达式在 PrintDraftChanges 中做到这一点,一切就会好起来。
我想保留将列表作为列表或作为段落打印的选项。我还想保留文本中的标记,即使在提交给 DBL 之后,这样我们在出版完整新约之前修订这些书卷时,可以拥有这些有用的标记。
但我知道,当我将这些书卷提交给 DBL 时,所有这些自定义标记必须消失。
所以,当我准备好将书卷提交给 DBL 时,我想知道这是否可行:
- 在项目历史中标记一个点(“DBL 提交前清理”)。
- 移除所有自定义标记。
- 再次在项目历史中标记一个点(“DBL 提交”)。
- 提交给 DBL。
- 将这些书卷恢复到(“DBL 提交前清理”)。
- 继续像以前一样处理文本,根据需要继续本地打印,以任何需要的形式。
如果这是一个可行的策略,那么我想知道我是否滥用 USFM 通过使用 \add…\add* 和 \li,或者通过在段落中间交错 \rem 行和 \li 行来滥用它是否重要。如果这不重要,那么我想我们会使用对使用文本和提交给 DBL 都最有帮助的标记策略。我不确定那是哪种方法。我欢迎建议。
我倾向于这样做:
\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,
我最初选择 \add…\add* 是因为它是一种字符样式,而且我们在翻译中不会使用它,因为它仅用于标记我们在翻译中永远不会标记的内容。
无论我做什么,我们将在我们集群中的至少 12 种翻译中做同样的事情。所以我需要把它做对。
请随意建议一个完全不同的方法来解决这个问题。
感谢任何能给我的帮助,也感谢你读到这里。
John Nystrom
Aitape West Translation Programme
SIL PNG
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