0
373 次瀏覽

I think the proper way to mark words as belonging to the wordlist/glossary is \w␣…\w*␣, where the second space that I’ve marked there is optional. For example, if you wanted punctuation immediately after word, you’d put that immediately after the * and not have a space included.

Also, I’m pretty sure you’re not supposed to add a space after the word and before the end marker \w*. If you do it fails reference checking and tells you there’s a space there.

Is all the above true?


If so, I think there’s a bug either in the USFM standard or in PrintDraft. In TeX, usually you add an optional space before a marker depending on whether you need it in the output, and an obligatory space must come after the marker to signal the end of the marker. USFM seems to treat closing markers with * differently than the TeX rule, and doesn’t require a space after them.

So, what’s happening is if I format my text according to the rules above, I’m getting no spacing between the \w marked word and the next word.

If someone can confirm this is a legitimate problem and not just a mistake on my part, I can write it up as a bug. Should I send it to Paratext or to the ptx2pdf mail list, or someone else?

舊文章 - 以原文顯示
Paratext (1.9k 點) 提出 | 373 次瀏覽

3 個回答

+1
最佳回答

It’s not a bug. The standard
rule is that “\w " including the space is the complete opening
marker. “*” is the complete closing marker. To have a space
in the text after the \w word/phrase”, you would have to type
a space after the closing marker.

      You are correct that the

word/phrase within the phrase should not end in punctuation or
a space. Ending in punc/space means it would have to be
included as a part of the key in the glossary.

舊文章 - 以原文顯示
(571 點) 提出
已重新顯示

Arrgh. I’ve known about how the optional space after a closing marker determines the spacing in the output for years, and it didn’t even occur to me today that maybe the rest of the team didn’t. In fact, that was so far from my mind that I started inventing other ideas of what was going on. Now that I re-read my first post here it makes a lot less sense, and I should have known something was wrong.

I went back and looked more carefully (spacing is extremely difficult to see in our font) and realized there wasn’t a space after the \w* marker. In fact, over an hour later and I’ve found and corrected about 500 places where there wasn’t a space but should have been.

Now I probably need to start search for when there is a space but shouldn’t be…

舊文章 - 以原文顯示
0

The built-in “Export Project to USX” tool in PT also deletes the space after the \w* closing marker, meaning that the <char style=“w”>…</char> result doesn’t have a space after it. To me this suggests a bug in USFM, not PrintDraft.

舊文章 - 以原文顯示
(1.9k 點) 提出
0

Here is a regex I run on all projects to move a space from before a character style closing marker to after it. It ignores \f* \x* and \fe* because you do not want to move a final space out of a footnote, cross reference or endnote into the text:
Find:
(\s)(\\\+?((?!(f|x|fe))\S)*\*)
Replace:
\2\1

舊文章 - 以原文顯示
(1.8k 點) 提出
已重新顯示

I inserted crossed references and they were underlined. What do I do to resolve it?
Then I just ran basic check and found invalid books. What do I do to resolve this?

舊文章 - 以原文顯示

相關問題

0
3 個回答 296 次瀏覽
我可以自訂我的回譯(Back Translation)專案的行間距嗎?
Michel 125 提出 已提問 11月 4, 2023
0
3 個回答 342 次瀏覽
I am trying to adjust the line spacing of the main title in Print Draft in PrintDraft-mods.sty, because some main titles ... in the same way. How can the line spacing be changed?
Paulus Kieviet 517 提出 已提問 8月 21, 2019
0
1 個回答 56 次瀏覽
上週我們正在授課 Paratext 課程,並教導學員如何使用 PTXprint 這些社群的譯者只需要非常基本的列印功能,以便列印草稿供社群檢查,因此有 Mini View 非常實用,讓他們不會感到不知所措 然而,我想向他們展示如何 ... 「Line Spacing」參數就會變灰(最好是在停用之前,先將 2.5 倍的數值填入欄位中) 感謝考慮 Jeff
jeffh 1.4k 提出 已提問 11月 22, 2024
0
1 個回答 242 次瀏覽
我正在使用 Noto Nastaliq Urdu 字型準備新約聖經。我發現很難調整字母間距,使其不會太寬,同時讓單字間距不會太窄。我嘗試了「字型」分頁中各種「字母間距」和「單字間距」的調整組合,但尚未找到令人滿意的解決方案。目前的輸出看起來像是一串沒有明顯單字分隔的字符。有什麼建議嗎?
mlucas53 148 提出 已提問 12月 19, 2023
0
3 個回答 351 次瀏覽
各位社群夥伴, 我需要節號與節文之間,以及 \fr、\fq、\ft 之間有間距。 我嘗試了不同的方法,但都無法成功。 請指導我該怎麼辦? Screenshot 2023-08-22 1114581948×1126 320 KB
sajid.imdad 140 提出 已提問 8月 22, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
3,046 個問題
6,006 個回答
5,671 則評論
2,027 位使用者