Last modified: 2013-06-24 15:58:18 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 T32667, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30667 - PDF export extension problem with <div dir="ltr"> and <div dir="rtl">
PDF export extension problem with <div dir="ltr"> and <div dir="rtl">
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 31552
  Show dependency treegraph
 
Reported: 2011-08-31 19:24 UTC by reza1615
Modified: 2013-06-24 15:58 UTC (History)
6 users (show)

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


Attachments
screen shot (128.28 KB, image/jpeg)
2012-10-15 14:11 UTC, reza1615
Details

Description reza1615 2011-08-31 19:24:49 UTC
PDF export extension doesn't support <div direction="ltr;"> (in LTR wikis) or <div direction="rtl;"> (in LTR wikis)

http://en.wikipedia.org/wiki/User:Reza1615/test
Comment 1 Brion Vibber 2011-08-31 19:26:26 UTC
There is no HTML attribute "direction"; do you mean "dir"?

The ";" seems extra/broken as well in your examples.

(The PDF rendered still may or may not actually pay any attention.)
Comment 2 Mark A. Hershberger 2011-09-01 00:16:29 UTC
The test page does snow pdf export not respecting <div dir="rtl">
Comment 3 Volker Haas 2011-09-01 09:51:45 UTC
Fixed with https://github.com/pediapress/mwlib.rl/commit/b4d5d2219e1414f2b6be26b2a51ed6e9b88d5180

The following four cases are handled correct. If there are more ways to indicate a direction switch in html/css let me know


<div dir="ltr;">
text. this does actually not switch anything. the semicolon is responsible for breaking this.
</div>


<div dir="ltr">
text
</div>


<div style="direction:ltr;">
text
</div>

<div style="direction:ltr">
text
</div>
Comment 4 reza1615 2011-09-01 10:40:56 UTC
Hi volker,

in mediawiki and fa.wiki also we have
<div class="rtl">
text
</div>
<div class="ltr">
text
</div>

please see:
http://www.mediawiki.org/wiki/Manual:$wgBetterDirectionality
http://translatewiki.net/w/i.php?title=MediaWiki:Common.css&diff=3110996&oldid=3027165
Comment 5 reza1615 2011-09-01 10:44:24 UTC
(In reply to comment #3)
> Fixed with
> https://github.com/pediapress/mwlib.rl/commit/b4d5d2219e1414f2b6be26b2a51ed6e9b88d5180
> 
> The following four cases are handled correct. If there are more ways to
> indicate a direction switch in html/css let me know
> 
> 
> <div dir="ltr;">
> text. this does actually not switch anything. the semicolon is responsible for
> breaking this.
> </div>
> 
> 
> <div dir="ltr">
> text
> </div>
> 
> 
> <div style="direction:ltr;">
> text
> </div>
> 
> <div style="direction:ltr">
> text
> </div>

it doesn't work in fa.wiki
http://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Reza1615/pdf2
Comment 6 Volker Haas 2011-09-01 12:47:21 UTC
Fixed with https://github.com/pediapress/mwlib.rl/commit/c458cab76b383e66ac9d2ab617d7bc0c98a7044e

I'll update the render servers later today
Comment 7 reza1615 2011-09-02 14:31:49 UTC
in rtl wikis when we wright Latin word inside text we have to use <span style="direction:ltr; unicode-bidi:embed;"></span> for correcting () and other symbols place is it possible to correct it?

for example:
http://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Reza1615/pdf

<span style="direction:ltr; unicode-bidi:embed;">.com</span>
Comment 8 reza1615 2011-09-02 16:06:28 UTC
(In reply to comment #6)
> Fixed with
> https://github.com/pediapress/mwlib.rl/commit/c458cab76b383e66ac9d2ab617d7bc0c98a7044e
> 
> I'll update the render servers later today

in this case it doesn't work in fawiki we have many cases that are like this
http://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Reza1615/pdf3#direction
Comment 9 reza1615 2012-10-15 14:11:31 UTC
Created attachment 11197 [details]
screen shot

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


Navigation
Links