Skip to main content
Known Participant
November 11, 2022
Question

Auto-prevention of split hyphenated words between pages

  • November 11, 2022
  • 3 replies
  • 471 views

Is there some option within Framemaker that will prevent words from hyphenating between pages?  I realize there is an option within the Paragraph Designer > Advanced page that turns hypenation on/off, but I need hyphenation ON but I don't want words to be hyphenated between two adjacent pages. IOW, this is what I do not want:

 

Jack and Jill went up the hill to fetch a pail of wa-

----------------- new page ---------------

ter. Jack fell down and broke his crown and Jill came tum-

bling after.

 

I want "tumbling" hypenated, but I do not want "water" hypenated.

 

I understand I can manually apply a ESC n s  sequence to prevent "water" from hyphenating, but I was looking for an automated solution to keep words from splitting across pages, rather than manually searching for such instances.  When you are working on a large book, you don't want to have to manually examine the bottom of every page every time you insert new text.

This topic has been closed for replies.

3 replies

Bob_Niland
Community Expert
Community Expert
November 12, 2022

I routinely have hyphenation turned off, but I'm astonished that FM would break a word across a page boundary. If it does that, it would probably also break across column boundaries (and multi-column might be the main case for using hyphenation).

Does making adjustments to ¶ Widows & Orphans help at all with this artifact?

Barb Binder
Community Expert
Community Expert
November 12, 2022

Hi @Sam State:

 

This is not a feature of FrameMaker, and I'm 99% sure regular expressions can't isolate automatic hyphens. I think Lin's right that scripting could be the only possible way to automate this. (Not my area either.) I'll add the scripting tag to your post to see if anyone with those skills chimes in.

 

~Barb

~Barb at Rocky Mountain Training
Community Expert
November 12, 2022

Hi,

 

You cannot search for automatic hyphens with Find, neither with regular expressions nor without.

A few years ago I wrote a FrameScript script to write all hyphenated words into a text file to check the hyphenation. Not complex. I am not as experienced as others here. For your issue I would just compare the page number of the start of the word and the end of the word. 

 

Best regards

 

Winfried

K.Daube
Community Expert
Community Expert
November 12, 2022

«You cannot search for automatic hyphens with Find, neither with regular expressions nor without.»

Wait until next week - then I will publish FMfindRepl v1.00 - which can search for the automatic hyphens. But it can not combine this search with "is it the last character on the page" - this would definitely require an own script...

See https://www.daube.ch/docu/files/FMfindRepl.pdf#page29

Edit 2022-11-14

You do not need to wait: the standard Find/Change dialogue provides the capability to search for "Automatic Hyphen"

LinSims
Community Expert
Community Expert
November 11, 2022

I don't think there's any way to easily do that.

 

You might be able to build a regular expression to search for that finds all system-inserted hyphens, or at least all the hyphens. When you find one that is the last character on the page, select the hyphen and press Esc n s. That's a fairly manual way of doing it, though it'd be faster than scanning the bottom of each page. It's probably too close to what you don't want to do, though.

 

Or you could check with the scripters here and see if it's possible to locate a system-inserted hyphen as the last character on a page and then apply the suppress hyphenation to that one hyphen.

 

I don't know enough about the scripting to know if there's a way to detect the bottom of the page, though, or if there's a difference between a hyphen you've inserted versus one that the system decides you need. I'd think there ought to be since if pagination changes enough to move the hyphenated word away from being too far right to be kept on one line, you'd want the hyphen removed.