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?

Harbs.
Legend
May 26, 2009

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

    myParStyles.hyphenation = false;

}