Skip to main content
Rsfl
Inspiring
December 9, 2015
Answered

Turn off hyphenation for a single paragraph

  • December 9, 2015
  • 2 replies
  • 5515 views

This seems so simple yet I cannot get it to work.

I click into the paragraph, then in the paragraph settings I deselect the "Hyphenate" check box and click "Apply". But nothing happens, the text is still hyphenated. I also tried the spelling feature to re-hyphenate the entire document (no idea how this is called in the English UI) but this does not help either.

This is a command line and has to be displayed without hyphenation. If I insert a forced line break (shift+return) then it looks fine but cannot be copied from the PDF in one piece because of the line feed.

    This topic has been closed for replies.
    Correct answer Mike-Hardy

    By default, FrameMaker allows a linebreak if a hyphen falls at the end of a line. To prevent this, do one of the following:

    • Disallow line breaks after a hyphen:
      1. Choose Format > Document > Text Options
      2. Remove the hyphen from Allow Line Breaks After
      3. Click Apply

    This applies to the entire document. You might want to make this setting for all files in your book.

    • Change the hyphen to a non-breaking hyphen (Esc hyphen h).

    Note that if your users copy and paste the code or command, it will not work correctly.

    2 replies

    Inspiring
    December 9, 2015

    You actually have to click twice. The first time you click, the check

    mark disappears, but it is replaced by a shaded box. This is the setting

    for "as is." Clicking again, clears the shading to leave and empty box,

    turning off the feature. Then click apply.

    Rsfl
    RsflAuthor
    Inspiring
    December 10, 2015

    No luck yet, here is a screenshot to show the problem (this is actually a paragraph in a table cell, in case it matters). The command line contains attributes preceded by "-" which evidently provokes a hyphenation even if it is turned off in the paragraph settings.

    Bob, how was that other solution meant, I type escape and then sequentially the letters "n" and "s"? That has not worked out and inserts the last letter "s" as text.

    P.S. I have also tried setting the language setting to "None" for the paragraph. But no luck either, when the text contains a dash ("-") FrameMaker automatically hyphenates.

    Mike-HardyCorrect answer
    Participating Frequently
    December 10, 2015

    By default, FrameMaker allows a linebreak if a hyphen falls at the end of a line. To prevent this, do one of the following:

    • Disallow line breaks after a hyphen:
      1. Choose Format > Document > Text Options
      2. Remove the hyphen from Allow Line Breaks After
      3. Click Apply

    This applies to the entire document. You might want to make this setting for all files in your book.

    • Change the hyphen to a non-breaking hyphen (Esc hyphen h).

    Note that if your users copy and paste the code or command, it will not work correctly.

    Bob_Niland
    Community Expert
    December 9, 2015

    You can suppress hyphenation of a single word by putting the cursor at the start of the word and typing:
    ␛ns
    (␛ is the Escape key).

    I'd be tempted to create or spin-off a paragraph tag that has hyphenation disabled (and I'd expect it to work - no insight on why your override is failing).