Skip to main content

Search

Search

Hyphens doesn't word wrap nicely like spaces.

Comments

4 comments

  • Avatar
    Peter Thane

    Not exactly sure what you are trying to achieve as the Search - and Replace with <SPACE> seems to work alright with my copy. Have you tried the Search - and Replace with Control Code (arrow to the right of the entry box) HT / Horizontal Tab as an alternative?

    0
  • Avatar
    Yijun Lin

    Thanks for your reply.

    I'd like to display hyphens there instead of spaces. If I do use hyphens the font becomes really small and doesn't line feed automatically like spaces. In most typewriter software like Microsoft word; hyphens always provide an opportunity for automatic line feed. When I googled this problem, I get many results where people do not want to line feed at hyphens and their solution was to use a non-break hyphen. But what I want to achieve here is the direct opposite, the hyphens that I used in this software refuses to line feed automatically.

    0
  • Avatar
    Peter Thane

    Have you tried adjusting the Replace to add both the Line Feed or Carriage Return (from the Control Code option as above) and then add back the hyphen too, placing whichever one you want first ?

    0
  • Avatar
    Ian Cummings
    Moderator

    You could also use a non-breaking space or non-breaking hyphen instead of the regular ones.  Use the insert symbol or special character dialog to insert the Unicode character by searching for its Unicode number.  This is 00A0 for the NBSP and 2012 for the NBHY.  Of course the text object in use will need to be using a Unicode font.  Give it a whirl!

    0

Please sign in to leave a comment.