Extension talk:InlineEditor/Prototypes

Sentences, lines or paragraphs
(Apologies if this is not the appropriate place for feedback, I couldn't see any suggested location.)

The prototypes look very impressive.

I would, though, like to ask about your choice of sentences as the proposed editing unit.

How will you define sentence extents when periods are often used within sentences to terminate abbreviations and for other purposes?

Would lines not be an easier unit to parse, and without greatly increasing confusion to new editors? (I use "line" here to mean wikitext between CR/LF control characters.) I believe that Mediawiki parses bold and italic formatting at line level. Lines also define the semantic units within lists, headings and wikitable markup (lines beginning with " ", " ", " ", " ", " " or " "; and wikitable lines beginning with " " or " ").

One disadvantage would be that an existing sentence can contain hidden CR/LF codes within its wikitext. But it could be argued that this is semantically incorrect, or at least undesirable, even though it is rendered as one unit.

More radically, paragraphs (i.e. wikitext between empty lines) would be intuitive editing units for ordinary prose, because readers are used to seeing text grouped within paragraphs (except in tables, templates, lists, headings and some tags). But this could be more complicated to code, given the inline- and block-level formatting that is currently parsed at line level (as described in the previous paragraph). Of course, in some cases paragraph-level editing would nearly replicate the existing section-level functionality.

— Richardguk 23:33, 10 August 2010 (UTC)