Copy link to clipboard
Copied
Ugh, how silly. I missed that when I tried it. You'll have to use the first method (in the GREP tab) :
Find what: $
Change to:<Your character>
When you run that query again later, you'll end up with two (or more) of the characters at the end of the paragraph, which you can fix with the following query (assuming your character is x) :
Find what: x\Kx+
Change to: <Leave empty>
Copy link to clipboard
Copied
Just to clarify, I've seen this similar discussion
The solutions given there use para styles, which I can't use given that I need the glyphs placed in the same line as the rest of the text.
Copy link to clipboard
Copied
Look at my comments in that discussion. Just skip the soft return and the character will stay on the same line.
Copy link to clipboard
Copied
The solutions in the other discussion assume that the character is already present. That's not the case here (and wasn't in the other discussion either). You can't insert a character using a nested (grep) style.
Copy link to clipboard
Copied
You can't insert characters with a nested style or a grep style, you'll have to insert it using the Find/Change window. It's easy enough:
Find what: $
Change to: <Your character>
By looking for the end-of-paragraph marker ($) you are in fact looking for the paragraph's last insertion point, so the query inserts your character into that insertion point, i.e. at the end of the paragraph.
(Edit)
Better to use this (replace 'x' with your character):
Find what: [^x]$
Change to: x
so that you can run the query again after any paragraphs were added.
Copy link to clipboard
Copied
Hey Peter,
Thanks for your reply, big fan of your scripts here. The first part of solution worked with some notation changes (for some reason my default end-of-paragraph marker is ^p... or maybe that's what you intended with the $? I'm an ignorant of this).
The second part didn't work (see image). I guess I can always duplicate it and then "clean up" duplicate character after every insertion with the same find/change (find duplicates and change for single characters), but it is not as practical.
An I doing something wrong?
Copy link to clipboard
Copied
Sorry, forgot to mention that you need to do this in the GREP tab.
Copy link to clipboard
Copied
Hey Peter. It's working but when I change it the new character replaces the period at the end of the sentence (see image). Is there a way to exclude that from the find? In my example, I can add a period in the "Change to" field, but that will be aproblem when paragraphs end with different punctuation marks.
Is tehre a way around this?
Copy link to clipboard
Copied
Ugh, how silly. I missed that when I tried it. You'll have to use the first method (in the GREP tab) :
Find what: $
Change to:<Your character>
When you run that query again later, you'll end up with two (or more) of the characters at the end of the paragraph, which you can fix with the following query (assuming your character is x) :
Find what: x\Kx+
Change to: <Leave empty>
Copy link to clipboard
Copied
That works. Thanks!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more