• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
7

GREP underline effect in different text sizes

Explorer ,
Sep 13, 2023 Sep 13, 2023

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:

 

 

Captura de pantalla 2023-09-13 a las 15.59.30.png

 

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:

 

Captura de pantalla 2023-09-13 a las 16.04.27.png

 

Any solution?

 

 

TOPICS
Scripting , Type

Views

831

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2023 Sep 13, 2023

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.Capture d’écran 2023-09-13 à 16.36.10.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

What if you do % as sub / super script? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

It doesn't work, it seems that every way to make the % smaller breaks the underlying

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

Your 2nd screenshot looks like % is completely losing applied CharStyle? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 13, 2023 Sep 13, 2023

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

What I meant - it looks like CharStyle is only applied to "-25"?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

Yes

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

Then how can you expect it to "cover" % sign? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

@Robert at ID-Tasker It works very well, using the way I suggest it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

quote

@Robert at ID-Tasker It works very well, using the way I suggest it.


By @jmlevy

 

I wasn't questioning your solution. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 13, 2023 Sep 13, 2023

Copy link to clipboard

Copied

The style is applied to 

\s\-\d\d\%\s

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 14, 2023 Sep 14, 2023

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 %.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Already tried, it doesn't work, even changing the GREPS order

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Can you share your INDD document? Just one TF with an example of this text. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

I can't find how to edit the question to attach it there

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Just attach it to your next reply. 

 

Or edit your previous message - click on "..." after "Translate":

 

Screenshot_2023-09-11-00-31-39-709-edit_com.android.chrome.jpg

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

I have tried to manually apply the underline and baseline shift + font size change and I got this:

Screen Shot 2023-09-14 at 9.33.23 pm.png

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.

Screen Shot 2023-09-14 at 9.34.09 pm.png

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 14, 2023 Sep 14, 2023

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??

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 14, 2023 Sep 14, 2023

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 14, 2023 Sep 14, 2023

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 14, 2023 Sep 14, 2023

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. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 14, 2023 Sep 14, 2023

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines