我们在一个项目中大量使用波浪号(tilde),因为该项目的标点符号风格接近法语。
我知道,当切换到预览 模式时,所有波浪号都会消失,并显示为不换行空格。
现在我们正在使用另一个类似的占位符 §,以便在特定位置保留普通空格(因为 PT 的“粗暴”自动删除空格“功能”会将其删除)。
我知道如何编辑 PrintDraftChanges.txt,以确保 PDF 输出正常。
那么,请问我该如何告诉 PT 在预览中如何处理我们的 §,并将其转换为普通空格?
如果有其他方法,例如直接在 \marker 后输入空格并防止 PT 将其删除,那将是更好的解决方案。
或者,如果您恰好知道某个包含在“我们的常规字体”中、看起来像空格但不会被 PT 删除的 Unicode 字符,那也是一个不错的技巧。它需要表现得像一个可换行空格,因为它后面通常跟着完整的单词,而不仅仅是标点符号。
(给想了解背景的人:我们有一个用于词汇表的标记对,其中可以包含 [Greek]、[Hebrew] 或 [French] 等词汇表条目的提示或词源。就像您在词典中看到的那样。这些当然被标记为非方言(nonvernacular),因此会干扰我们的标点检查。这就是为什么我们希望标记对内部 需要空格,而这又会在起始标记后产生一个空格,而 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 显示原文