Welcome Guest!
 Tkfp
 Previous Message All Messages Next Message 
Re: found viewfax 2.6 binary that will work on Puppy  Alexander Caldwell
 Oct 18, 2007 13:02 PDT 

Jerry,

I seem to remember reading all this before a few years
ago, now that
you are reminding me. I wonder if tiff2ps would
convert the .g3 files we are getting from mgetty or
would they have to be converted from .g3 (which is
supposed to be some type of tiff to another kind of
tiff?).
I did find a file with the viewfax 2.6 sourcecode in
it at :
http://fresh.t-systems-sfr.com/unix/src/misc/viewfax-2.6.tar.gz/
I'll try compiling that and see if I can figure out
anything.

Alex


--- Jerry Park <park.-@gmail.com> wrote:

 Alex,

I discovered last night that viewfax version 2.5
does not have the
code for printing. He didn't add the code for
printing until version
2.6. Version 2.5 still has the same copyright dates
as version 2.4,
but he adds a new copyright of 2004 for version 2.6.

Anyway, if you read the man page, it looks like what
he did was to
hook up his internal code to the VIEWFAX_PRINT shell
variable. So
then, if you look at his little shell script example
for the
VIEWFAX_PRINT variable, it appears that hitting
PrtScn key activates
whatever code you assign to the script. He shows an
example of using
tiff2ps, so maybe you are right (from an email
earlier this year) that
it's really just using program keys to run g23pbm.
Even if that's the
case, that would be useful, I think.

His example of how to use tiff2ps with the
VIEWFAX_PRINT environment
variable is near the end of the man page, but here's
the salient part.

Jerry



        VIEWFAX_PRINT
               Defines a command that will print one
or more fax pages.


        VIEWFAX_EDIT
               Defines a command that will calls an
editor on one or more fax
               pages.


        These two variables are optional. If a
variable is undefined, the cor-
        responding keyboard command is ignored. If
the variable is defined, it
        should contain the name of a command or
executable script that performs
        the desired function.   The command
should process a single page if
        called with a -p page-number argument.
Alternatively, if can be called
        with just a list of filenames, meaning
that all pages should be
        processed.

        Here is an oversimplified example of a print
command.   Note that it
        assumes that the format is tiff and will
fail when handed a raw fax
        file.
          VIEWFAX_PRINT=printfax

          /usr/local/bin/printfax:
          #!/bin/sh
          case "$1" in
          -p) shift
              dopt='expr $1 - 1'
              shift
              tiff2ps -d ${dopt} -2 -h 11.69 -w 8.27
"$1" | lp
              ;;
          *) tiff2ps -2 -h 11.69 -w 8.27 "$*" | lp
              ;;
          esac


 Jerry,

I unpacked the .rpm on coLinux but it won't run
due to
 missing GLIBC dependencies. I found a newer
version
 with sourcecode for viewfax 2.5 on my machine and
compiled that but don't see any stuff for printing
with that one. I will look for the 2.6 sourcecode
and
 see if I can compile it for coLinux. It is a very
small program, at least the 2.4 version is, and
compiles very easily, at least it did. I think it
was
 "statically" compiled also, so it did not depend
on
 the shared libs which is why it probably ran on
all
 the different Linux boxes we tried it on.

Alex

--- Jerry Park <park.-@gmail.com> wrote:

 Alex,

I'm just exploring the documents with the rpm I
just
 
 sent.
Apparently, if "properly installed" viewfax 2.6
will
 
 print and edit
documents. Hmm......I'm really curious now. The
command line options
for viewing and so forth are the same as the
previous versions of
viewfax. I just tried substituting the new
version
 
 2.6 for the old
2.4 in /root/Tkfp/drug_programs and then using
it
 
 with the Tkfp fax
viewer and it worked fine.

Jerry


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
 http://mail.yahoo.com


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.