🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18354

Re: AS Set crieria for new line......

#18354
From: Dave Saunders
Date: Wed, 02 Apr 2003 12:45
11 lines
1825 bytes
Roy,

Got it. That requirement does keep coming up. I could see two ways of working around it in InDesign:

1. Essentially the method you described above: check the length of each line (by checking for the horiztonal offset of character -1 of line n of the paragraph) and if the line is too long (and is not the last one), then loop to check for spaces starting at the end of the line and working backwards until you find one that is below the length threshold: replace that one with the forced new line and then move on to the next line -- note that the number of lines might change during all this. When you get to the last line, you're finished (I think you can use a Flush Right Tab in the last line to get the estimated value over to the right column, or you can set a right tab.

2. Or, you could split the material into two paragraphs with the last line a separate paragraph.

Both methods have potential problems, but on the whole, I think 2 is easier to implement, and requires less recovery work in the event of an edit of the description.

Dave
Technical Details
Message-ID: <1de88de4.3@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de88de4.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8281d9502f387775
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-02 05:28:02 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: AS Set crieria for new line......
Message-ID: <1de88de4.3@WebX.la2eafNXanI>
Date: Wed, 2 Apr 2003 04:45:35 -0800
References: <1de88de4.-1@WebX.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit