Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 19 Feb 2012 07:46:53 -0600 Date: Sun, 19 Feb 2012 13:46:50 +0000 From: RedGrittyBrick User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.postscript,adobe.postscript.programming Subject: Re: How2 wrap 8 text-lines in *.ps? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 41 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-TChu+/MNY3bY8YyESh2eq+/9sVAFzF8ai4djjLr2tChvO78ksK9uWMGTg1CAtfXmOHdd26kvRx5LdW8!NIO1vsLPWA5zD7eXDn9NbNa+8yxZzbDiorpHwwymvqaiT8RoranUw7wZv1U6rDtVZzvZvlUu2zA= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2679 Xref: x330-a1.tempe.blueboxinc.net comp.lang.postscript:616 On 23/09/2011 14:11, NoHtmlMailsPlease wrote: > My final aim is to have adobe's pdf to speech not > make unnatural breaks, because of page-breaks which > don't correspond to paragraph-breaks; > which is what I get when I use openOffice for text to pdf. There is almost certainly no existing program that creates PDF files suitably optimised for a specific PDF-to-speech application. > The "hello world" ps-tut Perhaps you mean http://en.wikipedia.org/wiki/PostScript#.22Hello_world.22 or something very like it. > doesn't deal with stepping the > y-coordinates down to the next line. > > How should I do this, without getting married to ANOTHER > programming language? You can't do this in Postscript without learning the Postscript programming language to an elementary level of competence. You could try http://terpconnect.umd.edu/~zben/PostScript/asciiprint.html but I've no idea whether it produces PS from which GS can produce PDF from which your PDF-to-speech application can produce intelligible speech. If your goal is to convert some existing text to something that is very well suited to a text-to-speech application, I believe it would be best to avoid PS or PDF as initial or intermediate formats. I would evaluate using either plain-text or one of the more common book-reader formats (e.g. mobi). I believe some models of Kindle can read books aloud, perhaps their PC "kindle" software also can. -- RGB