Hylafax tips

 

Q. How do I make hylafax recognize pcl files?

A. The typerules file clearly says:

For string and ascii data, no comparison operator is allowed,
# and embedded spaces, but not embedded tabs, are allowed.
# These data are taken literally; no C-style character escapes
# are meaningful.

So I simply added this line near the top

0 string     ^[E    tiff         myscripttodo -otiff_g3 >%o <%i

I used vi and pressed Control V and pressed the escape key, and then entered E.

I then used 

[scooter@isw hylafax]# /usr/sbin/typetest -f typerules ./*.pcl match against (..., 512)
rule: offset 0 string = "%!" -- failed (comparison)
rule: offset 0 short = 0x4d4d -- failed (comparison)
rule: offset 0 short = 0x4949 -- failed (comparison)
rule: offset 0 short = 0x1da -- failed (comparison)
rule: offset 0 short = 0x1f1e -- failed (comparison)
rule: offset 0 short = 0x1f9d -- failed (comparison)
rule: offset 0 short = 0x506 -- failed (comparison)
rule: offset 0 short = 0x5343 -- failed (comparison)
rule: offset 0 short = 0xf702 -- failed (comparison)
rule: offset 0 string = "GIF" -- failed (comparison)
rule: offset 0 long = 0x59a66a95 -- failed (comparison)
rule: offset 0 string = "
" -- success (result tiff, rule "myscriptttodor -otiff_g3 >%o <%i")
[root@isw hylafax]#

HOORAY!