Talk:Word wrap

From Rosetta Code
Revision as of 17:29, 1 April 2012 by Sonia (talk | contribs) (→‎more options: aways wanting more)

Run BASIC

Hmm. I definitely think the task requirements should be changed, just not sure how yet. Not sure I want to disallow external programs, but a solution doesn't meet my intent if the wrapped text is never returned to the main program. —Sonia 20:56, 28 March 2012 (UTC)

After sleeping on it, maybe it's okay. I did say simple, and the solution does after all, show the wrapped text pasted back into RC as output. —Sonia 00:33, 30 March 2012 (UTC)

more options

I think it would be nice to add some options:

--justification-- (aligning the left AND right margins.
--left ragged edge-- as if the text is meant to be read from right to left (also called right justification).
--sentences-- add extra blanks for end-of-sentences.
--centering-- centered justification.
--margins-- support the use of margins.
--indentation-- also, support negative indentations.
--paragraphs-- whenever a blank line, or (say), when the ¶ (paragraph) symbol is detected.
--columnar output-- support multiple (newspaper) columns (with/without a seperater border). -- Gerard Schildberger 03:52, 31 March 2012 (UTC)
Thanks for the ideas! Some of these I had thought of, but I wanted to leave the basic task as simple as possible, letting people either code a very simple algorithm or show an equivalent even simpler method. Your ideas might make interesting extra credit or even separate tasks. Of course, It's a wiki...you can make any changes you feel strongly about; I just liked the least squares metric described in the WP article and though an alternative algorithm would make interesting extra credit and that adding that would be plenty for a single task. —Sonia 17:29, 1 April 2012 (UTC)