0 votes
Is there a way to use \nd markers within the caption of an illustration? Just editing the caption in the Figure Properties box or as unformatted text doesn't seem to allow it. Or does the character formatting need to be done at the typesetting stage? If so, what is the best way to flag this in the translation data?
Paratext by (146 points)

2 Answers

0 votes

Hola.

Effectively you cannot add markers inside the caption text. But, as you mention, you can make modifications on the \fig tag when typesetting or even when using PTxPrint.

In PTxPrint you can search for the \fig tag under the Styles tab and look for the \fig tag.
 

If what you are looking for is to add some character marker for only some words within some \fig but not within all, then I think it might be an idea to add some basic character before and after the words to mark, maybe (( and )) always keeping in mind that they are not the ones used in the markers or the language. And use these characters to recognize during diagramming or PTxPrint.

Saludos,
Pepe.

by (907 points)
0 votes

I don't think USFM structure lets that happen, unfortunately. Thus Paratext should not allow you to enter it, and if you try, PTXprint will not like the result anyway.

BUT... PTXprint has been mentioned in another answer. So here's how to *actually* do it in PTXprint (assuming the figures UI is working properly for you...):

In ptxprint-mods.tex, add your equivalent of this:

\protected\def\ndLord{\cstyle{nd}{Lord}}

Use that definition in the caption editor: "The angel of the \ndLord\ appeared..."

A bit of explanation: you're defining a 'protected' macro (\ndLord) that selects the nd character style and typesets "Lord". The  \protected bit means that various things like parsing the input and debug-logging don't expand it, only when it's actually used in the text.  The "\ " between "\ndLord" and "appeared" tells it that you really do want a real space there, it's not just a space to mark the end of the macro.

Don't try to use \ndLord (or equivalent) in anything paratext touches, as \ndLord isn't  USFM, and also (I tried) ptxprint will refuse to pick-up \fig entries that include USFM - valid or not - in the caption, etc, so you'll just end up with ignored images.

by (901 points)
Actually, having said that USFM doesn't support it, I'm not at all sure from the specifications.
If someone from the USFM standards committee said that fig should behave as if it were a character style (with more than the normal number of required attributes, and some 'interesting' side-effects), then I certainly wouldn't argue. (and I'm having a go at  enabling PTXprint to support that usage, at least if the user will guarantee that no USFM2.x style figures are in the document).
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
May the God who gives endurance and encouragement give you the same attitude of mind toward each other that Christ Jesus had.
Romans 15:5
2,749 questions
5,572 answers
5,166 comments
1,592 users