man-db 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. # priority=6 above the default 5 on the basis that viewing a man page
  2. # with man is above average sensible.
  3. #
  4. # Priority above /usr/lib/mime/packages/groff-base "nroff -mandoc"
  5. # since "man" has the advantage of running preprocessors such as tbl
  6. # specified in the man page and so gives better results. Eg on
  7. # /usr/share/man/man1/gtbl.1.gz (the tbl man page uses tbl). Locale
  8. # charset handling in man is probably better too.
  9. #
  10. # "man -X" is only priority=6 since the gxditview it runs is rather
  11. # basic and perhaps something more sophisticated could be higher. The
  12. # X entry is before the tty so the X is preferred under X. (The tty
  13. # one still works there, in its declared needsterminal.)
  14. #
  15. # "-X100" seems to make better output than the default -X 75 dpi.
  16. # Dunno if that's some font dodginess or matching the X server's
  17. # advertised screen size resolution or something.
  18. #
  19. # "test -e gxditview" because it's in the "groff" package which is
  20. # only a Suggests of man-db and so may not be available.
  21. application/x-troff-man; /usr/bin/man -X100 -l '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/gxditview; description=Man page; priority=6
  22. text/troff; /usr/bin/man -X100 -l '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/gxditview; description=Man page; priority=6
  23. application/x-troff-man; /usr/bin/man -l '%s'; needsterminal; description=Man page; priority=6
  24. text/troff; /usr/bin/man -l '%s'; needsterminal; description=Man page; priority=6
  25. # "-Tascii" gives backspace overstriking, so use "col -b" to undo
  26. # that. Piping to col also means "man" has a non-tty output and so
  27. # does not run its usual "more" etc pager, ensuring this entry is
  28. # non-interactive.
  29. #
  30. application/x-troff-man; /usr/bin/man -Tascii -l '%s' | col -b; copiousoutput; description=Man page; priority=2
  31. text/troff; /usr/bin/man -Tascii -l '%s' | col -b; copiousoutput; description=Man page; priority=2