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

Searching for ff-ligatures »connecting« two syllables ...

Engaged ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

Hi there!

Is it possible to search my InDesign text for all those ff-ligatures which are connecting two syllables of a given word?

Example:

an ff-ligature in »offensive« should be found, another one in »offspring« not

Thanks a lot!

Views

917

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

Mentor , Mar 08, 2017 Mar 08, 2017

Simple enough, if your syllables are easy to count. This will work for a, e, i, o, u in CS6 and all CC flavors:

[aeiou]\Kff(?=a|e|i|o|u)

If you expect to encounter any other character of a certain glyph set in your doc, you may need to use pattern [=a=] instead of a plain a, and so on.

Votes

Translate

Translate
Mentor ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

Simple enough, if your syllables are easy to count. This will work for a, e, i, o, u in CS6 and all CC flavors:

[aeiou]\Kff(?=a|e|i|o|u)

If you expect to encounter any other character of a certain glyph set in your doc, you may need to use pattern [=a=] instead of a plain a, and so on.

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
Engaged ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

This is a GREP string, right? Works like a dream, though I have no idea why

Thanks a  big big lot!

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
Participant ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

winterm,

very nice your grep.

i had a similar problem and made a list of words with a different method (eliminating those without ff) but was bizarre.

I used your grep but it marked just the ligature.

How can I adapt it to search for all those words with any ligature?

thanks

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
Mentor ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

As you know, ligatures depend entirely on the font you’re using.  AFAIK, GREP knows nothing about it, so you can't search for 'ligatures' as such, just for certain combinations: ff, fi, ffi, ffl, fl, fj, whatever else.

Here’s the one which finds words containing ff:

\w*ff\w*

and a bit more inclusive version (allows dashes, apostrophes...):

\S*ff\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
Participant ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

Barb,

Thanks. It is clean, short and straight.

Best regards.

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
Engaged ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

Looks like I simply have to learn to use that GREP thing. Any recommendation for starting that, book, website, mystic herbs?

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 ,
Mar 09, 2017 Mar 09, 2017

Copy link to clipboard

Copied

LATEST

i've been using Peter Kahrel's overview:

GREP in InDesign - O'Reilly Media

plus i've found Jongware's 'What the GREP' script very useful:

Indesign GREP Help

since as well as pointing out errors, it'll list what a grep is literally doing in 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