$Header: /cvsroot/mpdist/mpdist/TODO,v 1.1.1.1 2002/04/12 16:47:25 richbastard Exp $

* The following should print double-sided PostScript:

  mp -postscript -nobanners -printer -twosided < file.ps

  but it prints an initial blank-side. It should force a page if there has
  already been something printed, or do nothing if it hasn't.

* From Peter W. Osel <pwo@ztivax.siemens.com>
  I often use the landscape mode and sometimes I use it to print on both sides
  of the paper. I would like to have the "Page# Box" alternating on the left
  and right side of the pages. It should also be possible to select whether
  the "Page# Box" on odd pages is on the left or right side.

        +----------------------+        +----------------------+
        !# ########  ######## #!        !######## #  # ########!
        !                      !        !                      !
        !Page1       Page2     !        !Page1       Page2     !
        !                      !        !                      !
        !                      !        !                      !
        !##########  ##########!        !##########  ##########!
        +----------------------+        +----------------------+
        If you put this in a A4         If you properly rearrange
        Folder, the Page# is on         the pages and print duplex,
        the outer edge on both          you can fold this and have
        sides.                          A5 double sided print with
                                        Page# on the outer edge too

* From Michael Kerstetter <msk@betelgeuse.boeing.com>
  Needs the inclusion of command line options to turn off the top and
  bottom banners. In the context of 'mp', if banners were being used,
  I envision the top and bottom banners just being reversed, if banners
  were off, I'd envision just the page number appearing at the bottom
  of the page.

* From Lupe Christoph <lupe@alanya.Germany.Sun.COM>
  There are so many personal organisers all over the world that you need a
  more general scheme. What about a flag that takes the name of the personal
  organisers and sticks it in the mp.pro.%s.ps string ?

  Of course you need at least a short writeup on how to create these.
  Better, a short program that takes a general mp.pro.organiser.ps and
  substitutes a few variables. Or you can use short PostScript fragments,
  one for each personal organisers.

* From Johan Vromans <jv@mh.nl>
  A command line option to have page numbers reset to 1 when printing a
  new element of a mailfolder or digest.

* From Paul Higgins <phiggins@orion.oac.uci.edu>
  If there are two "Cc" lines in the message, only one gets printed.

* From Paul Higgins <phiggins@orion.oac.uci.edu>
  A -T option, analogous to -F, which prints the name from the mail's
  "To" field in the top header. [This is not straight forward, because
  there can be multiple To: lines and they can be quite lengthy].

* From Andy Norman <ange@hplb.hpl.hp.com>
  The time-manager style doesn't appear to quite work for A4. The dotted
  lines aren't visible on the top and left of the page. It looks like it
  needs shifting southeast a little bit.

* From Andy Norman <ange@hplb.hpl.hp.com>
  The chunk in the Makefile that makes links has a variant of 'echo' that
  doesn't work on SysV-like systems.  'echo -n "foobar"' looks like
  'echo "foobar\c" on SysV.

* From Nick Lochrin <nick@stca77.stc.oz.au>
  When printing out digests that consist of mail articles (eg comp.risks)
  using "digestp -l" (for landscape format), if the mail articles are
  longer than the page, then the footer, which contains the Subject of the
  message on that page, obscures some lines of the text (by about 1 inch). 
  BTW, I am using the A4 paper size defaults, with the following
  parameters set in mp.pro.l.ps:

  PageLength 72
  LineLength 80
  /fullwidth 8.5 inch def
  /fullheight 11.4 inch def

* From Rory Morris <rory@Aus.Sun.COM>
  An option to have some form of dividing line down the middle of the page
  in landscape mode.

* The ability to specify a set or range of pages to be printed, rather than
  printing the whole file.

* From John Mackin <john@ditsydh.syd.dit.csiro.au>
  I think the way the headers should work even if the user can't specify the
  ones they want is that there should be an _exclusion_ list (like say
  Received:) and anything not on the exclusion list should be included.

