Hylafax Mailing List Archives

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

Re: [hylafax-users] MS Word & Excel Typerules entries to convert these file types in ps



On Tue, 18 Mar 2003 12:51:48 +0100, paudelacuesta@gencat.net wrote:


>and my typerules file contains these entries:
>
># conversor de docuentos de word.
>0       string          \376\067\0\043  ps      /usr/bin/wvPS %i > %o
>0       string          \320\317\021\340\241\261        ps
>/usr/bin/wvPS %i > %o
>0       string          \333\245-\0\0\0 ps      /usr/bin/wvPS %i > %o
>
>
>when i type file xxx.doc the linux respond Microsoft Office Document.

I'm not typerules expert, however going "by example" I see that when you see
"string" in typerules, the match is a real string, not some escaped chars.


For escaped chars, look at the entry for tif
0   short       0x4949      tiff

if you do (fax00226.tif is a received tif)

dd if=fax00226.tif bs=1 count=2 | od -hc
2+0 records in
2+0 records out
0000000 4949
          I   I
0000002

So you see where 4949 came from.

You can trying doing the same to a word doc.

-- 
giulioo@pobox.com

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services