/contrib/groff/src/roff/troff/TODO

https://bitbucket.org/freebsd/freebsd-head/ · #! · 131 lines · 88 code · 43 blank · 0 comment · 0 complexity · 5b3b54a3f4b4a12c56ca7346889dfd51 MD5 · raw file

  1. A line prefix request to make e.g. French quotation possible:
  2. He said: >> blablablabla
  3. >> blablabla blabla bla
  4. >> blabla blabla bla bla
  5. >> bla bla bla blablabla
  6. >> blabla. <<
  7. Give a more helpful error message when the indent is set to a value
  8. greater than the line-length.
  9. Tracing. This is a pain to implement because requests are responsible
  10. for reading their own arguments.
  11. Possibly implement -s option (stop every N pages). This functionality
  12. would be more appropriate in a postprocessor.
  13. Line breaking should be smarter. In particular, it should be possible
  14. to shrink spaces. Also avoid having a line that's been shrunk a lot
  15. next to a line that's been stretched a lot. The difficulty is to
  16. design a mechanism that allows the user complete control over the
  17. decision of where to break the line.
  18. Provide a mechanism to control the shape of the rag in non-justified
  19. text.
  20. Add a discretionary break escape sequence. \='...'...'...' like TeX.
  21. Think about kerning between characters and spaces. (Need to implement
  22. get_breakpoints and split methods for kern_pair_node class.)
  23. In troff, if .L > 1 when a diversion is reread in no-fill mode, then
  24. extra line-spacing is added on. Groff at the moment treats line-spacing
  25. like vertical spacing and doesn't do this.
  26. Suppose \(ch comes from a special font S, and that the current font is
  27. R. Suppose that R contains a hyphen character and that S does not.
  28. Suppose that the current font is R. Suppose that \(ch is in a word
  29. and has a non-zero hyphen-type. Then we ought to be able to hyphenate,
  30. but we won't be able to because we will look for the hyphen only in
  31. font S and not in font R.
  32. Perhaps the current input level should be accessible in a number register.
  33. Should \w deal with a newline like \X?
  34. Have another look at uses of token::delimiter. Perhaps we need to
  35. distinguish the case where we want to see if a token could start a
  36. number, from the case where we want to see if it could occur somewhere
  37. in a number expression.
  38. Provide a facility like copy thru in pic.
  39. Fancier implementation of font families which doesn't group fonts into
  40. families purely on the basis of their names.
  41. In the DESC file make the number of fonts optional if they are all on
  42. one line.
  43. Number register to give the diversion level.
  44. Time various alternative implementations of scale (both in font.c and
  45. number.c). On a sparc it's faster to always do it in floating point.
  46. Devise a more compact representation for the hyphenation patterns trie.
  47. Have a per-environment parameter to increase letter-spacing.
  48. Number register to return character height.
  49. Number register to return character slant.
  50. Request to set character height.
  51. Request to set character slant.
  52. Provide some way to upcase or downcase strings.
  53. Support non-uniformly scalable fonts. Perhaps associate a suffix with
  54. a particular range of sizes. eg
  55. sizesuffix .display 14-512
  56. Then is you ask for R at pointsize 16, groff will first look for
  57. R.display and then R. Probably necessary to be able to specify a
  58. separate unitwidth for each sizesuffix (eg. for X).
  59. Make it possible to suppress hyphenation on a word-by-word basis.
  60. (Perhaps store hyphenation flags in tfont.)
  61. Possibly allow multiple simultaneous input line traps.
  62. Unpaddable, breakable space escape sequence.
  63. Support hanging punctuation.
  64. In justified text, if the last line of a paragraph is only a little
  65. bit short it might be desirable to justify the line. Allow the user
  66. control over this.
  67. The pm request could print where the macro was defined. Also could
  68. optionally print the contents of a macro.
  69. Provide some way to round numbers to multiples of the current
  70. horizontal or vertical resolution.
  71. Better string-processing support (search).
  72. Generalized ligatures.
  73. Provide some way for a macro to tell whether it was called with `'' or
  74. `.'. This would be useful for implementing a tracing macro package.
  75. Request to remove an environment. (Maintain a count of the references
  76. to the environment from the environment table, environment dictionary
  77. or environment stack.)
  78. Perhaps in the nr request a leading `-' should only be recognized as a
  79. decrement when it's at the same input level as the request.
  80. Don't ever change a charinfo. Create new variants instead and chain
  81. them together.
  82. Unix troff appears to read the first character of a request name in
  83. copy mode. Should we do the same?
  84. Number register giving name of end macro.
  85. More thorough range checking.
  86. Provide syntax for octal and hexadecimal numeric constants. Perhaps
  87. o#100 and x#7f as per Scheme. Or perhaps PostScript 16#7f. Ambiguity
  88. between whether `c' is treated as digit or scaling indicator.