* From John Mackin <john@ditsydh.syd.dit.csiro.au>
  If you are going to set the headers in a non-constant-width font, and I do
  agree that that looks quite nice, then you _must_ make sure you set the tabs
  correctly. It's not uncommon for me to line up continuation lines at the
  right spot using tabs, and I hate the way they come out all wrong under mp.
  I guess in concept it is the same: measure the width of the stuff up to where
  the tab stop would go with constant-width characters, measure the width of
  the same characters in the fonts actually in use, set the tab stop(s).

* From John Mackin <john@ditsydh.syd.dit.csiro.au> 
  I read news with rn, and I save it in mbox format. That means I can print a
  file of saved news as a mail folder, using -m.  Right?  Wrong. I _can_, but
  it comes out terrible. I need to convert the From_ lines to use the addresses
  in the From: lines, and do random other hacks. (And by the way, after I've
  done that, even though -m is set, and it is recognising the From_ lines, it
  still sees the Newsgroups: headers and prints "News for John Mackin" at the
  top left. I consider this a feature.)

* From Ken Cross <ken@admin1.Aus.Sun.COM>
  It would be nice to have an option to print out the page number / total;
  ie. 1/10, 2/10...

* From David W. Smith <dws@dbsoft.com>
  There seem to be two camps of half-size (5.5" x 8.5") organizers; one with
  6 holes, the other with 7. Rather than trying to enumerate the names (or
  their abbreviations) as command line options, two options, -hp6 and -hp7
  (for half-page 6-hole, and half-page 7-hole), would probably satisfy 95%
  of the folks in the States. If you think that to be a workable idea, I'll
  supply you with a pair of prologues for the two formats.
 
* Get mp to understand about NIS for getting users' full names.

* From Bob Schreibmaier <bob@mtdcr.att.com>
  I wonder if it is possible to have mp automagically detect imbedded troff
  text and run this through pic, tbl, eqn ...

* The -addhdr and -remhdr command line options don't handle multi-line
  headers.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  An option to allow the banners to go all the way across the page when in
  landscape mode. This was the way mp used to print the banners in landscape
  mode a couple of years ago.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  The -flip option is currently only supported in portrait and landscape
  mode, and not in the personal organiser modes.

* Now that there is no longer an "install-a4" in the Makefile, the
  default pagelength for A4 sites is incorrect.

* From Roland Soderstrom <rsm@Sweden.cv.com>
  The filofax option still doesn't print the holes.

* From Roland Soderstrom <rsm@Sweden.cv.com>
  When you cut the pages there should also be a line at the left side of
  the paper.

* From Rainer Klute <klute@tommy.informatik.uni-dortmund.de>
  The mp prologue files should be clever enough to determine if the page is
  full, and automatically force a new page.

* Things still to fixup or change with mptool:
  - Add extra checks to read_resources() to make sure they are legal values.
  - Run the mptool source files through CodeCenter.
  - Internationalise the text strings.
  - If the property window is on top of the main window, you can't raise the
    main window to the front. At least under the mwm window manager.
  - Option popups are positioned incorrectly for virtual window managers.
  - Currently only the mptool form widget is a drop site. Might need others.
  - See if it's possible for the mptool icon to be a valid drop site.
  - Make the names of the help text for all the widgets consistents.

* Mptool: It's possible that the -printer command line option doesn't need a
  followup argument. If this is the last command line arguments before the
  list of filenames to be printed, than this could cause a problem. The best
  solution is probably to introduce a "-" command line options that signifies
  that there are no more command line options.

* From Cho Ng <mtgbs1!mtgbs1!cyn@mtqua.att.com>
  Shouldn't assume that System V sites automatically use lp and BSD sites use
  lpr. The print command at my site is:

  prt -l <raw|postscript> -j <jobname> -d <printer_name>

  Need to be able to specify an alternate print command somehow.

* From W. Dean Stanton <stanton@sundance.Eng.Sun.COM>
  I'd like a chance -- *after* picking a document (or mail message) to print
  -- to select an appropriate filter or format.  For example, if it fits on
  the same number of sheets in large print or small print, I'll use the large
  print. If not, I'll settle for smaller print. But the options that make
  sense are different for text, mail messages, mail folders, PostScript, etc.

  In short, I'd like to separate the decision of what to print from the
  choice of how it should be formatted.

