Copy link to clipboard
Copied
Hi friends
Can we check punctuation marks in every end of the line in Indesign document.
Copy link to clipboard
Copied
Check in what way?
- "Line" as in end of line or end of paragraph?
- Check whether there is a punctuation mark or whether there isn't?
- Check for which kind of punctuation?
- Just one punctuation mark or more?
- In which version of InDesign?
- Which platform?
- Which script language?
There's a start!
Peter
Copy link to clipboard
Copied
1. Start & End of the Line in every paragraph. Not end of the paragraph.
2. All the punctuation marks we have to check, and it dont want to appear more than 2 times in end of the line in a paragraph.
3. If its appered more than 2 times in the paragraph ie start or end of the line we have to identify tat paragraph.
4. I need to find this Punctuation marks in Indesign file using InDesign Scripting [Indesign CS4]
Copy link to clipboard
Copied
myPara.lines.everyItem().contents
This will give you an array of the contents of each line. You can loop through that and figure out what you'd like...
Harbs
Copy link to clipboard
Copied
Hi All,
I am also expecting the answer for this discussion. How can we compare the punctuation elements with the content. I have tried with below command but couldn't get the result. If any solution to compare the content with puntuations globally, it will be really helpful for us.
if (ln.contents.substring(ln.contents.length - 1, ln.contents.length - 2) == "[[:punct:]]")
regards
Masthan
Copy link to clipboard
Copied
Why not? Here I brought a useful punctuation checker. I hope this one will helpful for you.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more