http://www.perlmonks.org?node_id=946611


in reply to Re^4: RFC - shortform posting guidance for newcomers (meh)
in thread RFC - shortform posting guidance for newcomers

What you describe already exists (try posting something in plain text to see). Anything more will require another layer that delays/prevents a post from being submitted so - yes, it would need to be a /very/ good parser. A parser that would be much more work than would be worth the trouble considering SoPW doesn't seem to get more than a total of 25 questions per day.

The handful of weekly "evil markup violators" can easily be handled with a quick private /msg with suggestions to improve their post. If they ignore it (which does happen), ignore the post and move on. ;-)


"...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote

Replies are listed 'Best First'.
Re^6: RFC - shortform posting guidance for newcomers (meh)
by ww (Archbishop) on Jan 06, 2012 at 15:28 UTC
    Ignoring the bad markup isn't a complete solution. Janitors still are likely to be asked to fix it.

    As to posting plain text, I've never encountered difficulty including some... as in the case of the first (untagged) para in this node, nor in the case of a single sentence of narrative reply. (alternating paras with and without tags maintains readable rendering)

    Re the quality needed -- As my update, above, illustrates, coding a set of simple tests for the most egregious failures can be done even by he who frequently wears a dunce cap and without writing anything like a complete parser. If one wished to be more rigorous -- to correct ALL flaws -- then one of the html parsers should make an easy starting point.

       "Ignoring the bad markup isn't a complete solution. Janitors still are likely to be asked to fix it."

      I wasn't offering it as a complete solution. I don't feel there is a complete solution and, as I've said, don't believe it would be worth the work for essentially a handful of weekly problematic posts. As for Janitors, that's part of their purpose:

      From What do Janitors do?:


      What about crappily formatted postings?

      ...On the one hand, it could be left to the author to fix, and a /msg to the author is therefore the best course of action.

      On the other hand, a janitor may feel that cleaning up a poorly formatted node, as a service to those who have to read such a node, and as a way of illustrating how nodes ought to be formatted, is reasonable.

      And if the node's author is Anonymous Monk, it can't be fixed by the author, so if it's going to be fixed at all, it's got to be done by janitors. ...


       "As to posting plain text, I've never encountered difficulty including some... as in the case of the first (untagged) para in this node, nor in the case of a single sentence of narrative reply. (alternating paras with and without tags maintains readable rendering)"

      What I posted was all plain text and got the following under the Title form field:

      Use: <p> text here (a paragraph) </p> and: <code> code here </code> to format your post; it's "PerlMonks-approved HTML":

      That was trying to post from my phone in all plain text. What you posted above is readable so I don't see a problem. Unless it brakes the page, I don't think we want to start parsing for totally valid html. That's not even a goal covered in the Janitor's doc and, as it suggests there, a private /msg to the OP can help remedy the situation. If it is a recurring problem from a specific poster suggest they change their setting to show markup errors. This is functionality which already exists but doesn't block a post from being submitted.


      "...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote