News for hackers. Stuff that matters.
Re:This is a regular text file. People will read it. Maybe. by weinzierl on Sunday June 23, 2013 @06:08AM (#5926911)
Nice, I like text files. Paragraph width is a little too wide for me, however.

I assume you made the line breaks manually, but it IMHO looks better if you let a decent algorithm do it.

Most Unix systems should have fmt, but par is better. If you are a vim user, just hit gqip inside of every paragraph.

The manual of par [1] has an example that shows the superiority of a dynamic programming algorithm (par, TeX) over a greedy algorithm (fmt, aprox. format manually).

[1] http://www.nicemice.net/par/par-doc.var

Re:This is a regular text file. People will read it. Maybe. by asdfaoeu on Sunday June 23, 2013 @07:14AM (#5927057)
> Nice, I like text files. Paragraph width is a little too wide for me, however.

This is why we need markup languages like HTML. Inevitably people will want different widths paragraphs due to different devices, preferences, etc. Just because some people use HTML badly doesn't mean we need to go back to text.

Re:This is a regular text file. People will read it. Maybe. by ams6110 on Sunday June 23, 2013 @11:24AM (#5927854)
Ideal paragraph width is not a function of device display size. A line of text should contain about 12 words, give or take. Long enough to not feel choppy but short enough to not feel like a "wall of text."

Deviate too much from this and readability suffers.

Edit: adequate whitespace in the margins is important too.

Re:This is a regular text file. People will read it. Maybe. by theon144 on Sunday June 23, 2013 @07:17AM (#5927064)
Because HTML is the only way you can have variable paragraph width?
Re:This is a regular text file. People will read it. Maybe. by pyre on Sunday June 23, 2013 @07:33AM (#5927110)
Of course not. You could write it in RTF.
Re:This is a regular text file. People will read it. Maybe. by DanBC on Sunday June 23, 2013 @08:32AM (#5927321)
You could write it in plain text and only have line breaks when fitting a new paragraph, leaving it up to the user's software to wrap the lines.
Re:This is a regular text file. People will read it. Maybe. by agargarg on Sunday June 23, 2013 @09:07AM (#5927425)
But it wouldn't handle indentation properly, unless you define a standard formatting convention similar to Markdown. For example, you need to handle bullet points. But what if a plain, non-indented text just happens to contain a star at the start of a line? This means headaches for text writers to avoid these edge cases, and wrong indentation when viewing legacy texts.

Also, all viewers would have to support it, which somewhat defeats the purpose of using plain text.

Re:This is a regular text file. People will read it. Maybe. by DanBC on Sunday June 23, 2013 @09:42AM (#5927519)
> But it wouldn't handle indentation properly

8 spaces is fine.

> For example, you need to handle bullet points.

Asterisks are fine.

> Also, all viewers would have to support it, which somewhat defeats the purpose of using plain text.

I think that you're over thinking what plain text is. I don't mean "plain text with some additions". I really do just mean plain text.

Re:This is a regular text file. People will read it. Maybe. by agargarg on Sunday June 23, 2013 @11:17AM (#5927830)
> 8 spaces is fine.

I'm not talking tab characters, I'm talking indentation of whole paragraphs with plain spaces, as seen in the article. Most existing viewers just wrap long lines so that the wrapped content is unindented: this makes any indentation hard to notice and mostly useless. For your proposition to be viable, viewing software has to detect indentation and keep that indentation in wrapped lines.

> Asterisks are fine.

Ok, but usually you want to indent the wrapped contents by 2 columns otherwise asterisks become hard to notice. This is only possible with special magic in the viewer.

Re:This is a regular text file. People will read it. Maybe. by agargarg on Sunday June 23, 2013 @11:43AM (#5927945)

  --- BEGIN MESSAGE ---
  --- BEGIN BLOCK QUOTE ---
  --- BEGIN BLOCK QUOTE ---
  I'm not talking tab characters, I'm talking indentation of whole paragraphs
  with plain spaces, as seen in the article.
  --- END BLOCK QUOTE ---
  Ah, okay. You're right, indenting an entire paragraph is hard.
  --- BEGIN BLOCK QUOTE ---
  This is the kind of thing they'd do on Usenet.
  --- END BLOCK QUOTE ---
  --- END BLOCK QUOTE ---
  All you get is a very verbose markup language :-)
  --- END MESSAGE ---
Re:This is a regular text file. People will read it. Maybe. by DanBC on Sunday June 23, 2013 @11:23AM (#5927848)
> I'm not talking tab characters, I'm talking indentation of whole paragraphs with plain spaces, as seen in the article.

Ah, okay. You're right, indenting an entire paragraph is hard.

--- BEGIN BLOCK QUOTE ---

This is the kind of thing they'd do on Usenet.

---END BLOCK QUOTE ---

Re:This is a regular text file. People will read it. Maybe. by angersock on Sunday June 23, 2013 @10:24AM (#5927648)
Sometimes there is no replacement for just a big honking array of ASCII.
Re:This is a regular text file. People will read it. Maybe. by kylec on Sunday June 23, 2013 @01:08PM (#5928327)
This is the best solution, because you never know how large the text will be when rendered by the user's software. For example, this is how it rendered on my iPad:

http://cl.ly/Pp7I

It looks terrible, and I didn't read it, effectively falsifying the article.

Re:This is a regular text file. People will read it. Maybe. by Tloewald on Sunday June 23, 2013 @08:05AM (#5927220)
People who want to modify paragraph widths and mess with the designer's vision are why we need PDF.
Re:This is a regular text file. People will read it. Maybe. by vanderZwan on Sunday June 23, 2013 @08:45AM (#5927365)
As a European designer who hates the fact that so many PDFs are in US letter format: fuck designers.
Re:This is a regular text file. People will read it. Maybe. by Tloewald on Sunday June 23, 2013 @08:59AM (#5927401)
You Europeans have things too easy with your metric paper sizes and sales tax included in displayed prices and standardized road signage and drinkable beer and functional healthcare systems. We'll stick with PDFs, and fluid ounces, and trying to calculate 18% of pretax dinner tabs thanks. Excuse me while I go fight with my health insurance company over my last doctor bill.
Re:This is a regular text file. People will read it. Maybe. by lazerwalker on Sunday June 23, 2013 @11:31AM (#5927889)
If you're implying that the US doesn't produce drinkable beer, I'd humbly suggest you're going to the wrong bars :).
Re:This is a regular text file. People will read it. Maybe. by Tloewald on Sunday June 23, 2013 @01:19PM (#5928389)
It's true that the beer situation in the US is just fine these days.
Re:This is a regular text file. People will read it. Maybe. by yarianluis on Sunday June 23, 2013 @06:58PM (#5929924)
I'd say it's more than fine. I just spent three weeks in Europe and I was underwhelmed by the beer everywhere except Munich, Berlin, and Copenhagen (Mikeller was great). Foreigners seem to think of American beer as PBR, Bud Light, Miller, etc... and they have a good reason to--it's what most Americans drink.

But the strong microbrew renaissance going on right now is producing some of my favorite beers. Beers with the same depth and complexity as the finest of wines--he said, opinionatedly.

Now, I've learned that this experimental attitude towards beer is highly American. I don't think I've seen anywhere else in the world, except maybe Belgium, that is quite as crazy and experimental with what they put in their beers. After all, who in their right minds would like sour beers?

If you think the beer situation in the US is poor try out some Russian River, Boulevard, or Elysian brews and come back to me.

Re:This is a regular text file. People will read it. Maybe. by vanderZwan on Monday June 24, 2013 @07:07AM (#5932134)
As a Dutch man, I think our beer is highly overrated. Belgian and German beers are great though.
Re:This is a regular text file. People will read it. Maybe. by Tloewald on Sunday June 23, 2013 @01:18PM (#5928378)
Do i really need to explicitly flag my remark as sarcastic? Apparently so.
Re:This is a regular text file. People will read it. Maybe. by keithpeter on Sunday June 23, 2013 @06:12AM (#5926921)
Or just use

     nano -W --fill=65 filename.txt
to start with.

I like the playfulness of these pages (the original and this parody) and I hope both authors achieve their aims.

Re:This is a regular text file. People will read it. Maybe. by tasuki on Sunday June 23, 2013 @07:13AM (#5927053)
The worst thing isn't that it's too wide but that the line length is inconsistent.
Re:This is a regular text file. People will read it. Maybe. by FiloSottile on Sunday June 23, 2013 @08:13AM (#5927256)
Call me rough, but I still wrap my papers with fold.
Re:This is a regular text file. People will read it. Maybe. by copiga on Sunday June 23, 2013 @07:37AM (#5927121)
M-x autofill-mode
Re:This is a regular text file. People will read it. Maybe. by residualmind on Sunday June 23, 2013 @07:17AM (#5927063)
gggqG - wraps the entire document
Re:This is a regular text file. People will read it. Maybe. by weinzierl on Sunday June 23, 2013 @07:50AM (#5927165)
Good call, but it does violence to the ASCII creature:-(

That's why I suggested gqip on every paragraph, but I'm sure there are more efficient ways.

Re:This is a regular text file. People will read it. Maybe. by ajanuary on Sunday June 23, 2013 @08:02AM (#5927210)
Could you place the cursor just above the ASCII art and then wrap from there to the top of the document?
Re:This is a regular text file. People will read it. Maybe. by residualmind on Sunday June 23, 2013 @08:38AM (#5927338)
For that, you could place the cursor above the ASCII art; press (ma) to set marker 'a'; (gg) to go to the top; (gq`a) to wrap until marker a. ;)
Re:This is a regular text file. People will read it. Maybe. by dredmorbius on Sunday June 23, 2013 @09:03AM (#5927412)
gqG also does violence to some plain-text formatting, such as numbered lists or other short sections in which a specified line length or presentation is preferred.

Long lines and wrapping within the text viewer is probably your best bet.

Re:This is a regular text file. People will read it. Maybe. by residualmind on Sunday June 23, 2013 @08:29AM (#5927311)
Ah, I do see your point!
Re:This is a regular text file. People will read it. Maybe. by pooriaazimi on Sunday June 23, 2013 @07:21AM (#5927078)
Why three g's at the beginning?
Re:This is a regular text file. People will read it. Maybe. by residualmind on Sunday June 23, 2013 @07:27AM (#5927093)
(g) invokes extra commands. here two are used: (gg) places the cursor at the top. (gq) wraps the text until (G) the end of the document.