mwoffliner
mwoffliner copied to clipboard
In the Hebrew Wikipedia, the labels and values in the infobox are aligned incorrectly
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
Environment
- Version of Kiwix Android : 3.4.5 build 7230405
- Device : Samsung Galaxy S20 FE
- OS version : 13
@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.
This is a ticket for openzim/mwoffliner
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 yes but I supsct the problem to not been straight forward.
@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 .