我們在一個專案中大量使用波浪號(tilde),該專案的標點符號用法接近法語。
我知道當切換到預覽模式時,所有波浪號都會消失,並顯示為不換行空格。
現在我們正在使用另一個類似的佔位符 §,以便在特定位置保留普通空格(因為 PT 會透過其殘酷的自動刪除空格「功能」將它們刪除)。
我知道該編輯 PrintDraftChanges.txt 的哪個位置,以確保 PDF 輸出正常。
那麼,我該告訴 PT 如何將我們的 § 視為預覽中的普通空格並將其轉換為常規空格呢?
如果有其他方法,例如在 \marker 後直接輸入空格並保護它不被 PT 刪除,那將是更好的解決方案。
或者,如果您碰巧知道某個包含在「我們的常規字體」中、看起來像空格但不會被 PT 刪除的 Unicode 字符,那將是一個不錯的技巧。它需要表現得像換行空格,因為它通常後面跟的是完整的單詞,而不仅仅是標點符號。
(給想了解背景的人:我們有一個用於詞彙表的標記對,其中可以包含 [Greek]、[Hebrew] 或 [French] 提示或詞彙表條目的來源。就像您在字典中看到的那樣。這些當然被標記為非vernacular(非口語/非當地語言),因此它們會干擾我們的標點符號檢查。這就是為什麼我們希望在標記對內部保留所需的空格,而這又會在開頭標記後立即產生一個空格,而 PT 會不斷刪除它。)
We use the tilde a lot in one project, where the punctuation is close to French.
I know that when toggling to preview, all tildes will go away and show the non-breaking spaces.
Now we are using another similar placeholder § to have normal spaces in certain specific locations (where PT would kill them with its brutal auto-delete-spaces “feature”).
I know where to edit PrintDraftChanges.txt so that all is well in PDF output.
Now where please do I tell PT how to consider our § for the preview and turn them into regular spaces?
If there is another way, to just type spaces right after a \marker and protect it from PT, then that would be a better solution even.
Or if you happen to know a Unicode character that is included in “our normal fonts” and does look like a space but is not deleted by PT, that would be a nice hack too. It will need to behave like a breaking space, because it is typically followed by entire words, not just punctuation.
(For those who like to know context: We have a marker-pair for our glossary, where we can include [Greek] or [Hebrew] or [French] hints or origins of glossary entries. Like you see in dictionaries. Those are of course tagged as nonvernacular and so they throw our punctuation checking. This is why we would like the needed spaces inside our marker-pair and that in turn would put a space right after the opening marker, where PT keeps deleting it.)
機器翻譯自 English