* Get the File Selection dialog popup to use the proper color scheme. TeleUse
  doesn't seem to automatically provide hooks to set the colors.

* From allen@cssg4.cslab.ds.boeing.com
  When an option box is popped up, it relocates itself to the right of the
  main window. However, it neglects to account for border widths. The result
  is that the popup ends up overlapping the main window by the width of the
  side border, and above it by the width of the title bar.

* From Marc Wiener <marc@aip.org>
  From Richard L. Dyson <dyson@sunfish.Physics.UIowa.Edu>
  When I print using the column switch, the page numbers start with 2 and
  go up by 2. Here's the command line I'm using:

  mp -text -columns 2 -alias "LANCASTER PRESS" AIP_FONTS | lpr -Pps

  I also just tried columns 3 and get a page number starting with 3.

* From John Heidemann <johnh@FICUS.CS.UCLA.EDU>
  I'm looking for a postscript pretty-printer that handles ASCII "backspace
  bold" (i.e., "b^hbo^hol^hld^hd" prints out as "bold" in a bold courier font.

* From DaviD W. Sanderson <dws@ssec.wisc.edu>
  mailp only prints one 'to:' address. I discovered this when I tried to
  mailp a message with multiple addresses in a given 'to:' field, and also
  multiple 'to:' fields.

* From Jonathan Alan Edwards <edwards@aurfs1.aur.alcatel.com>
  (Somehow) add in paper tray support for mp/mptool.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  Lots of warning messages to fixup when compiling mp/mptool under SunOS 4.x.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  Font "C" in mp.man has never existed in any troff font libraries I've ever
  been exposed too. I've always seen font "L" for the "typewriter" font.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  Have the mail keywords (Subject: To: Date: From: and the senders name) all
  in a bolder face (bigger point) to stand out.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  In mp.pro.fp.ps, the columns do not have equal left marging spacing, and if
  you change the width of the text, it really gets messed up.

  When you translate over to the 2nd column, ie:
     "tmsyswidth thiscol mul margin add 0 translate"
  shouldn't this be
     "tmsyswidth binderspace add thiscol mul margin add 0 translate"?

  This not only makes the 2 left margins the same size, but also when changing
  the text width from 4.75, say to 5.25 (which I like better -- and of course
  changing binderspace to 0.25 instead of 0.75), that both columns move the
  same amount together.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  In the ".altl.ps" prologue, there are two issues:

  - The last page number is wrong (it is the same as the 2nd to last page) if
    there is only a single column on the last page.

  - The text is not divided evenly over the page width -- ie: if I fold the
    paper in half, the right column is partially found on the left fold of the
    paper. I have moved the right column 20 units over rightward in the patch
    below, and extended the banner width by 20 units too.

* From Vic Tolomei <Vic.Tolomei@East.Sun.COM>
  How do you get the "alt" prologues (other than -prolog ...).
  In other words, can I say -landscape -alt or somesuch?  BTW, if you don't
  put -landscape with -prologue *altl*, it does bad things.

* From Yves Morin <Yves.Morin@BComeau.Hydro.Qc.CA>
  Diffs provided for LC_TIME and LANG locale support. Still to be integrated.

* From Sven Guckes <guckes@inf.fu-berlin.de>
  Something like "mp -defaults" to print a list of the compiled default 
  values would be nice.

* From Sven Guckes <guckes@inf.fu-berlin.de>
  Is it possible to have *both* the time of the last modification and the
  print time?

* From Sven Guckes <guckes@inf.fu-berlin.de>
  Here's how I'd like the header to look like:

    ___________________________________________________________    ________
   (                   The Most K00L3ZT Title Ever!            )  ( Page 1 )
   ( /path/filename.ext                                        )  ( of 999 )
   ( created:  yymmdd hh:mm       printed:     yymmdd hh:mm    )  (........)
   ( modified: yymmdd hh:mm       printed by:  Joe Doe         )  (........)
    -----------------------------------------------------------    --------

* From Paul A. Thompson <pat@po.CWRU.Edu>
  I am interested in scaling the output to print smaller.

* Integrate the -nobanners option into mptool. The print option panel needs
  something like:

  Page banners:   Normal <x>   Flipped <>     None <>

  and remove the [] Flip banner headings toggle box.

* The -nobanners option doesn't work with any formats except portrait and
  landscape.

* I've currently removed the use of psnup in the .../mimep/shells/mimepfilo
  script. 

* From: ah@doc.ic.ac.uk (Angelo Haritsis)
  Isn't it reasonable to have -folder as the default ?
  A TODO could be to try to guess what kind of folder/format it is from the
  input file...

* From: Hunter Goatley <goathunter@ALPHA.WKU.EDU>
  From: Birger.Wathne@nho.hydro.com (Birger Wathne)
  The HP LJ III barfs on setduplex. I have to edit common/option.c to make
  one-sided printing default to avoid a lot of wasted paper and angry users...

* From: Birger.Wathne@nho.hydro.com (Birger Wathne)
  filep -landscape -columns 1
  - The header doesn't strech across the whole page
  - The pages are numbered 1,3,5,7,etc
  I would guess the header generation code still assumes 2 columns.

  Ordinary users want the ability to print files with long lines
  (1 column) in landscape mode with banners and correct page numbering.
  It would be nice if setting -landscape -columns 1 automatically
  computed correct line and page lengths, but I will provide a
  front-end script for the users, so I can set the neccesary
  -linelength and -pagelength options for them.
  The page numbering is the main problem here.
  For now, I'll modify my front end so it doesn't offer headers
  when printing in landscape.

* From: Birger.Wathne@nho.hydro.com (Birger Wathne)
  Another guy here has to move a database application from VAX to UNIX.
  The software is set up to offer the users a set of templates for
  print layouts. He wants to emulate these through prologue files.
  The users need to be able to select fonts and line spacing as
  modifications to these templates. Would it be possible to add
  -font and -linespace options, and somehow use these from the
  prologue files?

* From: "Keith W. Blackwell" <kwb@lvld.hp.com>
  [Note, some of these wish list items do exist, in a slightly different
   format - richb].

  +  I really want to be able to print an entire folder of mail or
     News message (or mixtures of the two) in the most paper-efficient
     way possible.  This usually means 2 virtual pages per actual page,
     and it also means that a new header-like thingie is printed for
     each new message *as* it occurs (not at the top of the next
     virtual page).  It should be quick and easy to spot the divisions
     between messages.  This should also allow 1 virtual page per page
     in both portrait (normal) and landscape (for extra-wide texts).

  +  Mail and/or News message headers should present the most important
     header information in larger font, perhaps in a box, but then all
     other unsuppressed headers should also be listed in a smaller-than-
     normal font, perhaps in an indented, shaded box, just underneath
     the main header.  The info is there, but it is easily skipped over
     visually.  Of course, command line options my determine what is
     "Most important header" informatoin (To:, From:, Subject:, etc.).
     Also, be careful to consider full RFC compliance, as when there
     is no "From" but there is a "Sender", and when "Resent-To" takes
     precedence over "To".

  +  Also useful would be an "index" (really a table of contents) when
     printing out entire folders of Mail or News messages.  Subject and
     date sent are most important, but from and to could also be listed.
     Each entry should give the page number and any other ordinal number
     such as mailx-format mailbox ordinal message number or the filename
     for MH-format folders.  Even if this table of contents has to be
     printed at the *end*, it is still worth printing -- just make sure
     it's on a fresh new sheet so it can be manually moved to the front.
     A folder name title at the top would also be nice, so it could act
     as the ultimate cover sheet.

  +  Some degree of MIME handling for images would be nice.  This may
     have to be configured by the user, as by specifying the program to
     use in converting an image into an includable postscript file and
     passing back the name of the file to mp.  A simple script or two
     could even be provided with the distribution for common solutions
     (using pnm* programs, for example).  The command line could then
     provide a toggle for color or b&w, to be passed on to the user-
     configured converter program.   Similarly, HTML formattng would
     be useful, though I'm not sure how most common browsers could be
     invoked to perfom this function as desired.  Any such processing
     of MIME attachments (or hooks thereunto) that could be provided
     would be a plus.

