home *** CD-ROM | disk | FTP | other *** search
/ World of OS/2 / W_OS_2.BIN / TPLCONV.DOC < prev    next >
Text File  |  1993-03-11  |  3KB  |  61 lines

  1.  
  2.  
  3.        TPLCONV is a utility for beta versions of FAN 1.80/beta and under.
  4.        As of version 1.90/beta, the syntax of the template files radically
  5.        changed.  During the beta period, the enhancements made to FAN
  6.        greatly exceeded the capacity of the current "template language",
  7.        or "macros".
  8.  
  9.        TPLCONV will search for any *.TPL files in the current directory,
  10.        and create new, corresponding *.NEW files in the current directory.
  11.        These files can then be reviewed and then copied over the original
  12.        *.TPL template files.
  13.  
  14.        To run TPLCONV, simply invoke the program with no command line
  15.        arguments (there are none available).
  16.  
  17.        The following chart illustrates the changes to the template macros.
  18.        The first column is the original, "old style" macro.  The second
  19.        column is how this macro would be expressed in the "new style".
  20.        The third column is a brief description of the macro itself.
  21.  
  22.      %d : [curdate]              : current date in dd-mmm-yy format
  23.      %t : [curtime]              : current time in hh:mm:ss format
  24.      -- : [curmonthname]         : current date: month name (w/ DefaultMonthIndex)
  25.      -- : [curmonthname1..9]     : current date: month name using index N (1-9)
  26.      -- : [curmonth]             : current date: 2 digit month number (01-12)
  27.      -- : [curday]               : current date: 2 digit day (01-31)
  28.      -- : [curyear]              : current date: 2 digit year (i.e., "93")
  29.      -- : [curyear4]             : current date: 4 digit year (i.e., "1993")
  30.  
  31.      %f : [filename]             : full base filename and ext (i.e., "TEST.ZIP")
  32.      %F : [filename]             : same, fixed length of 12 characters
  33.      %p : [filepath]             : path of physical file on your system
  34.      -- : [filefullname]         : file physical path and file name
  35.      -- : [filebasename]         : base filename (i.e., "TEST")
  36.      -- : [fileext]              : file extension (i.e., "ZIP")
  37.      %b : [filesize]             : file size in bytes
  38.      %B : [filesize,RIGHT,7]     : same, fixed length of 7 characters
  39.      %k : [filesizeKB]           : file size in kilobytes
  40.      %K : [filesizeKB,RIGHT,7]   : same, fixed length to 7 characters
  41.      %o : [fileorigin]           : file origin address
  42.      %M : [filemonthname]        : file date: month name (using DefaultMonthIndex)
  43.      %Mn: [filemonthname1..9]    : file date: month name using index N (1-9)
  44.      %m : [filemonth]            : file date: 2 digit month number (01-12)
  45.      %D : [fileday]              : file date: 2 digit day number (01-31)
  46.      %y : [fileyear]             : file date: 2 digit year number (i.e., "93")
  47.      %Y : [fileyear4]            : file date: 4 digit year number (i.e., "1993")
  48.      %x : [filedesc]             : file description
  49.      %c : [filedesc,TRUNCATE,??] : same, truncated to a specific length
  50.      %C : [filedesc,??]          : same, truncated and padded to a specific length
  51.  
  52.      Description text delimited within margins (i.e., %n:n[x,c,C]):
  53.         : [filedesc,MARGINS:n:n]
  54.  
  55.      %e : [env:varname]          : environment variable (i.e., [env:username])
  56.  
  57.      %q : [totalsize]            : total bytes in message
  58.      %Q : [totalsizeKB]          : total kilobytes in message
  59.  
  60.      %a : [areatagname]          : tag name of file area
  61.      %A : [areatagname,10]       : same, fixed length of 10 characters