Skip to main content
Participant
May 26, 2009
Answered

[JS] Turn ligatures off.

  • May 26, 2009
  • 2 replies
  • 5844 views

Hi,

Is there a javascript to turn Ligatures off of Paragraph styles? We have a bunch of files with the ligatures turned on that we need to update. I know you can update the paragraph styles, but I was wondering if there is some way to tell InDesign to turn the Ligatures of with out updating each style.

Thanks!

This topic has been closed for replies.
Correct answer Kasyan Servetsky

Here is a simple example which turns ligatures off in all paragraph styles that are not in groups:

var myDoc = app.activeDocument;
var myParStyles = myDoc.paragraphStyles;
for (i = 1; i < myParStyles.length; i++) {
    myParStyles.ligatures = false;
}

2 replies

Inspiring
September 12, 2017

This script doesn't appear to work in InDesign CC2017 on a Mac? Am I missing something?

Inspiring
September 12, 2017

Sorry .. It does work on Mac InDesign CC2017!

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
May 26, 2009

Here is a simple example which turns ligatures off in all paragraph styles that are not in groups:

var myDoc = app.activeDocument;
var myParStyles = myDoc.paragraphStyles;
for (i = 1; i < myParStyles.length; i++) {
    myParStyles.ligatures = false;
}

hmtyrantAuthor
Participant
May 26, 2009

Thank you so much! Will this same script work for removing hyphenation, I just need to change that line in the code?

Inspiring
September 12, 2017

Download the script from here.


Thanks Kasyan. I downloaded the script from your link and installed it on my Mac and it works.

To install on a Mac:

Download script to Desktop

Open InDesign

Go to Window > Utilities > Scripts

Right click the User Folder, choose Reveal in Finder.

Copy the Turn ligatures off.jsx file to this folder.

Return to InDesign

Turn ligatures off should appear in the User Folder list of scripts.

Select a text block with ligature characters.

Right click the Turn ligatures off script, choose Run Script

Wait a second .. it worked for me.