Page MenuHomePhabricator

Table of contents problem on right to left languages
Closed, DeclinedPublic

Description

Author: nzmoihue

Description:
Term of content number have problem on Right To Left language.

something same this:

a

b

c

a

b

c

must become this on toc:

Contents [hide]
1 a
2 b
2.1 c
3 a
4 b
4.1 c

but on RTL wiki, we are seeing other thing! something same:
1 a
2 b
1.2 c
3 a
4 b
1.4 c

(numbers are inverted)

for fix this problem, we can easily put

.tocnumber {
unicode-bidi:bidi-override;
direction:rtl;
}

on main-rtl.css that can fix this problem on rtl languages.

thanks.

thanks.


Version: unspecified
Severity: enhancement
URL: http://ar.wikipedia.org/wiki/%D9%85%D8%B3%D8%AA%D8%AE%D8%AF%D9%85:Ebraminio/TOC

Details

Reference
bz25061

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:12 PM
bzimport set Reference to bz25061.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Sep 5 2010, 12:54 AM

nzmoihue wrote:

arabic wiki TOC problem

Attached:

bugs wrote:

(In reply to comment #0)

but on RTL wiki, we are seeing other thing! something same:
1 a
2 b
1.2 c
3 a
4 b
1.4 c

Hmm? In the screenshot you gave, I see

a 1
b 2

c 2.1

a 3
b 4

c 4.1

which is, afaik, the intended look.

nzmoihue wrote:

a 1
b 2

c 1.2

a 3
b 4

c 1.4

is true.

bugs wrote:

Hrm, that's not what I would think it would from my knowledge of the way numbers are handled in right-to-left languages, but I don't know *that* much about RTL languages. I'm CC'ing a few other RTL users to see if they can confirm that this is wrong. (Mardetanha/Huji from fawiki and Mido/Meno25 from arwiki)

nzmoihue wrote:

okay, i will tell mardetanha and huji,
also i must say that my css is not good solution for this problem (because it will convert 23.1 to 1.32 that is not true(we want 1.23!).)

shipmaster wrote:

Ebraminio,

The numbers display correctly in both the screenshot you provided and on my machine. I don't see the problem?

nzmoihue wrote:

   a 1
   b 2
c 2.1
d 2.2
e 2.3
f 2.4
   a 3
   b 4
c 4.1
d 4.2
e 4.3
f 4.4

is correct?

correct one:

   a 1
   b 2
c 1.2
d 2.2
e 3.2
f 4.2
   a 3
   b 4
c 1.4
d 2.4
e 3.4
f 4.4
IAlex added a comment.Sep 5 2010, 10:55 AM
  • Bug 25060 has been marked as a duplicate of this bug. ***
demon added a comment.Sep 8 2010, 3:33 PM

Summary tweak.

demon added a comment.Sep 8 2010, 3:33 PM

Summary tweak.

Huji added a comment.Oct 26 2010, 7:26 PM

Do we still have this problem?

shipmaster wrote:

Several ar.wp (me included) users have failed to see what exactly the problem is. The behavior the user is asking for is inconsistent (he wants Arabic numerals to be formed in RTL including the decimal designator, which is not correct, Hindu numerals can be used as so but not Arabic ones, they are universally treated as LTR even in Arabic).I think this is a non-issue.

See: http://en.wikipedia.org/wiki/Hindu-Arabic_numeral_system

Huji added a comment.Oct 27 2010, 2:22 PM

I thought the case was just the opposite! Somebody was complaining that Arabic numerals are incorrectly treated as RTL in RTL wikis, while they should always be treated as LTR.

Anyways, do we have a test case of this bug right now?

nzmoihue wrote:

well, i have not insistence about this, that was a problem that someone said in our villagepomp and i just reported that here (with the solution that i thought good). we can see section numbering that used in RTL languages books and articles. in persian, some books have used the way that i said and some not! i dont know about arabic or hebrew books and article. you can see them.

shipmaster wrote:

I think this is something that can be put in the user preference, or handled on a per wiki basis. If fa.wp has a consensus that this is right for them the bug should be submitted just for fa.wp.

Huji added a comment.Oct 27 2010, 11:36 PM

I guess this already being handled on Fa WP using CSS. I guess (not sure) the intent of this bug was to include that piece of CSS in the master RTL.css files, but I might have misunderstood the whole bug.

shipmaster wrote:

I think it should be per wiki, definitely not in the master css. There is no consensus on how to display that in different RTL wikis. Should we be closing this one?

Huji added a comment.Oct 28 2010, 4:57 AM

I don't see a reason not to. I'm marking it as won't fix.

Restricted Application added a project: I18n. · View Herald TranscriptJun 2 2015, 2:21 PM