0 votes
23 views

We are having a substantial list of hand-crafted hyphenation data, pulled into PTXPrint from an underlying PT-project via > Fonts+Scripts > Hyphenation > Import List...

I have found a file here, that seems to be a result of that import:

"D:\[path]\PT9\[project]\shared\ptxprint\hyphen-[project].tex"

This .tex file is encoded in UTF8 and I see only "normal" hyphens in form of U+002D. Now I would like to use a regex to reduce hyphenation-options which are "possible but ugly": 

I would shut down PTXPrint, make a backup-copy, apply my changes by removing certain hyphens, run PTXPrint again, and attempt to "Print" aka "Make PDF". Does this sound reasonable, or will I destroy the PTXPrint-project that way? If the latter, is there a better way to tune the hyphenation?

Note: I do not need help with the regex, thank you. The question here is only about the inner workings of PTXPrint.


TL/DR:
We consider the PT-project as the "source" for many possible publications, as demonstrated nicely on the PTXPrint online sample gallery. So inside Paratext we carefully manually maintain the hyphenation master-list, where we mark all legal options, even the not-very-pretty ones.

For the present publication we have a certain adult-readers target audience and we have a layout, page-size, font-size, which gives us "a little more freedom" and flexibility. So we can filter-out some of the allowed but not-ideal hyphenation-options. For example, I want to remove all options, which would leave only one character like a "orphan" on the end of a printed line and similar for trailing lonely characters.

PTXprint by (934 points) | 23 views
A comment to give a quick update: As a deadline is getting close, I just went ahead and gave it a try, as described above.

I did not get any error-message or crash and I can see that the ugly one-letter-orphans at line-ends are gone. If there are negative side-effects, I have not found them yet.

Of course there is a penalty: I have to walk through the publication again, and re-tune the "Adjustments". But I knew that would happen, if I changed the hyphenation options. So far it is worth it, pages are looking better.

1 Answer

+1 vote
You can certainly do what you want to do safely. You probably will keep a backup of the file before you start messing. The worst that can happen is that you mess up your hyphenation and you can always disable using the file from within ptxprint.

In general, ptxprint is very data driven from the files in the configuration area, if you edit those files in some other way such that ptxprint is happy with the result, then that is a perfectly good way to make ptxprint do what you want it to do.
by (656 points)

Related questions

+1 vote
1 answer 205 views
The Interlinearizer automatically breaks words with hyphens in them and I cannot figure out how to join the hyphenated ... New Guinea [Email Removed].pgmailto:[Email Removed].pg
SIL LSS PNG 411 asked Oct 31, 2017
0 votes
1 answer 123 views
Mailto: <ptxprint_support@<your.org's.address>> Traceback (most recent call last): File "ptxprint\gtkview.py", line 1565 ... name 'accumulate' is not defined PTXprint Version 2.5.5
mdjojoseparto 102 asked Aug 5, 2024
0 votes
1 answer 24 views
We have traditionally NOT allowed lines to break in-word hyphens. But for this Jonah book we want to experiment with ... code snippet be tweaked for a narrower scope or something?
KimB 670 asked May 30
+1 vote
4 answers 549 views
Removing words from hyphenatedWords.txt that no longer exist in the project I am trying to prepare the hyphenatedWords. ... the Wordlist database and hopefully make it run faster.
Kent Spielmann 1.8k asked Jul 22, 2020
0 votes
0 answers 155 views
If data in your project uses a mix of composed and decomposed characters (likely due to using different keyboard ... and click OK. See also: Introduction to project conversion
[Expert]
anon421222
735
asked Feb 23, 2017
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,044 questions
6,003 answers
5,671 comments
2,026 users