0 votes
266 views

This question has essentially been asked but not answered here also.

Can milestone markers be used to style text?
If so, what’s the syntax in the custom.sty file? So far I haven’t gotten anything to work.

If the answer is “no”, then I’m curious to know what the actual use case of milestones is.


For example, we mark quotations by using a different font, so our custom.sty sheet includes

\Marker qt
\Fontname Scheherazade

The reason we don’t love this system is because character styles are supposed to be opened and closed whenever you get to non-character styles, which means a quote that spans verses or has a footnote in the middle of it requires lots of extra markers.
\v 2 \qt here's a long quotation\qt*\f + \ft footnote\f* \qt and then the continuation of it.\qt*
\v 3 \qt but then it goes to a new verse.\qt*
\v 4 \qt And another one.\qt*

This would be a whole lot nicer
\v 2 \qt-s\* here's a long quotation\f + \ft footnote\f* and then the continuation of it.
\v 3 but then it goes to a new verse.
\v 4 And another one.\qt-e\*

Paratext by (1.9k points)
reshown | 266 views

1 Answer

0 votes
Best answer

Closing and opening styles can be a real pain but there is really no way around it. The same issue applies to red-letter markup \wj …\wj*. I created the following Regex Pal regex to insert closing and opening \wj* …\wj markers where needed. You only need to mark the beginning and end of a text span with \wj and \wj* When you run the regex it puts in the intermediate markers around footnotes, cross-references, headings, and verse numbers, but not chapter numbers. You must manually close and restart around chapters.
Find:

(?<=\\wj\s)(?s)((?!\\wj\*).)*(?=\u200F*\\wj\*):::((\s*(\\(b|p\w*|mi?|q\w*)\s|(\\(m?r|m?s\w*)\s.*)+|\s+\\v\s\S+\s|\\(x|ef|f|add)\s.*?\\(x|ef|f|add)\*))+)(\s*)

Replace (there is a a space at the end of the replace):

\\wj*\1\9\\wj\u0020

You can modify it to do the same with \qt:

(?<=\\qt\s)(?s)((?!\\qt\*).)*(?=\u200F*\\qt\*):::((\s*(\\(b|p\w*|mi?|q(?!t)\w*)\s|(\\(m?r|m?s\w*)\s.*)+|\s+\\v\s\S+\s|\\(x|ef|f|add)\s.*?\\(x|ef|f|add)\*))+)(\s*)

Replace:

\\qt*\1\9\\qt\u0020

The \u200F is included to make it compatible with RTL scripts.

by (1.8k points)
reshown

Thank you. The regexes are certainly amazing, and I’ll test them out.

However, I still have my original questions regarding milestones.

  1. Can they be styled?
  2. If they can’t fix this sort of proliferation-of-markers problem, what are they actually used for?

Short answer, you cannot style milestones in Paratext since they are self closing. They have no content (though they might have attributes.
Of course there is nothing would prevents you from setting up a typesetting or display system that applies a different style sheet between milestones.

Related questions

0 votes
1 answer 19 views
I see that there was a bug in v7 (at least) which prevented formatting quotes (italics) as words of Jesus (red). But I ... wrong? Is this a feature or a bug? Is there a workaround?
ASmith 169 asked Jul 10, 2025
0 votes
1 answer 20 views
I'm seeing that there was a bug which prevented quotes within words of Jesus markers from being colors in earlier versions ( ... (red) but not both. Can anyone help with this?
ASmith 169 asked Jul 10, 2025
0 votes
3 answers 270 views
Can anyone shed light on why I'm getting Character style not closed: \qt for this: \v 26 †Mi murie mai, ... it's not being recognised. Many other instances of this are accepted
Paul 642 asked Mar 30, 2023
0 votes
2 answers 303 views
I receive an error when using \qt when the quote includes another marker such as \pg pg*. Does this mean no ... there anyway around this? What is there purpose for this error?
Clear7419 251 asked Sep 14, 2022
+1 vote
1 answer 276 views
I have a recently-completed text that we are trying to put into the DBL. OT quoted in the NT is tagged with \ ... there a better structure? Should I simply deny the errors? Ideas?
Matthew_Lee 231 asked Dec 8, 2020
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
3,037 questions
5,995 answers
5,662 comments
2,022 users