你好,
我剛做了一個小測試,在文件中添加了這一行:
\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