Copy link to clipboard
Copied
I have a price with a discount percentage made with a Grep Style applied to:
\s\-.+\%\s
The character style has an underline 27pt thick with a rounded stroke to mimic a sticker:
Now, I want to make the % symbol smaller, but when I reduce the character size by points, h/v scaling or sub-script, the underline effect disappears. When reducing the thickness, the underline shows again but only on the figure, leaving the % clear:
Any solution?
Copy link to clipboard
Copied
Instead of using a rule, I suggest you another way: insert a bullet at tte beginning before the minus sign and use a different point size, baseline shift and kerning to achieve this result.
Copy link to clipboard
Copied
What if you do % as sub / super script?
Copy link to clipboard
Copied
It doesn't work, it seems that every way to make the % smaller breaks the underlying
Copy link to clipboard
Copied
Your 2nd screenshot looks like % is completely losing applied CharStyle?
Copy link to clipboard
Copied
Only the underline, I changed the color in the screenshot so that it is visible, the character is originally white
Copy link to clipboard
Copied
What I meant - it looks like CharStyle is only applied to "-25"?
Copy link to clipboard
Copied
Yes
Copy link to clipboard
Copied
Then how can you expect it to "cover" % sign?
Copy link to clipboard
Copied
@Robert at ID-Tasker It works very well, using the way I suggest it.
Copy link to clipboard
Copied
@Robert at ID-Tasker It works very well, using the way I suggest it.
By @jmlevy
I wasn't questioning your solution.
Copy link to clipboard
Copied
The style is applied to
\s\-\d\d\%\s
Copy link to clipboard
Copied
Try using another GREP style in the same paragraph style to apply another character style to reduce the font size of the %.
Copy link to clipboard
Copied
Already tried, it doesn't work, even changing the GREPS order
Copy link to clipboard
Copied
Can you share your INDD document? Just one TF with an example of this text.
Copy link to clipboard
Copied
I can't find how to edit the question to attach it there
Copy link to clipboard
Copied
Just attach it to your next reply.
Or edit your previous message - click on "..." after "Translate":
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I have tried to manually apply the underline and baseline shift + font size change and I got this:
The underline get shifted up as well.
So if you reduced the underline weight in the % STICKER character style to quite small, the underline will appear again but shifted up.
In conclusion, with this method, either with GREP style or manually adjustment, once the font size or baseline shift value is changed it will break the underline.
I can't think of any other method for now.
Copy link to clipboard
Copied
No idea how big your original file is - but it must be pretty slow to work with - with so many GREP styles??
Copy link to clipboard
Copied
🤔 This one is not that big, but I use to work with a lot of styles + GREP. I don't perceive slowness for that reason.
Copy link to clipboard
Copied
Why don't you use my solution? In my exemple there are no styles but it's very easy to create GREP styles to automate the process.
Copy link to clipboard
Copied
The position of the circle to the start of the text frame varies, with different dollar amounts, so your suggested method doesn't work in this case.
Copy link to clipboard
Copied
The problem I have with this solution is that the prices are in a cell within a table. This cannot be modified, the rest of the cells contain product characteristics. The bullet's height & line height are so large that it does not allow the entire price to fit in the cell (height and width). I would have to create countless new conditions in the style to make it work, it's not worth it.
Copy link to clipboard
Copied