Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Make text before en-space bold

Return to Member Forum

  • Author
    Posts
    • #91201
      M Lopusny
      Member

      Hello,

      maybe I am stupid, but I wasn’t able to find help regarding this. I do not use (or know too much) the GREP feature in InDesign, but now I really need it.
      I found this post – ( https://creativepro.com/topic/make-everything-bold-before-and-included-a-colon-using-grep ), but it did not help me, or I maybe I just don’ know how to apply it.
      Can somebody help me, I am making a multilingual dictionary (5 languages – 5 columns) and need to format the words (phrases) BOLD. I just do not know how to do it (apart from using the character style keyboard shortcut, but that would be a horror to go through it manually).
      Please, can you guys, help.
      Many thanks in advance.

    • #91205

      Hi
      Your post is titled “Make text before en-space bold”, so I guess that your sentence begins with the word that needs to be bold, followed by an en-space and the explanation. In that case:
      1 Make a text style BOLD, as you would
      2 You need to find ANY LETTER followed by en-space. So go to the GREP-function in your style, and search for [|\u]+~>. Activate the text style.

      Explanation: [|\u] means any letter. Adding the + means 1 or more letters. And end with the symbol for en-space ~>.
      It will apply the text style on every letter ànd the en-space, and wil stop when a regular space is found.

      Also a tip: use a text style that consists only of a magenta coloring (or an other colour that stands out) to try out your grep style. Sometimes there are unexpected effects, which you might not see otherwise.

      Good luck.

    • #91402
      M Lopusny
      Member

      I apologize, for some reason my posts are not recorded.
      Just trying again if it works and to let you know I did not ignore your post and found help.
      m.

    • #91212
      M Lopusny
      Member

      Robin,

      thank you for your promt reply.

      The: [|\u]+~> you posted for some reason does not work on my PC (Win8 + InDesign CS6). It only selects single word before the en-space, despite the + you are mentioning should find also multi-words expressions.

      However, in the post ( https://creativepro.com/topic/make-everything-bold-before-and-included-a-colon-using-grep ) I found help at the end of the conversation.

      The: ^.+?(?=~>) worked right selecting all words before en-space.

      Thank you very much for your effort. Have a nice day.

      m.

    • #91404
      David Blatner
      Keymaster

      Sorry about the forum post not showing up… it got “stuck.” Visible now.

Viewing 4 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads