mwoffliner icon indicating copy to clipboard operation
mwoffliner copied to clipboard

In the Hebrew Wikipedia, the labels and values in the infobox are aligned incorrectly

Open kelson42 opened this issue 1 year ago • 5 comments

From kiwix-android created by amire80: kiwix/kiwix-android#3321

To test, open the article אנה קארנינה in the Hebrew Wikipedia ZIM. Look at the infobox: The labels and the values are aligned to the left. They are supposed to be aligned to the right. The rest of the article works well in terms of RTL alignment.

Screenshots

Screenshot_20230520_141521_Kiwix

Environment

  • Version of Kiwix Android : 3.4.5 build 7230405
  • Device : Samsung Galaxy S20 FE
  • OS version : 13

kelson42 avatar Aug 28 '23 10:08 kelson42

@amire80, @kelson42, I have debugged it and found that the zim file is missing style attributes to support right-to-left (RTL) content in tables.

For demonstration, I have added those attributes to the <th>, <td>,

<td style="
    direction: rtl;
    text-align: right;">
content here
</td>


<th style="
    direction: rtl;
    text-align: right;">
content here
</th>

After making these changes, the content now supports RTL.

Screenshot from 2023-07-11 14-44-07

kelson42 avatar Aug 28 '23 10:08 kelson42

This is a ticket for openzim/mwoffliner

kelson42 avatar Aug 28 '23 10:08 kelson42

Hey @kelson42, has the issue been resolved? I can see that it requires style formatting, and you have added a pretty good demonstration too. Can I raise a PR with a fix for the issue?

AKACHI-4 avatar Feb 12 '24 17:02 AKACHI-4

@AKACHI-4 yes but I supsct the problem to not been straight forward.

kelson42 avatar Feb 13 '24 04:02 kelson42

@kelson42 Hmm That's making me curious .. could you tell me what the reason if it could not be that straight forward ... because for me it seems css style changes only .

AKACHI-4 avatar Feb 14 '24 14:02 AKACHI-4