HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] faxcover.ps working for sendfax but not Cypheus



Curtis, 

I must admit, I don't totally understand how BreakIntoLines is
working, and I haven't read the instructions.  But I think you might
be calling it with an incorrect parameter list, at least for the
version below.

> %%EndProlog
> %%Page 1 +1
> /wordbreak ( ) def
> /BreakIntoLines
> { /proc exch def
>   /linewidth exch def
>   /textstring exch def
>   /breakwidth wordbreak stringwidth pop def
>   /curwidth 0 def
>   /lastwordbreak 0 def
>   /startchar 0 def
>   /restoftext textstring def

To test, I added the following here:
restoftext foo

This causes the code to crash in gv and dump the stack, with
"restoftext" on the top of the ps stack.  It contains the number 300,
and not the comments "this is a comment" as I believe it should.  That
means textstring isn't being defined correctly, because it's not being
passed the correct parameters.

As far as I can tell from looking at the code, a correct call to
BreakIntoLines should look something like:

comments linewidth [a proc?] BreakIntoLines

I'm not sure what it's looking for, for "proc."  But it looks to me
like BreakIntoLines' last 3 parameters are as I showed above.

This may be of no use whatsoever, and I should probably RTFM before I
dig any deeper... but that's what I got from looking at the code and
playing around with it.  Hope it helps...

Alan


>   { restoftext wordbreak search		<< the error occurs here!
> { /nextword exch def pop
>   /restoftext exch def
>   /wordwidth nextword stringwidth pop def
>   curwidth wordwidth add linewidth gt
>   { textstring startchar
> lastwordbreak startchar sub
> getinterval proc
> /startchar lastwordbreak def
> /curwidth wordwidth breakwidth add def }
>   { /curwidth curwidth wordwidth add
> breakwidth add def
>  } ifelse
>   /lastwordbreak lastwordbreak
>   nextword length add 1 add def
> }
> { pop exit }
> ifelse
>   } loop
>   /lastchar textstring length def
>   textstring startchar lastchar startchar sub
>   getinterval proc
> } def
> 
> <<
> 
> I compared "BreakIntoLines" with the default HylaFAX cover page and
> could not find any error.
> 
> 
> Best Regards
> Bodo
> 
> --
> ___________________________________________
> Bodo Noering Consulting
> Zur Alten Faehre 23 · D-45219 Essen
> Phone +49-2054-971790 · Fax +49-2054-971791
> bn@urania.com · http://www.urania.com
> ___________________________________________
> 



____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions