🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6694

Re: How2 wrap 8 text-lines in *.ps?

#6694
From: RedGrittyBrick
Date: Sun, 19 Feb 2012 13:46
41 lines
3307 bytes
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
Technical Details
Message-ID: <TfmdnTQTi4rQYN3SnZ2dnUVZ8iCdnZ2d@bt.com>
Path: arc1-ca.pugleaf.net!t13ni45968bkb.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!217.73.144.44.MISMATCH!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
References: <j5ifr2$m3c$2@dont-email.me>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,50f6ec7dd07cdf25
X-Google-NewGroupId: yes
X-Google-Attributes: gidf3b2fcbfdb,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.205.134.6 with SMTP id ia6mr411796bkc.0.1329659214154;
        Sun, 19 Feb 2012 05:46:54 -0800 (PST)
Path: arc1-ca.pugleaf.net!t13ni45968bkb.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!217.73.144.44.MISMATCH!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 <RedGrittyBrick@SpamWeary.invalid>
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: <j5ifr2$m3c$2@dont-email.me>
In-Reply-To: <j5ifr2$m3c$2@dont-email.me>
Message-ID: <TfmdnTQTi4rQYN3SnZ2dnUVZ8iCdnZ2d@bt.com>
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
X-Received-Bytes: 2878
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit