Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Mar 2002
    Location
    Sacramento, California, USA
    Posts
    509
    Thanks
    4
    Thanked 1 Time in 1 Post

    How to define a discretionary break (without hyphen) in Word

    A discretionary break means, "it's OK to insert a line break at this point, but if you do, do not display a hyphen." It's useful in long file names and path names, where the hyphen would create ambiguity: is it actually part of the name or not?

    Unfortunately Word does not have a "discretionary break" character.

    I just figured out a way to get almost the same result: use a discretionary hyphen and set its color to match the background color. If Word uses the line break it displays the hyphen, but since it matches the background color, it is invisible.

    This is equivalent to a true discretionary break except in two cases. First, if the text is justified, the invisible hyphen results in a short line. Second, if there is no room for a hyphen after the break point, a true discretionary break would create a break anyway, but an invisible hyphen won't.

    BTW, I tried making the hyphen hidden before I changed its color, but that didn't work (Word did not break at all).

  2. #2
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Willow Grove, Pennsylvania, USA
    Posts
    205
    Thanks
    4
    Thanked 49 Times in 40 Posts
    Use a "no-width optional break" character, either from the Insert > Symbol > More Symbols > Special Characters dialog or by inserting Unicode 200C. This solves your problems, although it also makes the spell checker complain.

    Thanks to Peter Jamieson, who wrote about this in http://www.pcreview.co.uk/forums/no-...-t3990903.html.

  3. #3
    3 Star Lounger
    Join Date
    Mar 2010
    Location
    USA
    Posts
    301
    Thanks
    65
    Thanked 39 Times in 30 Posts
    Tricky stuff and 'cunning' solutions! Appreciate it.
    Thanks to two j's.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •