Description
Related Objects
Event Timeline
Please always provide 1) clear steps to reproduce, 2) what you expected as text, 3) what actually happens as text.
See and follow https://mediawiki.org/wiki/How_to_report_a_bug
Thanks.
@BukhariSaeed: Please see my previous comment: Please post what you expected as text, and please post what actually happens as text. Please provide full links, so someone else can try to reproduce the problem. So far it has not even been mentioned which language this is about.
For future reference, please follow the structure on https://mediawiki.org/wiki/How_to_report_a_bug
So if I interpret this correctly:
The problem can be seen on https://ur.m.wikipedia.org/wiki/یسوع_مسیح
The description text we are talking about is مسیحیت کی مرکزی شخصیت
The text is coming from the Description entry for the Language Urdu on https://www.wikidata.org/wiki/Q302
There, using Firefox 57 on Fedora Linux, the first character looks correctly connected to me.
@BukhariSaeed: Which browser, which browser version, and which operating system did you use to test?
If you go to https://www.wikidata.org/wiki/Q302 , is the first character connected correctly for you?
For the records, as this might be related: https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector#Overriding_default_fonts
I understand the bug, I can reproduce it on all browsers with MobileFrontend view, and I know why does this happen: because the tagline class has ::first-letter { text-transform: capitalize; }.
Here's a simple fiddle that demonstrates it:
https://jsfiddle.net/amire80/0uzq39ja/
This causes the first letter to have different styling from the rest of the word, and unfortunately both Firefox and Chrome break the rendering.
Capitalization only has useful effect in these alphabets: Latin, Cyrillic, Greek, Armenian, and Cherokee (and the rarer Coptic, Adlam, Warang Citi, and Osage, which are not used much in MediaWiki). In all other writing systems it either has no effect, or it is harmful, as it is the case with Arabic.
This capitalize effect should be either removed or limited to the alphabets above. Unfortunately there are many languages that are written in the Latin and Cyrillic alphabets, so it won't be easy (that's why I suggested to T59045: Add CSS classes based on writing system code a long time ago).
I'd be bold and just remove it completely, so that the description from Wikidata would be shown as-is. But if any particular language communities are actually interested in it, perhaps it can be added only to them.
I'll also try to report this to W3C and the major browsers' bug trackers. Ideally, browsers should just do nothing for languages in which capitalization is irrelevant, and it should probably be part of the standard, although it's quite possible that the standards people discussed it already...
I attempted to report this upstream:
- CSS: https://github.com/w3c/csswg-drafts/issues/2135
- Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1427032
- Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=797571
However, this is still a MediaWiki bug and not an upstream bug. The right thing to do is definitely not to apply capitalize to text in languages that don't have capitalization, and perhaps not to apply it to text that was not supposed to be capitalized. Resolving this issue upstream is only something that should prevent rendering bugs on web pages that apply the rules incorrectly.
Let's just abandon the capitalizing: T131013: Don't capitalize Wikidata descriptions when viewing article.