Closed Bug 705063 Opened 13 years ago Closed 10 years ago

[RTL] sumo should have RTL support in forum

Categories

(support.mozilla.org :: Localization, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: tomer, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: u=user c=questions p= s=2013.backlog [mentor=r1cky])

The current implementation of SUMO theme make it difficult to read posts on the forum as everything is right aligned. Please see the URL field for a quick demonstration; note that although the content is in plain English, the display is right-aligned because of the usage of RTL theme.



I propose the following changes: 

* Code segments (pre) should always be LTR.
* For each paragraph, check if contain RTL text, and if so, add dir=rtl to that paragraph, else add dir=ltr (see below for an algorithm). 


My preferred algorithm for determining if a paragraph contain an RTL text is to check if the first letter is in one of the ranges of RTL characters. If it is, than the paragraph is RTL. If not, check if the character is the range of character without heavy directionality set (for example, numbers and punctuation characters), and run the test again on the next character if it is such. After a given number of tries, it is okay to give up and not set the directionality value or set it to the default value.
r1cky, is this something useful to pursue?
Flags: needinfo?(rrosario)
Yeah, this bug is still valid. Setting myself as mentor.
Flags: needinfo?(rrosario)
Whiteboard: u=user c=questions p= s=2013.backlog [mentor=r1cky]
This doesn't seem valid. English forums are not meant to be consumed with a different language UI.

Marking it as invalid.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.