0 votes
8 views

We have traditionally NOT allowed lines to break in-word hyphens. But for this Jonah book we want to experiment with this option. On the View/Edit > Changes.txt tab I added the code snippet from the very helpful buttons at the right--line 7 in the screenshot. This works great--thank you for these helpful snippet suggestions! However, in one paragraph I need to avoid an orphaned suffix string, so I added line 9 and then used "Expand paragraph by one line" in my PTX Print Layout window. 

image

The result of this configuration is below--same result : Line 7 overrides line 9. When I comment out line 7 the word piriʼooareha-ʼuuri is correctly moved as a unit to the next line; however... all end-of-line in-word hyphens are treated as non-breaking, which is not what I want. 

So then I noticed (duh!) that line 7 allows the line break by inserting a zero-width space after the hyphen. So I tried this for line 9:

at JON 1:8 '(piriʼooareha)-\u200B(ʼuuri?”)' > '\1\u2011\2'

But the suffix was still orphaned. This regex code is above my power-OWL paygrade.

image

So how do I override the "allow linebreaks after in-word hyphens" code for a single instance? Or could this code snippet be tweaked for a narrower scope or something?

PTXprint by (670 points) | 8 views
Many thanks, Phil. I finally got it to work. I've gotta remember that rule order matters.

1 Answer

+1 vote
Try reversing lines 7 and 9. Change the word you want to protect to the non-breaking hyphen and then the rule allowing the break won't apply.
by (9.8k points)

Related questions

0 votes
2 answers 229 views
I'm preparing a text using the Noto Nastiliq Urdu font. But I need to use a Roman font in the changes.txt edit screen ... font, but PTXprint hung up when I tried to print. Advice?
mlucas53 148 asked Jul 22, 2024
0 votes
2 answers 257 views
In the language we work some affixes and clitics are separated from the stem by hyphens. This hyphen is defined in the ... , I'm going to suggest such a feature. Thanks, rfkvg
Roland 245 asked Dec 1, 2021
0 votes
3 answers 309 views
I'm having a problem with text presentation of a resource in a Text Collection. To see this yourself, download the resource ... to the project, I believe we could get it changed.
jeffh 1.4k asked Aug 10, 2020
0 votes
2 answers 157 views
I need to enlarge some \mt1 text in the FRT, but I don’t want to enlarge the \mt1 text for the rest of the PDF. How would I do that? Thanks, Mike
listentwice 1.2k asked Jan 20, 2022
0 votes
2 answers 289 views
I was playing around with ornaments and there was a ptxprint-premods.tex that showed up at some point on the Advanced ... edit the file in PTXprint anymore. Sadness sets in...
jeffh 1.4k asked Apr 8, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
All the believers were one in heart and mind. No one claimed that any of their possessions was their own, but they shared everything they had.
Acts 4:32
3,037 questions
5,995 answers
5,661 comments
2,022 users