/contrib/groff/src/preproc/grn/README

https://bitbucket.org/freebsd/freebsd-head/ · #! · 68 lines · 45 code · 23 blank · 0 comment · 0 complexity · 3b1fdb2941bb3b6f03fec57c7db08ecb MD5 · raw file

  1. This is grn from the Berkeley ditroff distribution. It has no
  2. AT&T code and is therefore freely distributable.
  3. Tim Theisen <tim@cs.wisc.edu>
  4. =====================================================================
  5. This is the modified code for the groff. It uses the different
  6. devxxx format that is ascii rather than binary as in the
  7. Berkeley distribution. Since groff does not have the \Ds option
  8. for line drawing (dotted, dashed, etc.), this version includes
  9. the routines for drawing curves and arcs, so it does not use the
  10. \D~, \Da nor \Dc. Although also included in here is a routine
  11. for drawing the optional gremlin style curves, it is not used
  12. because the gremlin editor uses the conventional spline
  13. algorithm. The Berkeley grn has the choice of different
  14. stipples. Here, only different shades of gray will be painted
  15. depending on the gremlin file. It is possible to upgrade this at
  16. a later time. (Daniel Senderowicz <daniel@synchrods.com> 12/28/99)
  17. =====================================================================
  18. Gremlin produces three types of curves: B-Splines, interpolated
  19. curves and Bezier. As the original Berkeley grn, now groff grn
  20. will honor B-Splines and interpolated curves. Bezier curves will
  21. be printed as B-Splines. (Daniel Senderowicz <daniel@synchrods.com>
  22. 10/04/02)
  23. =====================================================================
  24. It has been further modified by Werner Lemberg <wl@gnu.org> to fit
  25. better into the groff package.
  26. . Replaced Makefile with Makefile.sub.
  27. . Removed dev.h since it is unused.
  28. . Renamed grn.1 to grn.man; this man page has been extensively
  29. revised.
  30. . Used error() and fatal() from libgroff for all source files.
  31. . Renamed *.c to *.cpp; updates as needed for C++ (prototypes, proper
  32. casts, standard header files etc). Heavy formatting.
  33. . main.cpp:
  34. Using groff's default values instead of DEVDIR, DEFAULTDEV, PRINTER,
  35. TYPESETTER, and GREMLIB.
  36. `res' is now an integer.
  37. Added `-C' command flag (for compatibility mode) as with other
  38. preprocessors.
  39. Added `-F' and `-v' option (similar to troff).
  40. Renamed `-L' option to `-M' for consistence.
  41. Removed `-P' option.
  42. Using font::load_desc() for scanning DESC files.
  43. Removed SYSV-specific code.
  44. Using macro_path.open_file() for getting gremlin graphic files.
  45. Added usage().