* From: "Matthew O. Persico" <matthewp@IDT.NET>

  Configuration: Linux RedHat 4.1 on a 586
                 LaserJet 5L for printing
                 Ghostscript 4.03, set up to use the LJ4 settings, 
                 as there are no LJ5 settings in Ghostscript.

  + [Bug] When I print -landscape, the left and right edges (as viewed from
          landscape mode, i.e, the short sides of a 8.5x11 sheet) are cut off.
          No amount of fooling with -top -bottom -left or -right settings 
          corrects this behavior. When I print in portrait mode, the top and 
          bottom (again the short sides) do respond to -top -bottom options; 
          in particular I use -top 15 and -bottom 20 and all is well.

  + [Wish] The banners need some work. They take up too many lines, too much
           toner to do the shading and are non-configurable. In my case, I 
           use only 'filep' on a standalone printer at home. I don't need my 
           name. I'd just as soon put the full file name (path included) where 
           the name is and chuck the bottom banner all together. IMHO, the 
           best looking banner is the one you get if you ps-print from XEMACS.

  + [Wish] Page x/y where y is total would be nice.

  + [Wish] More than two pages per sheet if possible.

* From: Volker Mertens <mertens@pavo.pe.ba.dlr.de>
  With mptool, the file selection dialog does not allow you to change the 
  current directory.

* Need to expose the -newpage command line option in one of the mptool options.

* From Lars Hecking <lhecking@nmrc.ucc.ie>
  Various suggestions for improving the automake/autoconf configuration:
  > Using lesstif instead of Motif.  I'd probably do it like this:

    --with-lesstif=DIR option

    if DIR is not set
    # this can be complicated; the variable involved with the "--with" option
    # can take the values yes, no, and DIR
      AC_CHECK_LIB Motif stuff
    else
      save CPPFLAGS and LDFLAGS
      CPPFLAGS= -IDIR/include $CPPFLAGS
      LDFLAGS= -LDIR/lib $LDFLAGS
      AC_CHECK_LIB Motif stuff
      if found
        keep CPPFLAGS LDFLAGS
      else
        reset to save values
        # or check a "canonical location" eg. /usr/lesstif/include
        # and /usr/lesstif/lib
      fi
    fi

    Alternatively, the "else" part above could only do
      CPPFLAGS= -IDIR/include $CPPFLAGS
      LDFLAGS= -LDIR/lib $LDFLAGS 
    with no checking at all, and leave it to the user to supply the
    correct directory.

    PATH does not go into it. If you want to find out where configure looks for
    X libs and includes, load configure into your favourite editor and grep for
    "# Check X11 before X11Rn".

    There are two ways of checking additional directories:

    - use CPPFLAGS and LDFLAGS on the command line, e.g.

   $ LDFLAGS=-L$HOME/blackwood/lesstif/lib ./configure ...

     or

    - use --with* options, e.g.

     --with-lesstif=DIR               use lesstif in DIR

    and in configure.in, you'd to something like

    saveLDFLAGS="$LDFLAGS"
    LDFLAGS="$LDFLAGS -L$lesstifdir/lib"
    AC_CHECK_LIB(Xm, ....)
    if test "$ac_cv_lib_Xm_XmuInternAtom" = no; then
       LDFLAGS="$saveLDFLAGS"
    fi

    (can't remember now whether case is preserved in the ac_cv_* variables)

    Similar for includes and CPPFLAGS.

    This is certainly clumsy-ish, but I don't thing there are better ways.
    Requests for generic --site-includes and --site-libs options (as found
    in XEmacs' configure) have repeatedly been rejected by autoconf developers
    and FSF.

  > It seems that the code itself does not yet take full advantage of the 
    definitions in config.h. Eg., configure tests for strdup(), defines 
    HAVE_STRDUP, but this define is used nowhere in the code.
