Last modified: 2014-07-07 10:09:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54240, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52240 - Implement smarter wikilink serialization
Implement smarter wikilink serialization
Status: NEW
Product: Parsoid
Classification: Unclassified
serializer (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
: 63199 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-29 20:05 UTC by Maggie Dennis
Modified: 2014-07-07 10:09 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maggie Dennis 2013-07-29 20:05:22 UTC
An editor attempted to change [[red]]ish to correct the spelling, but instead of producing [[red]]dish, this resulted in [[red|redd]]ish.

I have it on very good authority that this is poor syntax and am reporting it accordingly. :)
Comment 1 James Forrester 2013-07-30 16:10:51 UTC
Yeah, Parsoid's serialiser should pick one (either you do [[Foo]]bar or [[Foo|Foobar]] but not [[Foo|Foob]]ar.
Comment 2 ssastry 2013-07-30 16:13:58 UTC
For edited content, we should normalize wikilinks to accepted canonical forms.
Comment 3 Marek Blahuš 2013-11-07 21:59:10 UTC
I suggest that links tails should remain, either whenever possible or at least if the original link already had a tail.

In flective languages that heavily add affixes with no major modifications to the word root, canonical forms often bloat the link syntax very much.

Even in English you can get [[transcontinental railroad]]s which would become [[transcontinental railroad|transcontinental railroads]]. It is my impression that editors who edit in wikitext prefer to avoid such constructions, unlike most software.

I am currently working on software that converts wikitext to HTML, modifies it to some extent (translates the text nodes and some attributes such as link targets from Czech to Slovak) and then converts the result back to wikitext. If canonical forms are going to be forced, I am afraid of loosing the possibility to preserve link tails from the source article in the resulting translation (Czech and Slovak are so close to each other that often translation consists only of slight modification of affixes).
Comment 4 James Forrester 2014-04-14 20:21:14 UTC
*** Bug 63199 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links