https://bugzilla.wikimedia.org/show_bug.cgi?id=30630
Web browser: ---
Bug #: 30630
Summary: LTF direction for mat funtion in RTL wikis
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 8985
--> https://bugzilla.wikimedia.org/attachment.cgi?id=8985
Before JS code for LTR
Math extension equations in RTL wikis is not left aligned.
Using a javascript code, this problem is solved in Persian Wikipedia
http://fa.wikipedia.org/wiki/%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Common.js
/**
* قرار دادن فرمولهای ریاضی در سمت چپ مناسب برای ویکیهای راست به چپ
*/
$(function(){
$("img.tex, span.texhtml").each(function () {
if($(this).parent().text().trim() == $(this).text() &&
$(this).parent().is("p,dd"))
$(this).parent().css({direction: "ltr", padding: "1em 0"});
});
});
but it is just a little hacky so in my opinion it is better to solve it in in
mediawiki core.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l