Last modified: 2014-10-03 03:54:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34316, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32316 - PDF export extension has problem with <sub>&<small>&<big>&<sup> in RTL wikis
PDF export extension has problem with <sub>&<small>&<big>&<sup> in RTL wikis
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: rtl 31552
  Show dependency treegraph
Reported: 2011-11-09 15:46 UTC by reza1615
Modified: 2014-10-03 03:54 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description reza1615 2011-11-09 15:46:46 UTC
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?
Comment 1 Brion Vibber 2011-11-09 16:09:18 UTC
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?
Comment 2 reza1615 2011-11-09 16:13:06 UTC
yes!it changes 



Comment 3 reza1615 2011-11-09 16:14:55 UTC
also <big> has this problem
Comment 4 Volker Haas 2011-12-12 09:48:24 UTC
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...
Comment 5 abi 2011-12-12 10:25:25 UTC
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
Comment 6 Volker Haas 2012-02-29 13:16:28 UTC
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.
Comment 7 reza1615 2014-10-03 03:54:35 UTC
most of the bugs are solves except 
<div dir="ltr" class="mw-content-ltr">

Note You need to log in before you can comment on or make changes to this bug.