https://bugzilla.wikimedia.org/show_bug.cgi?id=72844

            Bug ID: 72844
           Summary: Fix nowiki heuristics for quotes
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: serializer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

See
https://fr.wikipedia.org/w/index.php?title=Univers_cin%C3%A9matographique_Marvel&curid=5796605&diff=108676945&oldid=108668984
for a particularly bad sequence of nowikis.

We should examine this and NicoV's suggestions below and see what is realistic
/ feasible. But, at least a couple of back-to-back nowikis should be avoidable.

NicoV says (on
https://en.wikipedia.org/w/index.php?title=Wikipedia:VisualEditor/Feedback&oldid=631914857#Unnecessary_succession_of_nowiki)

-----
    There are 4 sets of nowiki tags:

        The first one is a combination of an opening tag and a closing tag
<nowiki>...</nowiki>.
        The second one is a self-closing nowiki tag <nowiki/> (just after the
previous set) : it's totally useless, and brings nothing except more complexity
to the wikitext
        The third one is a self-closing nowiki tag <nowiki/> (just before the
next set) : same remark as above
        The fourth one is a combination of an opening tag and a closing tag
<nowiki>...</nowiki>.

    My report is that 2 sets are completely useless (first and second are
redundant; third and fourth are redundant).
    Of course, there's also the problem reported many times, a long time ago,
that if nowiki are added they should be added only around the part that needs
them not around a whole part of a sentence, but it was not the main issue I was
reporting. For this, as it already been said so many times, my preferred
methods (in order):

        Use {{'}} (it should be possible to configure VE on each wiki to know
if there's such a template, that's what I'm doing for example in WPCleaner's
configuration)
        Use '<nowiki/>'' (nowiki between the single quote and the italic
formatting)
        Use <nowiki>'</nowiki>'' (nowiki around the single quote)
-----

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to