Page MenuHomePhabricator

PDF export extension has problem with <sub>&<small>&<big>&<sup> in RTL wikis
Open, MediumPublic


PDF export extension has problem with <sub>&<small>&<sup> in RTL wikis
If solving this problem is difficult is it possible to disable this functions in RTL wikis?

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:58 PM
bzimport added a project: Collection.
bzimport set Reference to bz32316.
bzimport added a subscriber: Unknown Object (MLST).
Yamaha5 created this task.Nov 9 2011, 3:46 PM
brion added a comment.Nov 9 2011, 4:09 PM

To clarify -- is the problem you're reporting that C<sub>50</sub>H<sub>70</sub> visually appears as <sub>70</sub>H<sub>50</sub>C in the PDF?

yes!it changes




also <big> has this problem

volker.haas wrote:

This bug is part of a more general problem with right-to-left text:

The pdf framework we are using (reportlab) breaks a paragraph with "inline styles" like <sub>, <sup>, <big>, ... into fragments for further processing.
The bidi algorithm is then applied to the individual text fragments.

I don't really know how to fix this problem...

ab3550 wrote:

till will be solved for rtl wikis would you please disable it?
it disorganized the texts that has formula like
also please tell me which part of The pdf framework (python file) works with "inline styles". i will ask form some of my friend who works in rtl text rendering

volker.haas wrote:

So the situation is the following:

Directionality for styled left-to-right text in right-to-left Wikis is currently broken.

In order to fix the directionality I would need to disable styling altogether and all fontswitching.

-> It doesn't seem sensible for me to break two features in order to fix another feature a little bit.

I am really sorry, but I doesn't seem to make sense to further try improving the PDF output for right-to-left wikis with the current rendering engine.

most of the bugs are solves except
<div dir="ltr" class="mw-content-ltr">

Restricted Application added a project: I18n. · View Herald TranscriptJun 2 2015, 2:20 PM
Ebraminio moved this task from Backlog to PDF on the RTL board.Aug 9 2015, 11:22 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 9 2015, 11:22 AM
Yamaha5 set Security to None.
Meno25 removed a subscriber: Meno25.Feb 8 2016, 7:44 PM

As already announced in Tech News, OfflineContentGenerator (OCG) will not be used anymore after October 1st, 2017 on Wikimedia sites. OCG will be replaced by Electron. You can read more on

Amire80 moved this task from Untriaged to RTL on the I18n board.Feb 28 2018, 12:11 PM