嘗試不同的方法,並想知道這是否重要
論壇上的一位讀者指出,我通過這種方式製作列表是誤用了 \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