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

forume grep

New Here ,
Jun 03, 2024 Jun 03, 2024

Copy link to clipboard

Copied

Bonjour à tous

je ne me souviens pas de la formule Grep pour empêcher qu'un mot de 1 à 3 lettres par exemple soit en bout de ligne (comme à, de, une...)

Merciiiiii par avance et bonne soriée

TOPICS
Performance

Views

283

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 ,
Jun 03, 2024 Jun 03, 2024

Copy link to clipboard

Copied

This simple GREP is for end of paragraphs to prevent short last lines:

 

Find what: 

.{16}$

Change to:

Apply character style NoBreak

Mike Witherell

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 ,
Jun 04, 2024 Jun 04, 2024

Copy link to clipboard

Copied

thank you

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 ,
Jun 04, 2024 Jun 04, 2024

Copy link to clipboard

Copied

Not so sure! …

 

Capture d’écran 2024-06-04 à 14.30.46.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 ,
Jun 04, 2024 Jun 04, 2024

Copy link to clipboard

Copied

End of a *line*? oof da! I don't know that one, and my deeper question is ... why?

Mike Witherell

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 ,
Jun 04, 2024 Jun 04, 2024

Copy link to clipboard

Copied

@Mike Witherell @In French, most of words with 1, 2 and 3 letters are either articles and prepositions and it is better to avoid to end lines with these words.

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 ,
Jun 04, 2024 Jun 04, 2024

Copy link to clipboard

Copied

This is the custom in French typesetting? Not English?

Mike Witherell

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 ,
Jun 04, 2024 Jun 04, 2024

Copy link to clipboard

Copied

This is the custom in French typesetting? 

For purists, 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 ,
Jun 04, 2024 Jun 04, 2024

Copy link to clipboard

Copied

LATEST

I did not know that!

Interestingly, I found these examples in other InDesign posts:

\b.{1,3}\b\K\s

as the Jedi posted, or maybe...

\b(a|an|the)\b\K\s

... and of course you would put in a string of common French tiny words instead of a|an|the.

The Change is applying the NoBreak Character Style in all these cases.

Mike Witherell

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