I'm one of the users of Farsi Wikipedia. I've been wondering to add thesupporting of Farsi Digits and Scripts in Math Extension of MediaWiki (in LaTeX mode).
Arabi, is a good package under LaTeX that supports Arabic or Persian digits and scripts. this pacakge is available in MiKTeX 2.5 and newer pacakges of LaTeX. For more information about this package, please read these links:
http://www.mail-archive.com/ctan-ann@dante.de/msg00778.html
http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/arabi/user_gui...
For testing a sample file, please go to
http://sciencesoft.at/index.jsp?link=latex&js=0&lang=en
and copy-paste this code to the blank Area and click the "Start LaTeX" button:
% Start of the Code \documentclass{article} \usepackage[T1,LFE,LAE]{fontenc} \usepackage[utf8]{inputenc} \usepackage[farsi,arabic,english]{babel} \TOCLanguage{farsi}
\makeatletter %due to a bug in ARABI in which the command \textRL is not %changed to write Farsi though the main TOC language is Farsi. \def\textRL#1{{\expandafter@farsi@R{#1}}}
%due to a bug in ARABI in which the quotaion marks are not %assigned to their counterpart font-glyphs in lfeenc.def \DeclareTextSymbol{\guillemotright}{LFE}{62} \DeclareTextSymbol{\guillemotleft}{LFE}{60} \makeatother
\begin{document} \selectlanguage{farsi} %a paragraph in Farsi %to write a number use \I{NUMBER} %to write some phrases in English use \textLR{English phrase} سلام. بالاخره یک سرور \textLR{On Line} پیدا شد که از فارسی نویسی در \textLR{ \LaTeX\ } حمایت کند!
$$\sum^{+ \infty}_{i=1} \frac{1}{i^2} = \frac{\pi^2}{6}$$
\end{document} % End of the code
by the help of this sample code, is it possible for you to add supporting farsi digits and scripts to the MediaWiki Math Extension in LaTeX mode to use it in Farsi Wikipedia?
Best Regards
wikitech-l@lists.wikimedia.org