0 votes
18 views

I'm having pretty good success using this command to prevent breaks before a specific marker (e.g. to always keep a \q2 with the previous \q1 or \q2):

\sethook{before}{q2}{\nobreak}

But I'm having less luck with the \setbetweenhook command. The situation is that I have text like the following in a number of places:

\s Injiil Isa al-Masiih, al-katabah al-rasuul Matta (Matthieu)
\pc (Évangile : Mt 1, 18-24)
\p
\v 18 Daahu taariikh ...

I want to prevent the \s and \pc from being at the bottom of a column. I would think that the following would do it, but it doesn't seem to help:

\setbetweenhook{pc}{p}{\nobreak}

Any suggestions?

PTXprint by (1.4k points) | 18 views

2 Answers

0 votes
Best answer

It turns out the adding the \b after the \pc didn't work. (It also got absorbed by the \nobreak.) So I thought I would add a new paragraph with a no-break space like this:

'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p \u00a0\2'

But that also seems to get absorbed. If I make the no-break space into a real character "x", then the spacing works out about right... but it also puts an "x" in the output!

'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p x\2'

Is there something I can put in the paragraph that would be invisible, but would not get absorbed by the \nobreak?
Jeff

UPDATE: Well, it turns out that a narrow no-break space is invisible and doesn't get absorbed:

'(\\pc .+)(\n\\s |\n\\s2 |\n\n)' > '\1\n\\p \u202f\2'

Jeff

by (1.4k points)
selected by
0 votes

I found somewhat of a workaround. I had more luck with the following:

\sethook{after}{pc}{\nobreak}

But there were some situations where I didn't want the \pc attached to the following element. In those cases, I needed to add a \b after the \pc with the following line in "changes.txt":

'(\\pc .+)(\n\\s |\n\n)' > '\1\n\\b\2'

I would be happy to hear of better solutions...
Jeff

by (1.4k points)

Related questions

0 votes
1 answer 74 views
For recording I would like to hand out each reader their chapter(s) to read on separate pages, in such a way that ... I would find that very helpful! Thanks for any help! Roland
Roland 245 asked Mar 10, 2025
0 votes
2 answers 124 views
It seems that the "Start 1st Chapter on a New Page" option is not working in PTXPrint 2.7.6. If I select "All Chapters" ... I'm missing? Chapter 1 is marked with \c 1 in Paratext.
marvinson 304 asked Dec 6, 2024
0 votes
2 answers 263 views
When I run the Unmatched Pairs of Punctuation Check (PT 8 or 9), almost every opening quotation mark that starts a quote ... this case!). Any ideas on how to resolve this problem?
viverechristus 296 asked Aug 21, 2020
0 votes
2 answers 278 views
Does anyone know if there is a way in PT8 to transfer paragraph breaks and section headings from one project to another?
anon233143 252 asked Feb 22, 2018
0 votes
1 answer 284 views
I'm supporting a user who when trying to start a new paragraph cannot just enter \p . If he enters the ... with the EWTS Tibetan Keyboard, if that helps. Thanks, -anon482869
anon482869 105 asked Aug 7, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
So Peter was kept in prison, but the church was earnestly praying to God for him.
Acts 12:5
3,037 questions
5,994 answers
5,661 comments
2,022 users