|
Hi Mark and others...
I raise again the wrap function...
Having played around with the translate function
(Carriage return; New line), text processing, wrap function, char width and page
width it is now possible to play tunes with the wrap
function...
However, the issue with the wrap function relates
to maintenance work on a number of SQR programs.
There is a need to locally change the operation of
the wrap function locally within the SPF file without affecting the rest of the
file.
In principle this could be done by defining two or
more layouts using different page widths and char widths.
When there is a need to change the format locally
then the different layout could be called.
This would allow the warp width and the number of
chars that are printed within the wrap width to be changed locally in the SPF
file.
This approach would allow a local change to be made
without changing the whole format of the SPF file significantly reducing
maintenance work..
The question is can the layout of an SPF file be
changed for different sections by specifying different layouts as is possible
with many text editors?
Many thanks.
Andrew
----- Original Message -----
From: Manning, Shinta <ShintaManning@FINANCIAL.WELLSFARGO.COM>
To: <SQR-USERS@list.iex.net>
Sent: Wednesday, October 11, 2000 1:33
PM
Subject: Re: wrap function & proportional
fonts > I had problem with the wrap function... and
didn't get it to work no matter
> what me and my collegue tried... so we ended up splitting the string and put > the other parts into other variables and print them separately... > > > -----Original Message-----
> > From: Andrew Rivers [SMTP:andrew.rivers@CWCOM.NET] > > Sent: Wednesday, October 11, 2000 1:40 AM > > To: SQR-USERS@list.iex.net > > Subject: Re: wrap function & proportional fonts > > > > Mark > > Did you manage a fix for your problem. > > > > I am aware that wrap inserts a second line if the wrap line goes one char > > position over the length of the page width. > > > > However, I seem to have a similar problem to you in that my text is > > wrapping at about half way across the page. > > > > I suspect that it is possible to set wrap to a different length to the > > page width. > > The program is not mine so there may be some set-up in about 15 nested > > include files! > > > > If you have a solution or any possible suggestions I should be mots > > grateful. > > > > I am writing this at home - If you could also send any reply to my email > > work account at work adrivers@wsatkins.co.uk > > <mailto:adrivers@wsatkins.co.uk> then that would be great... > > > > Many thanks. > > > > Andrew > > > > ----- Original Message ----- > > From: Mark Polette < markpolette@YAHOO.COM <mailto:markpolette@YAHOO.COM>> > > To: < SQR-USERS@list.iex.net <mailto:SQR-USERS@list.iex.net>> > > Sent: Wednesday, January 19, 2000 8:08 PM > > Subject: wrap function & proportional fonts > > > > > SQR 4.3, Infomix 3.2, HP-Unix. > > > > > > Has anyone seen the wrap function of SQR mishandle > > > text when it is printed in non-proportional fonts such > > > as Times New Roman? Specifically it tends to insert > > > unwanted blank lines when wrapping some text lines. > > > (like when the text takes it very near the end of the > > > wrap length???) > > > > > > The command I am using is: > > > > > > print $text (+3,15,0) wrap 71 15 on=<10> > > > > > > I want to print a paragraph in a block 71 long by 15 > > > lines. > > > > > > The output I get for a certain text block is: > > > > > > line1 line1 line1....line1 > > > line_2 line_2........line_2 > > > > > > line 3 line3.........line 3 > > > > > > line 4 line4 line4. > > > > > > > > > It handles the first wrapped line correctly. However > > > it inserts unwanted lines randomly. If I change the > > > text it is printing (by removing a word, thus causing > > > it to reach near the end and wrap on a different word) > > > the problem doesn't happen. It seems to happen > > > randomly based on what text is printed and when it > > > reaches near the end of the line. If I change the > > > length of the wrap (from 71 to 60 for example) it will > > > wrap correctly (no blank lines.) > > > > > > I know I have seen the center function not work > > > properly with non-proportional fonts, and this leads > > > me to believe that it is the font which is causing SQR > > > to insert unnecessary lines when printing a wrapped > > > text block. I can change the font to courier and the > > > block wraps correctly. > > > > > > The SQR manual (page 232) mentions a problem with > > > implicit line feeds when your text gets to the right > > > edge of the page, however my text block is not near > > > the right edge. > > > > > > Any insight anyone would have is much appreciated as I > > > have tried just about everything to understand/fix > > > this little bugger. > > > > > > Thanks, > > > Mark Polette > > > EpicEdge > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Talk to your friends online with Yahoo! Messenger. > > > <http://im.yahoo.com> |