[
https://issues.apache.org/jira/browse/JSPWIKI-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18145238#comment-18145238
]
Arturo Bernal commented on JSPWIKI-1350:
----------------------------------------
I checked this on a running JSPWiki 3.0.1-SNAPSHOT (Tomcat 10.1), with a page
in Arabic and Hebrew, with and without dir="rtl" on the html element. Result:
the Haddock skin does not support right-to-left languages yet.
Measured in the browser:
* The templates set lang on the html element but never dir, and none of the
bundled languages is right-to-left. As is, the text is aligned to the left, the
list and the table run left to right, and the final punctuation lands at the
wrong end of the line.
* * With dir="rtl" forced by hand, the page content looks right (text, list,
table), and so does the plain text editor.
* * Even then, the sidebar stays on the left, and the visual editor
(MooEditable, the default one) keeps its content left to right.
Read from the code:
* The sidebar is placed with float: left and margin-left: -100%
(Template.Content.less), and the page container is floated right.
* * About 320 rules in the Haddock styles depend on the direction (floats,
margins, paddings), and the only RTL rule is a loose .rtl { direction: rtl; }
class.
* * The visual editor lives in an iframe, which has its own direction.
Not checked: CKEditor and TinyMCE, which receive the language from the
preferences, were not run.
So before adding Arabic, Hebrew, Persian or Urdu we need to set dir from the
language, make the sidebar and the styles direction-neutral, and give the
visual editor iframe a direction. That is more than a small fix, so I suggest
it as a separate task.
> Check whether the skin and the editors support right-to-left languages
> ----------------------------------------------------------------------
>
> Key: JSPWIKI-1350
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1350
> Project: JSPWiki
> Issue Type: Task
> Reporter: Arturo Bernal
> Priority: Major
>
> Part of JSPWIKI-1325.
> Arabic, Hebrew, Persian and Urdu, among others, are written from right to
> left. Before any of them is added as a language of JSPWiki, check whether the
> Haddock skin and the editors can show a page with a right-to-left direction
> (the direction of the text, the position of the menus and of the sidebar, the
> forms). I have not checked that.
> The result of the check decides whether those languages can be added or what
> has to be done first.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)