I use 'efax' to send faxes with .fax files generated by 'dvi2fax'. The new
version of 'dvi2fax' outputs .fax files which are not understood by 'efax'.
I use Debian stable (Woody).
Here is an example:
sophie ~>cat truc.tex
\documentclass{article}
\begin{document}
Ce propos est sans objet.
\end{document}
sophie ~>latex truc.tex; dvi2fax truc.dvi
sophie ~>efax -t T0123456789 truc*.fax
efax: Fri Jan 3 20:47:19 2003 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: Fri Jan 3 20:47:19 2003 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 47:19 compiled Feb 20 2002 15:22:34
efax: 47:19 Error: can't get format of truc-001.fax
efax: 47:19 done, returning 2 (unrecoverable error)
However, using an old version of dvi2fax solves the problem. Here is a diff:
sophie ~>diff /usr/bin/dvi2fax /old/bin/dvi2fax
24c24
< dvipsconf=dfaxhigh; gsdev=dfaxhigh
---
26,27c26,27
< -hi) gsdev=dfaxhigh; shift;;
< -lo) gsdev=dfaxlow; shift;;
---
31,33c31,32
< 0) help >&2
< exit 1
< ;;
---
38c37
< gs -q -dSAFER -sDEVICE=$gsdev -sOutputFile=$NAME-%03d.fax -sNOPAUSE -
---
'dvi2fax' comes with the package tetex-bin:
sophie ~>dpkg -S dvi2fax
tetex-bin: /usr/share/man/man1/dvi2fax.1.gz
tetex-bin: /usr/bin/dvi2fax
and 'efax' comes with the package efax.
Best regards and happy new year !
Sébastien Desreux.
Dear Seb, more than a year ago you have reported a bug against the tetex-bin package. We apologize for not having answered so long. Seb <seb@H-K.fr> wrote: It would be really good to know the version - do you still know? Or, even better, can you try with the version you currently use, and tell us which one this is and whether it has the problem? I have tried it with the version from unstable, and I couldn't reproduce the bug. If you like, I can recommend the backports available at http://www.fs.tum.de/~bunk/packages/woody/bunk-2.html. Regards, Frank
Dear Mr Küster, | more than a year ago you have reported a bug against the tetex-bin | package. We apologize for not having answered so long. Thanks for answering. | > Package: tetex-bin | > Version: N/A; reported 2003-01-03 | | It would be really good to know the version - do you still know? It used to be tetex-bin from Woody (this much is certain), 1.0.2 I think. | Or, even better, can you try with the version you currently use, and | tell us which one this is and whether it has the problem? I'd love to, but in the meantime my 10-year old 28.8K modem has gone to Valhalla. So I can't send out faxes any longer. And since this problem was in my mind still pending, I didn't bother buying another one. | I have tried it with the version from unstable, and I couldn't | reproduce the bug. If you like, I can recommend the backports | available at http://www.fs.tum.de/~bunk/packages/woody/bunk-2.html. That's good news. I plan to switch to Sarge sometime this spring: it will be a good occasion to try again. Thanks for your time and support ! Seb.
On 06.04.04 Frank Küster (frank@kuesterei.ch) wrote:
Hi all,
I believe I can:
(unstable chroot)
drachi:~# more truc.tex
\documentclass{article}
\begin{document}
Ce propos est sans objet.
\end{document}
drachi:~# latex truc
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./truc.tex
<snip>
Output written on truc.dvi (1 page, 248 bytes).
Transcript written on truc.log.
dvi2fax doesn't work in my chroot, gs* is not installed².
drachi:[~] #cp sarge/root/truc.dvi .
drachi:[~] #dvi2fax truc
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.06:1736' -> <texc.pro>. [1]
drachi:[~] #./efax -t T0123456789 truc-001.fax
./efax: Tue Apr 6 19:39:24 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Tue Apr 6 19:39:24 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 39:24 compiled Apr 6 2004 19:31:38
efax: 39:24 Error: can't get format of truc-001.fax
efax: 39:24 done, returning 2 (unrecoverable error)
after reverting back to the dvi2fax version given by the patch:
drachi:[~] #./efax -t T0123456789 truc-001.fax
./efax: Tue Apr 6 19:45:09 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Tue Apr 6 19:45:09 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 45:09 compiled Apr 6 2004 19:31:38
efax: 45:09 opened /dev/modem
efax: 45:10 using Version 1.10 / 19.07.1999 "ELSA AG, Aachen (Germany)" "MicroLink 56k basic" "Version 1.10 / 19.07.1999" in class 2.0
efax: 45:11 dialing T0123456789
efax: 45:11 Error: terminating on signal 2
efax: 45:11 failed -> truc-001.fax
efax: 45:12 done, returning 5 (terminated by signal)
I've tried already to contact the packager of efax and the upstream
author of efax but got never a reply. Sorry for not reporting that.
efax is the version of sid, compiled on woody. dvi2fax the version of
woody.
Regards, Hilmar
² dvi2fax belongs to tetex-bin. Do we need a depend on gs?
On 06.04.04 Frank Küster (frank@kuesterei.ch) wrote:
Hi all,
I believe I can:
(unstable chroot)
drachi:~# more truc.tex
\documentclass{article}
\begin{document}
Ce propos est sans objet.
\end{document}
drachi:~# latex truc
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./truc.tex
<snip>
Output written on truc.dvi (1 page, 248 bytes).
Transcript written on truc.log.
dvi2fax doesn't work in my chroot, gs* is not installed².
drachi:[~] #cp sarge/root/truc.dvi .
drachi:[~] #dvi2fax truc
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.06:1736' -> <texc.pro>. [1]
drachi:[~] #./efax -t T0123456789 truc-001.fax
./efax: Tue Apr 6 19:39:24 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Tue Apr 6 19:39:24 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 39:24 compiled Apr 6 2004 19:31:38
efax: 39:24 Error: can't get format of truc-001.fax
efax: 39:24 done, returning 2 (unrecoverable error)
after reverting back to the dvi2fax version given by the patch:
drachi:[~] #./efax -t T0123456789 truc-001.fax
./efax: Tue Apr 6 19:45:09 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Tue Apr 6 19:45:09 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 45:09 compiled Apr 6 2004 19:31:38
efax: 45:09 opened /dev/modem
efax: 45:10 using Version 1.10 / 19.07.1999 "ELSA AG, Aachen (Germany)" "MicroLink 56k basic" "Version 1.10 / 19.07.1999" in class 2.0
efax: 45:11 dialing T0123456789
efax: 45:11 Error: terminating on signal 2
efax: 45:11 failed -> truc-001.fax
efax: 45:12 done, returning 5 (terminated by signal)
I've tried already to contact the packager of efax and the upstream
author of efax but got never a reply. Sorry for not reporting that.
efax is the version of sid, compiled on woody. dvi2fax the version of
woody.
Regards, Hilmar
² dvi2fax belongs to tetex-bin. Do we need a depend on gs?
Hilmar Preusse <hille42@web.de> wrote: Could you also try it with the dvi2fax version from unstable, copied to your woody filesystem? It's just a shell script, so no problem there. I cannot really test it, because I don't have a modem at all. When I said I cannot reproduce it, it was because I didn't get the error message described by Seb - but of course I get an error message about a missing modem, and probably the modem is checked before the file is read. The old version produces $ file file.fax file.fax: raw G3 data while with the new one file-new.fax: group 3 fax data, fine resolution (204x196 DPI) Before changing anything, we have to make sure what other fax programs want. I never used any, but it might be that e.g. hylafax does better (or works only) with the new format. We already have a Suggests: gs. I think this is sufficient¹ - dvi2fax is not the main functionality of tetex-bin. And it makes perfect sense to install tetex-bin without gs, e.g. on a server used for producing pdf or ps files, but not for displaying or printing. Regards, Frank P.S. Was there any footnote ¹?
Hilmar Preusse <hille42@web.de> wrote: Could you also try it with the dvi2fax version from unstable, copied to your woody filesystem? It's just a shell script, so no problem there. I cannot really test it, because I don't have a modem at all. When I said I cannot reproduce it, it was because I didn't get the error message described by Seb - but of course I get an error message about a missing modem, and probably the modem is checked before the file is read. The old version produces $ file file.fax file.fax: raw G3 data while with the new one file-new.fax: group 3 fax data, fine resolution (204x196 DPI) Before changing anything, we have to make sure what other fax programs want. I never used any, but it might be that e.g. hylafax does better (or works only) with the new format. We already have a Suggests: gs. I think this is sufficient¹ - dvi2fax is not the main functionality of tetex-bin. And it makes perfect sense to install tetex-bin without gs, e.g. on a server used for producing pdf or ps files, but not for displaying or printing. Regards, Frank P.S. Was there any footnote ¹?
Hi all,
drachi:[~] #cp sarge/usr/bin/dvi2fax .
drachi:[~] #diff dvi2fax /usr/bin/dvi2fax
14,17c14
< # hack around a bug in zsh:
< test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
<
< progname=`basename "$0"`
---
39c36
< NAME=`basename "$1" .dvi`
---
41c38
< gs -q -dSAFER -sDEVICE=$gsdev -sOutputFile="$NAME-%03d.fax" -sNOPAUSE -
---
Nothing, what could hit us.
drachi:[~/efax] #./dvi2fax.new truc.dvi
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.07:1246' ->
<texc.pro>. [1]
drachi:[~/efax] #./efax -t 0123456789 truc*.fax
./efax: Wed Apr 7 14:59:50 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Wed Apr 7 14:59:50 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 59:50 compiled Apr 6 2004 19:31:38
efax: 59:50 Error: can't get format of truc-001.fax
efax: 59:50 done, returning 2 (unrecoverable error)
drachi:[~/efax] #file truc-001.fax
truc-001.fax: group 3 fax data, fine resolution (204x196 DPI)
drachi:[~/efax] #./dvi2fax.old truc.dvi
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.07:1246' ->
<texc.pro>. [1]
drachi:[~/efax] #file truc-001.fax
truc-001.fax: raw G3 data
drachi:[~/efax] #./efax -t 0123456789 truc*.fax
./efax: Wed Apr 7 15:00:53 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Wed Apr 7 15:00:53 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 00:53 compiled Apr 6 2004 19:31:38
efax: 00:53 opened /dev/modem
efax: 00:54 using Version 1.10 / 19.07.1999 "ELSA AG, Aachen (Germany)" "MicroLink 56k basic" "Version 1.10 / 19.07.1999" in class 2.0
efax: 00:55 dialing 0123456789
efax: 01:14 Warning: number is busy
efax: 01:14 failed -> truc-001.fax
efax: 01:14 done, returning 1 (number busy or modem in use)
An strace of efax shows me, that the error message "can't get format
of truc-001.fax" appears before even opening /dev/modem.
Last resort: That was a bug in ghostscript, which has been fixed in
unstable. Would you be so kind to send me your *.fax file?
drachi:[~] #strace /usr/sbin/sendfax xxxxxxxx efax/truc-001.fax 2> log1
Trying fax device '/dev/ttyS1'... OK.
Dialing xxxxxxxx... OK.
sending 'efax/truc-001.fax'...
The number was real, he really started sending that fax. So I guess,
that is a bug in efax....
Yes.
H.
Hi all,
drachi:[~] #cp sarge/usr/bin/dvi2fax .
drachi:[~] #diff dvi2fax /usr/bin/dvi2fax
14,17c14
< # hack around a bug in zsh:
< test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
<
< progname=`basename "$0"`
---
39c36
< NAME=`basename "$1" .dvi`
---
41c38
< gs -q -dSAFER -sDEVICE=$gsdev -sOutputFile="$NAME-%03d.fax" -sNOPAUSE -
---
Nothing, what could hit us.
drachi:[~/efax] #./dvi2fax.new truc.dvi
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.07:1246' ->
<texc.pro>. [1]
drachi:[~/efax] #./efax -t 0123456789 truc*.fax
./efax: Wed Apr 7 14:59:50 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Wed Apr 7 14:59:50 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 59:50 compiled Apr 6 2004 19:31:38
efax: 59:50 Error: can't get format of truc-001.fax
efax: 59:50 done, returning 2 (unrecoverable error)
drachi:[~/efax] #file truc-001.fax
truc-001.fax: group 3 fax data, fine resolution (204x196 DPI)
drachi:[~/efax] #./dvi2fax.old truc.dvi
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.07:1246' ->
<texc.pro>. [1]
drachi:[~/efax] #file truc-001.fax
truc-001.fax: raw G3 data
drachi:[~/efax] #./efax -t 0123456789 truc*.fax
./efax: Wed Apr 7 15:00:53 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Wed Apr 7 15:00:53 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 00:53 compiled Apr 6 2004 19:31:38
efax: 00:53 opened /dev/modem
efax: 00:54 using Version 1.10 / 19.07.1999 "ELSA AG, Aachen (Germany)" "MicroLink 56k basic" "Version 1.10 / 19.07.1999" in class 2.0
efax: 00:55 dialing 0123456789
efax: 01:14 Warning: number is busy
efax: 01:14 failed -> truc-001.fax
efax: 01:14 done, returning 1 (number busy or modem in use)
An strace of efax shows me, that the error message "can't get format
of truc-001.fax" appears before even opening /dev/modem.
Last resort: That was a bug in ghostscript, which has been fixed in
unstable. Would you be so kind to send me your *.fax file?
drachi:[~] #strace /usr/sbin/sendfax xxxxxxxx efax/truc-001.fax 2> log1
Trying fax device '/dev/ttyS1'... OK.
Dialing xxxxxxxx... OK.
sending 'efax/truc-001.fax'...
The number was real, he really started sending that fax. So I guess,
that is a bug in efax....
Yes.
H.
Hilmar Preusse <hille42@web.de> schrieb:
I don't quite understand, and am in a hurry. But here they are:
frank@alhambra:~/latex/test/debian-tetex$ dvips dvi2fax.dvi -Pdfaxhigh -f | gs -dSAFER -SDEVICE=dfaxhigh -SOutputFile="file-new.fax" -sNOPAUSE -
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.06:1741' ->
<texc.pro><8r.enc><texps.pro>. [1]
Loading NimbusRomNo9L-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n021003l.pfb... 2139436 732842 1763096 445126 0 done.
frank@alhambra:~/latex/test/debian-tetex$ dvips dvi2fax.dvi -Pdfaxhigh -f | gs -dSAFER -SDEVICE=faxg3 -r204x196 -SOutputFile="file-old.fax" -sNOPAUSE -
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.06:1741' ->
<texc.pro><8r.enc><texps.pro>. [1]
Loading NimbusRomNo9L-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n021003l.pfb... 2139432 732931 1763096 445126 0 done.
frank@alhambra:~/latex/test/debian-tetex$ cat dvi2fax.tex
%% 175239
\documentclass{article}
\begin{document}
Ce propos est sans objet.
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
frank@alhambra:~/latex/test/debian-tetex$
The files are on http://people.debian.org/~frank/
Regards, Frank
Hilmar Preusse <hille42@web.de> schrieb:
I don't quite understand, and am in a hurry. But here they are:
frank@alhambra:~/latex/test/debian-tetex$ dvips dvi2fax.dvi -Pdfaxhigh -f | gs -dSAFER -SDEVICE=dfaxhigh -SOutputFile="file-new.fax" -sNOPAUSE -
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.06:1741' ->
<texc.pro><8r.enc><texps.pro>. [1]
Loading NimbusRomNo9L-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n021003l.pfb... 2139436 732842 1763096 445126 0 done.
frank@alhambra:~/latex/test/debian-tetex$ dvips dvi2fax.dvi -Pdfaxhigh -f | gs -dSAFER -SDEVICE=faxg3 -r204x196 -SOutputFile="file-old.fax" -sNOPAUSE -
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.06:1741' ->
<texc.pro><8r.enc><texps.pro>. [1]
Loading NimbusRomNo9L-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n021003l.pfb... 2139432 732931 1763096 445126 0 done.
frank@alhambra:~/latex/test/debian-tetex$ cat dvi2fax.tex
%% 175239
\documentclass{article}
\begin{document}
Ce propos est sans objet.
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
frank@alhambra:~/latex/test/debian-tetex$
The files are on http://people.debian.org/~frank/
Regards, Frank
(Taking out the submitter, he didn't seem to be so interested, and obviously cannot help) Hilmar Preusse <hille42@web.de> wrote: [...] Agreed. [...] That is the same as I got - therefore the (possibly different) gs versions produce the same output, or at least output which looks the same to magic(5). Really? That's different here, both on woody-bunk2 and in the sarge chroot, both with efax v 0.9a-001114. I can't see any difference between the files produced on woody+ and on sarge, but I can see the difference between the two dvi2fax versions - what am I missing? Well, perhaps not a bug - I'd say an incompatibility. Does sendfax understand the version that efax likes? Poor footnote, it must be running around in the internet, looking for the text where it should be attached :-( Regards, Frank
Hi,
drachi:[~/efax] #./dvi2fax.old truc.dvi
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.07:1246' ->
<texc.pro>. [1]
drachi:[~/efax] #mv truc-001.fax truc-old.fax
drachi:[~/efax] #./dvi2fax.new truc.dvi
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.04.07:1246' ->
<texc.pro>. [1]
drachi:[~/efax] #mv truc-001.fax truc-new.fax
drachi:[~/efax] #diff truc-new.fax /home/hille/tmp/sarge/efax/file-new.fax
Binary files truc-new.fax and /home/hille/tmp/sarge/efax/file-new.fax differ
drachi:[~/efax] #diff truc-old.fax /home/hille/tmp/sarge/efax/file-old.fax
Binary files truc-old.fax and /home/hille/tmp/sarge/efax/file-old.fax differ
drachi:[~/efax] #./efax /home/hille/tmp/sarge/efax/file-new.fax -t 0123456789
./efax: Thu Apr 8 00:36:09 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Thu Apr 8 00:36:09 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 36:09 compiled Apr 6 2004 19:31:38
efax: 36:09 opened /dev/modem
efax: 36:10 using Version 1.10 / 19.07.1999 "ELSA AG, Aachen (Germany)" "MicroLink 56k basic" "Version 1.10 / 19.07.1999" in class 2.0
efax: 36:13 Error: terminating on signal 2
efax: 36:13 done, returning 5 (terminated by signal)
and then he starts dialing. don't tell me, that the difference
between your one and my ony was only a timestamp....
drachi:[~/efax] #diff -a truc-new.fax /home/hille/tmp/sarge/efax/file-new.fax |wc
11 100 19497
BTW:
drachi:[~/efax] #./efax -t 0123456789 truc-new.fax
./efax: Thu Apr 8 00:40:52 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Thu Apr 8 00:40:52 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 40:52 compiled Apr 6 2004 19:31:38
efax: 40:52 Error: can't get format of truc-new.fax
efax: 40:52 done, returning 2 (unrecoverable error)
drachi:[~/efax] #./efax truc-new.fax -t 0123456789
./efax: Thu Apr 8 00:41:39 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
./efax: Thu Apr 8 00:41:39 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 41:39 compiled Apr 6 2004 19:31:38
efax: 41:39 opened /dev/modem
efax: 41:40 using Version 1.10 / 19.07.1999 "ELSA AG, Aachen (Germany)" "MicroLink 56k basic" "Version 1.10 / 19.07.1999" in class 2.0
efax: 41:43 Error: terminating on signal 2
efax: 41:44 done, returning 5 (terminated by signal)
Have no clue, that does that mean.
drachi:[~/efax] #strace ./efax -t 0123456789 truc-new.fax 2>&1 | grep modem
drachi:[~/efax] #strace ./efax -t 0123456789 truc-new.fax 2>&1 | grep format
write(2, "efax: 43:43 Error: can\'t get for"..., 52efax: 43:43 Error:
can't get format of truc-new.fax
The both dvi2fax versions of woody and sarge don't really differ.
Between potato and woody I see, that the resolution is not fixed to
204x196. What does mean woody+ ?
At least he didn't complain about unknown formats. I didn't try to
send that fax anywhere and call the receiver, whether it has arrived.
H.
Hilmar Preusse <hille42@web.de> wrote: [...] Might well be. you could try with "strings". Probably that efax is buggy. This efax is strange. Here it always complains about not finding /dev/modem, irrespective of what I put into /etc/efaxrc. woody-bunk2 plus lots of backports. I'll send a mail to the maintainers of the other fax packages. Tschüß, Frank
Dear maintainers of fax packages in Debian, We have a bugreport against the tetex-bin package (rather old, I admit) that complains that our dvi2fax script produces output that is not recognized by efax. The problem is that dvi2fax switched from producing "raw G3 data" (as file(1) says) to making " group 3 fax data, fine resolution (204x196 DPI)" - the resolution can be configured. It seems that efax doesn't understand the latter. Should this be regarded as a bug in tetex-bin? If yes, should we revert to the old form or provide a switch for both formats? Or is the format that efax understands (raw G3 data) deprecated? Thanks in advance, Frank P.S. raw G3 is produced with gs -q -dSAFER -sDEVICE=faxg3 -r$res -sOutputFile=$NAME-%03d.fax -sNOPAUSE - (where $res is, configurable, 204x196 or 204x98) group 3 fax is produced with gs -q -dSAFER -sDEVICE=dfaxhigh -sOutputFile=$NAME-%03d.fax -sNOPAUSE - (or replace dfaxhigh by dfaxlo)
Hi,
Stupid me... But it doesn't tell me anything I could interpret. Well,
except, that the files you created with the new dvi2fax differ from
that what I get, when I call the new dvi2fax.
Yes. Therefore I contacted the package maintainer and upstream, but
never got any reply. We should wait for the packagers of the other
fax programs.
Seems to depend on the order of the options:
drachi:[~/efax] #strace efax -t 0123456789 truc-new.fax 2>&1 | grep format
write(2, "efax: 46:49 Error: can\'t get for"..., 52efax: 46:49 Error: can't get
format of truc-new.fax
drachi:[~/efax] #strace efax truc-new.fax -t 0123456789 2>&1 | grep modem
open("/dev/modem", O_RDWR|O_NONBLOCK|O_NOCTTY) = -1 ENOENT (No such file or directory)
write(2, "efax: 47:15 Error: can\'t open se"..., 80efax: 47:15 Error:
can't open serial port /dev/modem: No such file or directory
drachi:[~/efax] #strace efax truc-new.fax -t 0123456789 2>&1 | grep format
drachi:[~/efax] #strace efax -t 0123456789 truc-new.fax 2>&1 | grep modem
drachi:[~/efax] #strace efax -t 0123456789 truc-new.fax 2>&1 | grep efax.r
drachi:[~/efax] #strace efax truc-new.fax -t 0123456789 2>&1 | grep efax.r
drachi:[~/efax] #
Seems to be broken heavily....
After creating /dev/modem:
drachi:[~/efax] #efax truc-new.fax -t 061575546
efax: Thu Apr 8 19:02:10 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: Thu Apr 8 19:02:10 2004 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 02:10 compiled Apr 8 2004 18:39:30
efax: 02:10 opened /dev/modem
efax: 02:12 using Version 1.10 / 19.07.1999 "ELSA AG, Aachen
(Germany)" "MicroLink 56k basic" "Version 1.10 / 19.07.1999" in class 2.0
efax: 02:17 Warning: can't get modem capabilities, set to default
Even with the new .fax I created. The simple solution could be: man
page bug. efax(1)
-t num [file...]
dial telephone number num and send the fax image
files file....
is wrong.
Thanks.
Hilmar
Hi, I asked mgettys upstream. Please find Gerts answer below. IMHO the "ghostscript installation" doesn't count for us, as Debians ghostscript supports it. Cheers, Andi----- Forwarded message from Gert Doering <gert@greenie.muc.de> ----- From: Gert Doering <gert@greenie.muc.de> Reply-To: mgetty@muc.de To: Andreas Barth <aba@not.so.argh.org>, mgetty@muc.de Subject: Re: (forw) #175239: What are valid fax formats Date: Thu, 8 Apr 2004 22:17:09 +0200 Message-ID: <20040408221708.J14827@greenie.muc.de> Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.2.5i X-Spam-Score: / 0.0 Hi, [..] Mgetty's sendfax won't care (both output formats are understood). I have changed mgetty's faxspool to use "faxg3" instead of "dfaxhigh" some years ago because most ghostscript installations have the faxg3 driver compiled in by default, and "dfaxhigh" needs to be enabled explicitely when compiling ghostscript. So from that point of view, I'd recommend to use faxg3. There are good arguments against faxg3, though - it has no header to store the actual resolution in, and some versions of the ghostscript drivers happen to create faxg3 files that are not 1728 pixels wide, which breaks faxing to standard compliant receivers (mgetty's g3cat fixes that on-the-fly). None of these points are strong enough, IMHO, to strongly recommend one format or the other. gert----- End forwarded message -----
reassign 175239 efax retitle 175239 efax don't understand group 3 fax data from gs -sDEVICE=dfax(high|low) thanks Hi, He tries to receive a fax, hence don't even touches the fax-file. efax.rc is parsed by the helper script /usr/bin/fax.. Well, didn't work either, he tries to receive a fax... Seems to be OK. Summary: The only difference between the new and the old dvi2fax script seems to be, that the device name in the gs call was changed from faxg3 to dfaxhigh. It is IMHO a bug of efax, that files of the form drachi:[~/efax] #file truc-new.fax truc-new.fax: group 3 fax data, fine resolution (204x196 DPI) are not understood by it, meanwhile drachi:[~/efax] #file truc-old.fax truc-old.fax: raw G3 data are. So I'm swapping over that bug to efax. Filippo, if you think this is not your fault, please reassign that bug to ghostscript. Seb, if you want to send faxes using efax you can use the helper Skript /usr/bin/fax. Just feed your created Postscript file to it and leave the conversion to the efax-suite. This is confirmed to work. Thanks to all contributors, Hilmar
reassign 175239 efax retitle 175239 efax don't understand group 3 fax data from gs -sDEVICE=dfax(high|low) thanks Hi, He tries to receive a fax, hence don't even touches the fax-file. efax.rc is parsed by the helper script /usr/bin/fax.. Well, didn't work either, he tries to receive a fax... Seems to be OK. Summary: The only difference between the new and the old dvi2fax script seems to be, that the device name in the gs call was changed from faxg3 to dfaxhigh. It is IMHO a bug of efax, that files of the form drachi:[~/efax] #file truc-new.fax truc-new.fax: group 3 fax data, fine resolution (204x196 DPI) are not understood by it, meanwhile drachi:[~/efax] #file truc-old.fax truc-old.fax: raw G3 data are. So I'm swapping over that bug to efax. Filippo, if you think this is not your fault, please reassign that bug to ghostscript. Seb, if you want to send faxes using efax you can use the helper Skript /usr/bin/fax. Just feed your created Postscript file to it and leave the conversion to the efax-suite. This is confirmed to work. Thanks to all contributors, Hilmar
Sehr geehrte/r Interessent/in, wir sind eine Arbeitsvermittlungsagentur und freuen uns Ihnen einige für Sie passende Jobs vorschlagen zu können. Sind Sie nicht ganz ausgelastet und möchten nebenbei etwas dazu verdienen? Sind Sie Rentner oder arbeitslos? Wären Sie am liebsten Ihr eigener Chef? Wollen Sie Ihre Dienstzeit und Ihre Beschäftigungsstelle selbst gestalten? Dann haben wir sicherlich etwas dass zu Ihnen passt. Wir vermitteln Arbeitsstellen EU weit und haben auch etwas für Sie in Ihrer Umgebung, und die Bezahlung beträgt durchschnittlich ab 20 Eu die Stunde. Sollten Sie an diesen Stellen interessiert sein, dann senden Sie uns ein kurzes Bewerbungsschreiben an JayneOkeefet@marchmail.com und Sie kriegen weitere Informationen. Mit freundlichen Grüßen Schneider GmbH