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

GREP question please

Return to Member Forum

  • Author
    Posts
    • #82073
      Ayman Sayed
      Member

      •i have a table and want to make a paragraph style
      •this table have a numbers and arabic letters
      •numbers from left to right and letters from right to left
      •in paragraph style, indents and spacing, paragraph direction: right to left
      numbers reflected
      2000 changed to 0002 how can i make grep function to select all numbers and reflect to left to right
      thanks

    • #83148
      Lukáš Záleský
      Participant

      https://s21.postimg.org/6notyz4s7/V_st_i_ek.jpg
      If you have less digit then 4, post snippet with nonprinting characters

      Lukas

    • #83156
      Ari Singer
      Member

      The solution is very simple! And I know because I have the same issues when typesetting Hebrew text. I’m not sure if this works in the regular version of InDesign or only in the Middle Eastern version, but I believe you have the ME version anyway.

      Create a character style with only one attribute applied: Go into the character style settings, then into the ‘Middle Eastern Character Format’ pane, and set up ‘Character Direction’ to ‘Left-to-Right’. Save the style, and name it anything you like such as ‘Left-to-Right’ etc.

      Then go into the settings of your paragraph style and create a new GREP style. In the ‘Apply Style’ pane select your ‘Right-to-Left’ character style that you just created, and the ‘To Text’ pane leave at the default of ‘\d+’ (which means: ‘any digit one or more times’).

      Save the paragraph style, and that’s it! The numbers should be fixed now without having to actually change the numbers which is definitely a bad idea!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads