你好,
我刚刚做了一个小测试,向文件中添加了这一行:
\f + \fk test one \ft - Hmm\f* \f + \fk test two\ft - no space\f*
一旦到达 XeTeX 级别(将 USFM 转换为 PDF 的部分),我就无法重现你报告的第一种情况,所以问题不在那里。
还有几种可能性:
- PTXprint(python 代码)移除了空格
- 你在
changes.txt 文件中有一行代码移除了空格。
- 你使用了一个特殊字符,其行为不像普通空格或普通字母(因此我的 ASCII 减号测试并不完全准确)。
如果你想深入挖掘,可以查看 local/ptxprint/[project-name] 目录(你的斜杠方向可能相反),该目录位于你的 USFM 文件所在位置的下方。在那里你会找到许多内容,包括提供给 XeTeX 任务的已重写 USFM 文件。你可以查看它们,检查关键词和 \ft 之间是否仍有空格。如果有,那么我的猜测是(3),我会将该行文本提供给一个能告诉我每个字符的 Unicode 值的工具。
附注。我刚刚将上述测试行通过整个 PTXprint 流程(这次特定的测试运行显然对脚注进行了分段):

因此,如果你使用的是简单的 U+002D HYPHEN-MINUS 和普通空格,那么上述(1)的可能性不大。
希望这有助于你追踪问题所在。如果没有,你可以创建一个存档(参见 PTXprint 中的帮助选项卡),并通过电子邮件提交到那里列出的地址(引用此主题)。
David
Hi,
I’ve just done a little test, adding this line to a file:
\f + \fk test one \ft - Hmm\f* \f + \fk test two\ft - no space\f*
And I can’t make the first one to behave as you are reporting once you get to the XeTeX level (the part that turns USFM into PDF), so it’s not a problem there.
There are some possibilities remaining:
- PTXprint (python code) is removing the space
- You have a line in
changes.txt file which is removing the space.
- You are using a special character which does not behave as a normal space or a normal letter (and so my ASCII minus did not test things properly).
If you want to dig a bit deeper, you could look in the local/ptxprint/[project-name] directory (your slashes may be the other way) under where your USFM files are. In there you’ll find lots of things including the re-written USFM file(s) that is/are fed to the XeTeX job. You could then look at them to check to see if your space is still there, between the keyword and \ft. If it is, then my guess is (3), and I’d be feeding that line of text to something that tells me unicode values for each character.
ps. I’ve just put the above test line through the whole PTXprint process (this particular test run clearly paragraphed the footnotes):

So, IF you are using a simple U+002D HYPHEN-MINUS, with normal spaces, then (1) above is unlikely.
I hope this helps you track down the issue. If not, then you can create an archive (see the help tab within PTXprint) and submit it by email to the address listed there, (referencing this topic).
David
机器翻译自 English