english icon indicating copy to clipboard operation
english copied to clipboard

Pretty Printing: Line wrapping

Open Folds opened this issue 10 years ago • 1 comments

Should the pretty printer automatically wrap lines to fit on screen, and start the continuation indented by two more spaces than the start of the line was indented?

Folds avatar Apr 03 '14 01:04 Folds

While it is true that line-wrapping is a normal thing in written English, we left it out of our Plain English text editor because certain kinds of files are best viewed without wrapping (our stored document files, for example, and even the Plain English Noodle which includes some very long hexadecimal literals like the Osmosian font and the "cluck" sound). It also turns out that in written English, lists of imperative commands are typically short and written one to a line, like so:

Take the kids to school. Pick up the dry cleaning. Meet the realtor at the old house.

In fact, such lists are often numbered, which we considered for looping:

  1. Get a page from the file; if there aren't any more, we're done.
  2. Print the page.
  3. Go to step 1.

Further research is needed in these areas.

GerryRzeppa avatar Apr 06 '14 02:04 GerryRzeppa