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?