www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 458cd7a7607cea4bd5ba45f1f44bd5b3ebb4cdd3
parent 3cdcd73b01a0a3407586934e3fb63f06d35bc9c3
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu,  3 Dec 2015 07:43:00 -0500

Improve heuristics for adding function-apply following operators.  Issue #1312.

Diffstat:
Munpacked/jax/input/TeX/jax.js | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js @@ -343,10 +343,12 @@ type: "fn", checkItem: function (item) { if (this.data[0]) { - if (item.type !== "mml" || !item.data[0]) {return [this.data[0],item]} - if (item.data[0].isa(MML.mspace)) {return [this.data[0],item]} - var mml = item.data[0]; if (mml.isEmbellished()) {mml = mml.CoreMO()} - if ([0,0,1,1,0,1,1,0,0,0][mml.Get("texClass")]) {return [this.data[0],item]} + if (item.type !== "fn" && item.type !== "left") { + if (item.type !== "mml" || !item.data[0]) {return [this.data[0],item]} + if (item.data[0].isa(MML.mspace)) {return [this.data[0],item]} + var mml = item.data[0]; if (mml.isEmbellished()) {mml = mml.CoreMO()} + if ([0,0,1,1,0,1,1,0,0,0][mml.Get("texClass")]) {return [this.data[0],item]} + } return [this.data[0],MML.mo(MML.entity("#x2061")).With({texClass:MML.TEXCLASS.NONE}),item]; } return this.SUPER(arguments).checkItem.apply(this,arguments);