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.
For these 4 occurence, I used Em dash/En dash/Hyphen/Hyphen for hyphenation. If anyone knows help me.
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);
}
Copy link to clipboard
Copied
Hi Deepak,
Thank you..
Copy link to clipboard
Copied
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.
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