Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Please correct my Hyphenation setting script

$
0
0

Hi,

 

  1. I want to set hyphenation=false for all the heading levels, That heading level details are saved in .txt file format. For instance 'Heading detail.txt' has heading level paragraph style names: H1, H2, BT, CT, CN.
  2. Otherwise if hyphenation=true in normal paragraph styles (like TX, EXT) I have to change the hyphenation setting. This one I have completed as like below script

 

 

app.activeDocument.paragraphStyles.everyItem().properties={

    hyphenateWordsLongerThan:6,

    hyphenateAfterFirst:3,

    hyphenateBeforeLast:3,

    hyphenateLadderLimit:2,

    hyphenationZone:"1p",

    hyphenateCapitalizedWords:true,

    hyphenateLastWord:false,

    hyphenateAcrossColumns:false,

    }

if(myPara[i].hyphenation=false)

 

I want to implement the 1st point detail in my script, so please correct my script.

 

Thanks


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>