• 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

821

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
Guide ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Finally, just Grep Styles:

 

Capture d’écran 2023-09-14 à 15.13.40.png

 

(^/)  The Jedi

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

quote

By @FRIdNGE

 

Care to share the 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
Community Expert ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Did you try @jmlevy's 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
Community Expert ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

Instead of changing the point size of the % change the horizontal and vertical scaling. This will keep the point size the same as far as InDesign is concerned. Untested.

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: size, h/v percentage and sub-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 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

I found a solution, but it's not my favorite: replacing the font of the % character with GREP. There are fonts whose % is smaller than the size of the numbers, so, the font size is the same but the % is smaller.

Captura de pantalla 2023-09-14 a las 22.37.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
Contributor ,
Sep 14, 2023 Sep 14, 2023

Copy link to clipboard

Copied

I am interest to see FRIdNGE's 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
Guide ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

… After having created a good template (with 1 and 2 digits), if the size bothers you, select the text frame and with the black arrow tool, select a corner and increase/decrease the text frame size (+ Shift-cmd on Mac OSX).

Then, create the corresponding char styles/grep styles (+ maybe some fine adjustments).

Here, I've used "Minion Pro-Regular.

 

Capture d’écran 2023-09-15 à 10.23.52.png

 

Now I just select all the text frames and apply the "PRICE_SMALL _FRIdNGE" right para style.

 

Capture d’écran 2023-09-15 à 10.24.15.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 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Will it work in Table Cell? 

 

Because that's where OP needs to use 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
Guide ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

It's a para style with 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
Community Expert ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

I know - but one of your examples have circle going way out of the TF - will it work inside the Cell - or create overset? 

 

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
Guide ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Capture d’écran 2023-09-15 à 13.43.54.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 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Ok, but what about the 2nd version on the right? The one with % going way above the price? 

 

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
Guide ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

The screenshot just shows the result of a size change of the "percent bullet" (in orange color) [see previous explanations].

 

If the user is not satisfied by its first size, before defining char/grep styles, (s)he can quickly adjust it (some seconds).

 

Capture d’écran 2023-09-15 à 14.18.33.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 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Sorry, I'm away from my laptop so can't check myself. 

 

I'm asking about this:

 

Screenshot_2023-09-15-13-38-02-831-edit_com.android.chrome.jpg

How this will behave in the Cell? 

 

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
Guide ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

LATEST

… As specified in the cell formatting:

 

Capture d’écran 2023-09-15 à 14.50.34.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