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

Find Hyphenation words in cs6

Contributor ,
Jan 03, 2013 Jan 03, 2013

Copy link to clipboard

Copied

Hi.

  I need to find the hyphenation word with line number at the end of the line,as in the below image.

Hyphenation.jpg

For these 4 occurence, I used   Em dash/En dash/Hyphen/Hyphen for hyphenation.  If anyone knows help me.

TOPICS
Scripting

Views

1.3K

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
Explorer ,
Jan 08, 2013 Jan 08, 2013

Copy link to clipboard

Copied

hello,

try this...

for(var cnt=0; cnt<parentTextFrame.lines.length; cnt++){

     var lstWord = parentTextFrame.lines[cnt].words[-1];

     if(lstWord.lines.length>1)

          alert("Line no: " + (cnt+1) + "  Hyphenated word: "+ lstWord.contents);

}

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
Contributor ,
Jan 11, 2013 Jan 11, 2013

Copy link to clipboard

Copied

Hi Deepak,

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
Contributor ,
Dec 01, 2014 Dec 01, 2014

Copy link to clipboard

Copied

LATEST

Hi,

  If a word contains more than 1 line, it is hyphenated. But, for the below occurrences is not hyphenated but its also reporting as hyphenated when using the line concept.

Screen shot 2014-12-02 at 11.17.18 AM.png

Screen shot 2014-12-02 at 11.17.04 AM.png

1. if url contains more than 1 line

2. word contains dot (.) . if it contains more than 1 line

But actually its not hyphenated

Can anyone help me.

- Sudha K

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