Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata, Wikidata Lexicographical data, 
RTL.
Restricted Application added a project: I18n.

TASK DESCRIPTION
  I just found @Jakob_WMDE’s 
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseLexeme/+/641762 
on Gerrit, which fixes the language code we add to lemmas (from MediaWiki to 
HTML); this made me notice we might be missing other attributes too.
  
  An example can be seen in this permalinked statement 
<https://www.wikidata.org/w/index.php?oldid=1564841413#P5191>, linking to 
قَلَمٌ (L203) <https://www.wikidata.org/wiki/Lexeme:L203>. Currently, the link 
has the following HTML:
  
    <span lang="ar">قَلَمٌ</span>
  
  And looks like this:
  
  F34933127: Screen Shot 2022-01-27 at 16.55.42.png 
<https://phabricator.wikimedia.org/F34933127>
  
  I thought that it should probably have a `dir=` attribute as well. But when I 
add that:
  
    <span dir="rtl" lang="ar">قَلَمٌ</span>
  
  It suddenly looks like this:
  
  F34933129: Screen Shot 2022-01-27 at 16.56.32.png 
<https://phabricator.wikimedia.org/F34933129>
  
  With `dir="ltr"` it looks identical; the default, `dir="auto"`, somehow has a 
different effect from both `dir="ltr"` and `dir="rtl"`.
  
  Another part of WikibaseLexeme (`LexemeTermFormatter`) also adds a CSS class:
  
    <span dir="rtl" class="mw-content-rtl" lang="ar">قَلَمٌ</span>
  
  However, that doesn’t change the appearance either:
  
  F34933137: Screen Shot 2022-01-27 at 16.58.05.png 
<https://phabricator.wikimedia.org/F34933137>
  
  I’m a bit confused by this. Is it correct that the value as a whole is 
left-aligned inside the box? Should we add the `dir=` attribute?

TASK DETAIL
  https://phabricator.wikimedia.org/T300261

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Jakob_WMDE, Prufkick, Invadibot, maantietaja, 
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, 
Muhammed4IT, LawExplorer, _jensen, rosalieper, Bodhisattwa, Scott_WUaS, Srdjan, 
MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Huji, Amire80, 
Gryllida, Shizhao, Arrbee, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to