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

Help for my GREP Style

New Here ,
Dec 30, 2016 Dec 30, 2016

Copy link to clipboard

Copied

Hi

I need som help for my GREP style.

What is the GREP code if I want less space between A and 1 (see example picture). Do I make a character style with tracking and what code do I have to write?

If it is A and W with no space in between I use A(?=W) but in the example below there is a space in between.

Kind regards

Jesper

Screen Shot 2016-12-30 at 11.19.34.png

Views

747

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

correct answers 1 Correct answer

Advocate , Dec 30, 2016 Dec 30, 2016

Just to be save (but less flexible):

Bildschirmfoto 2016-12-30 um 12.11.24.png

Votes

Translate

Translate
Advocate ,
Dec 30, 2016 Dec 30, 2016

Copy link to clipboard

Copied

This should work:

Bildschirmfoto 2016-12-30 um 11.35.06.png

Bildschirmfoto 2016-12-30 um 11.35.03.png

Maybe
(?<=[\l\u])\s(?=\d)

is not as slick, but i dont know what exactly you want to exclude, so I made…

Look for \s (All Spaces)
while infront is (?<=…) has to be [\l\u] (any character)

and while after is (?=…) a digit \d

You could change the stuff what has to be infront/after

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
New Here ,
Dec 30, 2016 Dec 30, 2016

Copy link to clipboard

Copied

It only has to happen when "KORMA *space* 1000" occurs

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
Advocate ,
Dec 30, 2016 Dec 30, 2016

Copy link to clipboard

Copied

Just to be save (but less flexible):

Bildschirmfoto 2016-12-30 um 12.11.24.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
New Here ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

Hi DBLjan

I don't know it this one is too complex to do as a greph style in my paragraph style:

Do you know how to do this (see example screenshot)?. I need the . and the - to more close to the 2

Screen Shot 2017-01-26 at 10.56.08.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
Advocate ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

Piece of cake 🙂

You just need a character-style with negative spacing. And a paragraph-style for your paragraphs containing the prices.

The GREP is

.(?=-)

which means

Look for the point, with postive lookahead (?= ) aka a following "-"

Be careful, we didnt exclude anything, so if you have a text like "Hello World.-Btw: This." .- will also be spaced negativly.

Also if your price-range is also 9.95 or 12.50 youll have to add more stuff.

Bildschirmfoto 2017-01-26 um 11.13.19.png

Bildschirmfoto 2017-01-26 um 11.12.48.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
New Here ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

Hi DBLjan!

Yes thanks 🙂

But my problem is that i need a Baseline Shift on the -

I have made it 8pt in this case (see screenshot)

Screen Shot 2017-01-26 at 11.33.22.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
Advocate ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

Heres what you need to do:

Create a new character-style with just the base-line shift.

Now add a GREP to your paragraph-style (which can hold various GREPs) to…

Look for a "-", with a "." infront of it:

(?<=.)-

Bildschirmfoto 2017-01-26 um 12.10.49.png

Bildschirmfoto 2017-01-26 um 12.10.42.png

Bildschirmfoto 2017-01-26 um 12.11.06.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
Advocate ,
Jan 27, 2017 Jan 27, 2017

Copy link to clipboard

Copied

Any luck?

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
New Here ,
Feb 09, 2017 Feb 09, 2017

Copy link to clipboard

Copied

LATEST

Hi DBLjan

Yes!

I figured it out now. Thank you very much!

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