[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Some linktrails with diacritics/accents not recognized on hrwiki
Open, Needs TriagePublicBUG REPORT

Description

[[André]]a works, [[André]]é does not, [[André]]tá works until the accented character, where "works" means that the whole tail is linked (blue).
It's the same with many accented characters (öâñçś...), but then čćđšž seem to work in wikilink tails.

This probably isn't that new, but is more visible with the new, lighter link colors.

PS
What about [[Batman]]'s and [[a]]''b''?
According to en:Help:Link, they once worked.

Event Timeline

The "link trail" varies by language. Which project/language are you referring to?

For example, in English it is

$linkTrail = '/^([a-z]+)(.*)$/sD';

This hasn't changed in 16 years, since rMW5b97a5bbf24f: (Bug 15035) Revert linkTrail to /^([a-z]+)(.*)$/sD, as it was before r36253..

It also varies for many other languages, for example, in French it is

$linkTrail = '/^([a-zàâçéèêîôûäëïöüùÇÉÂÊÎÔÛÄËÏÖÜÀÈÙ]+)(.*)$/sDu';

In German, it is

$linkTrail = '/^([äöüßa-z]+)(.*)$/sDu';

@Reedy, primarily Croatian (hrwiki) because a user complained to me that [[mišić]]ā isn't working (though [[mišić]]a is), but also English, as I mentioned above, because the two examples on the Help page do not look like they should (according to the descriptions there).

I see no reason why [[xxxx]]yyy shouldn't work for all European languages, where y is any (Latin, Cyrillic) letter - accented or not. Would \p{L} work now or is that still broken?

Where can this regex be set? The note on top of MessagesEn.php says "... You can make your customizations on the wiki. While logged in as a sysop user, go to Special:Allmessages ...", but I don't see any message of this kind there.

Aklapper renamed this task from Accented wikilink tail not linked to Some linktrails with diacritics/accents not recognized on hrwiki.Mar 29 2024, 7:43 AM

Change #1081429 had a related patch set uploaded (by Gerrit Patch Uploader; author: Ponor):

[mediawiki/core@master] Allow all accented characters in wikilink trails for Croatian

https://gerrit.wikimedia.org/r/1081429

I was reminded that this is still an issue.
I've tested the patch, found no issues.

As before, [[konj]], [[konj]]a, [[konj]]ušnica produce blue wikilinks; with this patch, [[konj]]ušnicā and [[konj]]ùšnica do as well.

Reedy added a project: I18n.

Would \p{L} work now or is that still broken?

Based on rMW5b97a5bbf24f43132d13897c5a423119d8114b31 this is in ancient PHP... So should be all good on that front.

Tagging LPL Technical Support

I would be interested to see if this is something we should roll out further

Change #1081429 merged by jenkins-bot:

[mediawiki/core@master] Allow all accented characters in wikilink trails for Croatian

https://gerrit.wikimedia.org/r/1081429