2 Replies Latest reply on Jan 19, 2015 11:32 PM by selvam214

    Grep - Discretionary hyphen and discretionary line break

    selvam214 Level 1


      Trying to inset the discretionary hyphen in before the "m-dash word" and discretionary line break after the m-dash. If applied type styles with-in this text (bold & italic), before the first character of m-dash is changed in roman. Can you please look into the below screen-shots and guide to me, how to avoid this.





      Screen shot 2015-01-20 at 12.08.10 PM.png




      Screen shot 2015-01-20 at 12.08.30 PM.png




      app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;

      app.findChangeGrepOptions.includeFootnotes = true;

      app.findChangeGrepOptions.includeHiddenLayers = false;

      app.findChangeGrepOptions.includeLockedLayersForFind = false;

      app.findChangeGrepOptions.includeLockedStoriesForFind = false;

      app.findChangeGrepOptions.includeMasterPages = false;               

      app.findGrepPreferences.findWhat = "([\\l\\u]+)~_";

      app.changeGrepPreferences.changeTo = "~-$0~k~-";