Commit graph

12 commits

Author SHA1 Message Date
Nicholas Longo 7346759250 The following change fixes minor issues with the MathML display of
arithmetic operations.  In particular in displaying x-2 it should use
the entity − in MathML as well.  Also changed spacing so an
opporation such as "+" would render as <mo> + </mo> instead of
<mo>+</mo>.
2011-05-16 19:25:46 +00:00
Nicholas Longo a7dc3ef012 Removed the &ApplyFunction; MathML entity. This entity doesn't
survive sanitizing.  It can be rendered by the corresponding unicode
character, but this doesn't display correctly without the proper fonts
installed.
2011-05-14 03:04:08 +00:00
Nicholas Longo e9f24f5264 A change to fix a bug in LaTeX rendering of function names. An
additional space was necessary in the LaTeX code when rendering
functions such as \sin foo32.  Also a few lines of code were removed
from texutil.ml that are now handled by lexer.mll.
2011-05-13 00:01:44 +00:00
Nicholas Longo 0a98d44540 Corrects a small bug causing <math>\sin</math> to return an unknown
function error
2011-05-12 22:29:32 +00:00
Nicholas Longo c60fa06a6a This updates improves the MathML support of texvc. New new tags have
been added, but the parser now recognizes numbers containing decimal
points as being renderable using <mn>. The delimiters (,[,{ now render
using <mo> tags, this allows for equations such as "y=f(x)" to be
rendered to MathML.  Finally for standard functions such as \sin, now
render as <mi>\sin</mi>&ApplyFunction;, etc so standard function names
are supported.
2011-05-12 21:46:18 +00:00
Nicholas Longo 37300525a9 This update provides the functionality requested in bug 27754. More
specifically it provides the archaic greek letters defined in the
teubner package.  WARNING: This package requires the greek language
bable package, which on some linux systems is installed separately
from LaTeX.  As a result, texvc doesn't try to load this package
unless one of the archaic greek letters is being used.  This ensures
that the new commands do not prevent any of the old functionality from
operating as it did before.  

The following new commands are recognized. includes \Coppa, \coppa,
\varcoppa (synonym for \coppa), \Digamma, \Koppa (synonym for \Coppa),
\koppa, \Sampi, \sampi, \Stigma, \stigma, and \varstigma.

For more information see the comprehensive symbols table 280.  Note
that this update doesn't effect the current functionality of \digamma.
2011-05-02 21:13:45 +00:00
Nicholas Longo f095606895 This update fixes bug 27324 by loading the eurosym package to provide
the euro symbol.  This requires the eurosym package be available in
the installed LaTeX distribution.  Five new commands are now
recognized by texvc: \euro, \geneuro, \geneuronarrow, \geneurowide,
and \officialeuro.  All provide varients of the euro symbol, and \euro
is simply short alias for \officialeuro.  In addition some minor
changes have been introduced the html rendering of some math symbols.
The new choices provide html symbols that are higher degree of
similarity in comparison to the corresponding LaTeX symbols.
2011-05-02 19:28:25 +00:00
Nicholas Longo 250031caa2 This update removes unneeded code from texutil.ml and corrects the way
functions are handled in lexer.mll.  In particular lexer.mll failed to
insert a space that, in some cases rendering errors. This bug has now
been corrected.
2011-04-29 06:08:48 +00:00
Nicholas Longo 3dde4ef091 The following fixes bug 19547 by allowing left and right single
quotation symbols in the list of allowable characters in a textbox or mbox.
2011-04-28 18:23:23 +00:00
Nicholas Longo 924b4cf9dd This change adds support for the \widetilde command as mentioned in bug 26380 2011-04-26 18:44:22 +00:00
Nicholas Longo dbe0a339de The following changes enhance the way texvc handles space around
mathematical function names when translating to HTML; adds support for
the sen, the Spanish name for sin; and corrects a bug that eliminates
spacing around \operatorname{...} in the resulting png.  More
specifically, texvc now dectect whether or not a
standard function such as is followed by a delimitier such as (, {, [
etc. and adds a space or not as appropriate.  This issue  The code has been
reorganized to include a list of standard LaTeX commands whose spacing
rules are the same, and treates them all on an equal footing.  It
similarly treats functions defined for mediawiki in the same way it
treats standard latex functions. One addition function is added, \sen,
and others can be added easily if necessary.  Finally LaTeX generated
by texvc contained to many braces which altered the spacing created by
the command \operatorname, this has now been corrected.  These last
two changes address the issues raised in bug 18912 and the chaning in
translation to HTML address most, but not all, of the issues raised in
bug 6722 .
2011-04-26 18:17:23 +00:00
Brion Vibber c4d9349786 Initial stab at breaking math/texvc out to Math extension.
* (bug 14202) $wgUseTeX has been superseded by the Math extension. To re-enable
  math conversion after upgrading, obtain the Math extension from SVN or from
  http://www.mediawiki.org/wiki/Extension:Math and add to LocalSettings.php:
  require_once "$IP/extensions/Math/Math.php";

This is an initial stab, and a few things remain to be cleaned up:
* messages need to be moved from core to extension
* MW_MATH_* constants should be moved to the extension from core
* old back-compat math names interfaces using those constants should be removed from message files
* classic edit toolbar's math button should be added from the extension (or else dropped) -- currently there's not a clean hook, but could do it by JS
* couple of things like the 'armourMath' function on Language & LanguageConverter may want to be redone just as an unconditional, if that's simpler.

Setting $wgUseTeX alone will no longer have any affect. The var's still there for the moment as a few bits still need to be fully moved out from core.
2011-04-09 00:39:40 +00:00