View source for Mixed directionality of text

Priority: low, but essential

{{toc numerate=1}}

Supporting RTL languages

===Content versus user navigation===
CSS: ##[dir=rtl]## (custom & browser defaults)
HTML: ##dir="rtl"##

additional issues
  * included pages
    * %%(hl html)<section class="include-page" dir="rtl" lang="fa">%% 
  * language specifics

#|
*| Area | Mixed directionality | Notes |*
|| Installer | no |  ||
|| Wiki | yes |  ||
|| Admin panel | no | exception: included actions ||
|#

====User lang dir====
  * handlers
  * theme
    * header
    * footer

====Mixed directionality of text usage====
  * actions
    * users
    * pageindex
  * WikiEdit
  * handlers (as part of view handler)
    * _comments
    * _files

===Bidirectional text===
##<bdi>##: The Bidirectional Isolate element

Affected
  * breadcrumbs
  * lists

===Language specifics===

%%(hl css)
ol:lang(fa) li {
  list-style-type: persian;
}
ol:lang(hi) li  {
  list-style-type: devanagari;
}
%% 

===Tests===
((/Doc/فارسی فارسی)) - test ##rtl## conent flow

  * Henrietta Boffin - 1st place
  * Jerry Cruncher - 2nd place

  * اَلأَعْشَى - 1st place
  * Jerry Cruncher - 2nd place

{{include page="!/Tests"}}

===Resources===
  * https://en.wikipedia.org/wiki/Bidirectional_text
  * ((https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi <bdi>: The Bidirectional Isolate element))
  * ((https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir global dir attribute))
  * ((https://developer.mozilla.org/en-US/docs/Web/CSS/:dir CSS :dir() pseudo-class))
    * https://caniuse.com/css-dir-pseudo
  * ((https://css-tricks.com/almanac/selectors/d/dir/ :dir(rtl) vs. [dir=rtl]))

Main languages that use right to left scripts:
  1. **Arabic** (ar)
  1. Aramaic
  1. Azeri
  1. Dhivehi/Maldivian
  1. Hebrew
  1. Kurdish (Sorani)
  1. **Persian/Farsi** (fa)
  1. **Urdu** (ur)