Support for Mixed Text Direction
The discussion revolves around the feature to support mixed text direction (RTL and LTR) in Discourse. GiorgosK inquired about the recommended way to handle RTL mixed with LTR languages, and simon replied that a site setting for supporting mixed text direction is being developed.
Current Solution
Currently, users can wrap RTL content in <div dir="rtl"></div> tags to display correctly when a LTR locale is being used. However, GiorgosK encountered an issue where the dir attribute is stripped when adding it to a paragraph tag.
Upcoming Feature
simon mentioned that the feature to support mixed text direction is being developed and will be available soon. The feature will automatically apply the correct direction to text in the preview window, cooked posts, titles, etc.
Direction Button
The direction button in the composer was discussed, with parisa suggesting that it might be confusing for users. simon explained that the button is intended to make it easier to type in RTL languages.
Performance Issue
parisa reported a performance drop in long topics containing mixed text direction. simon is investigating the issue, and Mittineague suggested that the bottleneck might be in the browser’s interpretation and rendering of the directional instructions.
Enabling the Feature
To enable the feature, users need to select the support_mixed_text_direction setting. NightMachinary asked about the necessary settings, and Benjamin_D provided the correct settings and wrapping text with the dir attribute.
Additional Discussion
Other topics discussed include the use of dir="auto" and its compatibility with Internet Explorer, as well as the possibility of using a contenteditable div instead of a textarea in the composer.