Last modified: 2014-11-19 10:24:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11127 - Add language independent linktrail for Wiktionary
Add language independent linktrail for Wiktionary
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low minor with 4 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 21326 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-30 21:18 UTC by Daniel U. Thibault
Modified: 2014-11-19 10:24 UTC (History)
9 users (show)

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


Attachments

Description Daniel U. Thibault 2007-08-30 21:18:11 UTC
This bug is similar to bug 468, although a little different. The intended behaviour of links, it seems, is that if only part of a word is linked, the rendering of the link expands to include the entire word. However, when diacriticals are present, it seems to stop the expansion, resulting in a partially coloured word link. For example, at http://fr.wiktionary.org/wiki/hal%C3%B3n, we have the word "prùhalón" with a link to "prú-" underneath the "prù" part, but the blue link covers the "prùhal" part, stopping short of the "ó".
Comment 1 Rob Church 2007-08-30 21:22:06 UTC
French link trail needs checking.
Comment 2 Raimond Spekking 2007-08-30 21:34:29 UTC
actual linktrail is

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

As far as I know the character ó is no usual part of the French language.

I would suggest to change the link syntax for words with unusual characters from

[[prù-|prù]]halón

to

[[prù-|prùhalón]]
Comment 3 Daniel U. Thibault 2007-09-01 21:46:45 UTC
Wouldn't it be easier to change the $linktrail global variable? This sort of problem is unlikely to occur on the French wikipedia, say, but is bound to recur on the Wiktionary, which aims to document words from all languages.
Comment 4 Raimond Spekking 2007-12-07 09:02:43 UTC
The French linktrail is good. It's common usage that linktrails contains the chararcters of its language only.

But I see the general issue for Wiktionary.

I changed the summary to reflect the need of a language independent linktrail for projecte liks Wiktionary. Or a global variable to indicate that all characters (with exceptions like space) are part of a link.
Comment 5 Brion Vibber 2007-12-07 20:54:42 UTC
It may be best to just have a generic linktrail instead of a per-language setting.

Note however that some languages don't use whitespace to separate words, so:

* Some "letter" character ranges should be excluded as well as whitespace, punctuation, etc (eg CJK and Thai text)

* Some languages may need the option to suppress linktrail usage altogether, to avoid breaking eg Latin names mixed in with text.
Comment 6 AlefZet 2008-06-14 14:12:15 UTC
Fixed with r36253.
Comment 7 Daniel U. Thibault 2009-02-13 13:30:44 UTC
Ummm, hate to rain on the parade, but the problem is not fixed.  See http://fr.wiktionary.org/wiki/gam%C3%A1lyal where the a acute (á) stops the link from fully expanding...
Comment 8 Niklas Laxström 2009-04-07 08:33:03 UTC
Does anybody have an idea how such linktrail would look like?
Comment 9 Andrew Dunbar 2009-06-07 01:41:10 UTC
For informational purposes, the modern languages which don't use whitespace between words are Chinese, Japanese, Khmer, and Thai. Korean does use whitespace but uses CJK characters only rarely these days.
Comment 10 Beau 2009-11-08 15:01:10 UTC
*** Bug 21326 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