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)


 * Maybe the mailing list is a better place for this. But this is an excellent suggestion indeed, the best I've got so far I think. The Sentence Boundary Disambiguation is quite hard and still a topic of research. Lines might be much better, but do keep in mind that a lot of articles (at least as far as I could see), don't split paragraphs into lines. Usually a paragraph is just one long line.


 * Paragraphs are unacceptable I think, because there is too much scary wikitext going on within one paragraph, i.e. references and images. Maybe a paragraph option would be nice for advanced users, but I feel that the sentence/line concept should be there for novice users.


 * JanPaul123