instiki/public/MathJax/jax/element/mml/jax.js

20 lines
23 KiB
JavaScript
Raw Normal View History

/*
* ../SourceForge/trunk/mathjax/jax/element/mml/jax.js
*
* Copyright (c) 2010 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
MathJax.Unpack([
['MathJax.ElementJax','.mml','=',0,'({mimeType:"jax/mml"},{id:"mml",version:"1.0.1",directory:',0,'.directory+"/mml','",extensionDir:',0,'.extensionDir+"/mml",optableDir:',0,6,'/optable"});',0,1,'.Augment({Init',':function(){','if(','arguments','.length','===1&&',18,'[0].','type==="math"){','this.root','=',18,'[0]}else{',24,'=',0,1,'.math.apply(this,',18,')}','if(this.','root.mode){if(!',24,'.display','&&',24,'.mode==="display"){',24,38,'="block"}delete ',24,'.mode}}},{INHERIT:"_inherit_",AUTO:"_auto_",SIZE:{INFINITY:"infinity",SMALL:"small",','NORMAL:"normal",','BIG:"big"},COLOR:{TRANSPARENT:"transparent"},VARIANT:{',47,'BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold','-italic",','DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF',':"sans-serif','",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC',53,51,'SANSSERIFBOLDITALIC',53,'-bold',51,'MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALIGRAPHIC:"-tex-caligraphic",OLDSTYLE:"-tex-oldstyle"},FORM:{PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},LINEBREAK:{','AUTO:"auto",','NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},','LINEBREAKSTYLE',':{BEFORE',':"before",','AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"','infixlinebreakstyle','"},','INDENTALIGN',':{LEFT:"left",','CENTER:"center",','RIGHT:"right",',62,'ID:"id",',70,':"','indentalign','"},','INDENTSHIFT',':{',80,':"','indentshift','"},LINETHICKNESS:{THIN:"thin",MEDIUM:"medium",THICK:"thick"},NOTATION:{LONGDIV:"longdiv",ACTUARIAL:"actuarial",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",','LEFT:"left",RIGHT:"right','",','TOP:"top",BOTTOM:"bottom",','UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",MADRUWB:"madruwb"},ALIGN:{',88,72,'BASELINE:"baseline",AXIS:"axis",',86,'"},LINES:{NONE:"none",SOLID:"solid",DASHED:"dashed"},SIDE:{',86,'",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},WIDTH:{',62,'FIT:"fit"},ACTIONTYPE:{TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},LENGTH:{VERYVERYTHINMATHSPACE:"veryverythinmathspace",VERYTHINMATHSPACE:"verythinmathspace",THINMATHSPACE:"thinmathspace",','MEDIUMMATHSPACE',':"mediummathspace",THICKMATHSPACE:"thickmathspace",VERYTHICKMATHSPACE:"verythickmathspace",VERYVERYTHICKMATHSPACE:"veryverythickmathspace",NEGATIVEVERYVERYTHINMATHSPACE:"negativeveryverythinmathspace",NEGATIVEVERYTHINMATHSPACE:"negativeverythinmathspace",NEGATIVETHINMATHSPACE:"negativethinmathspace",NEGATIVEMEDIUMMATHSPACE:"negativemediummathspace",NEGATIVETHICKMATHSPACE:"negativethickmathspace",NEGATIVEVERYTHICKMATHSPACE:"negativeverythickmathspace",NEGATIVEVERYVERYTHICKMATHSPACE:"negativeveryverythickmathspace"},OVERFLOW:{LINBREAK:"','linebreak','",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},UNIT:{EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"},TEXCLASS:{ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},PLANE1:String.fromCharCode(55349)});(function(a){var d=false;var b=true;a.mbase=MathJax.Object.Subclass({type:"base",isToken:d,','defaults:{','mathbackground:a.INHERIT,mathcolor:a.INHERIT','},noInherit:{},Init',16,'this.data=[];',35,'inferRow','&&!(',18,19,'===1&&',18,22,'inferred',')){this.Append(a.mrow().With({',116,':b}))}this.Append.apply(this,',18,')},With',':function(f){','for(var ','g in f){if(f.hasOwnProperty(g)){this[g]=f[g]}}','return this','},Append',16,35,109,'&&','this.data.length','){','this.data[','0].Append.apply(',133,'0],',18,')}else{',123,'g=0,f=',18,19,';g<f;g++){','this.SetData(',131,',',18,'[g])}}},SetData',':function(','f,g){if(g!=null){if(!(g instanceof a.mbase)){g=(this.isToken?a.chars(g):a.mtext(g))}g.parent=this;g.','setInherit','(this.inheritFromMe?this:','this.inherit',')}',133,'f]=g},Parent',16,'var f=this','.parent;while(f&&f.',116,'){f=f.parent}return f},Get',149,'g,k){if(typeof(this[g])!=="','undefined"){',125,'[g]}va
['shed',':a.mbase.childEmbellished,Core:a.mbase.childCore,CoreMO:a.mbase.childCoreMO,','inferRow:b,','defaults:{','scriptlevel',':a.INHERIT',',','displaystyle',5,',','scriptsizemultiplier:Math.sqrt(1/2),scriptminsize:"','8pt",mathbackground',5,',mathcolor',5,',','infixlinebreakstyle:a.LINEBREAKSTYLE.BEFORE,','decimalseparator',':"."},adjustChild_scriptlevel',':function','(h){','var g=this.',4,';if(g==null){g=','this.Get("',4,'")}else{if(String(g).match(/^ *[-+]/)){delete this.',4,';var f=',24,4,'");this.',4,'=g;g=f+','parseInt(','g)}}','return ','g','},inheritFromMe:b,noInherit:{','mpadded',':{width:b,height:b,depth:b',',lspace:b,voffset:b},','mtable',40,'}},','setTeXclass:a.mbase.setChildTeXclass});a.','merror','=a.mbase.Subclass({type:"',46,'",',2,'texClass:a.TEXCLASS.','ORD});a.',39,47,39,'",',2,'isSpacelike:','a.mbase.','childrenSpacelike,','isEmbellished',1,'defaults:{mathbackground:a.INHERIT,mathcolor:a.INHERIT,','width:"",height:"",depth:"",lspace:0,voffset:0},',45,'mphantom',47,66,'",',51,'ORD,',2,58,59,'childrenSpacelike,',61,1,45,'mfenced',47,79,'",',63,'open:"(",close:")",separators:","},',51,'OPEN,','setTeXclass',19,'(j','){this.getPrevClass(','j);',21,'getValues("open","close","separators");g.open=g.open','.replace(/[ \\t\\n\\r]/g,"");','g.close','=',95,94,'g.separators','=',99,94,'if(g.open','!==""){this.SetData("','open",a.mo(g.open).With({','stretchy:true',',',51,'OPEN}));j=','this.data','.open.',87,'(j)}if(',99,'!==""){while(',99,'.length','<',110,117,'){',99,'+=',99,'.charAt(',99,117,'-1)}}if(',110,'[0]){j=',110,'[0].',87,'(j)}for(var h=1,f=',110,117,';h<f;h++){if(',110,'[h]){if(',99,104,'sep"+h,a.mo(',99,125,'h-1)));j=',110,'["sep"+h].',87,'(j)}j=',110,'[h].',87,'(j)}}if(',95,104,'close",a.mo(',95,').With({',106,',',51,'CLOSE}));j=',110,'.close.',87,'(j)}this.updateTeXclass(',110,'.open);',36,'j}});a.','menclose',47,171,'",',2,63,'notation:a.NOTATION.LONGDIV,',51,'ORD},','setTeXclass:a.mbase.setSeparateTeXclasses});a.','msubsup',47,181,'",base:0,','sub:1,sup:2,',61,1,63,'subscriptshift:"",superscriptshift',':"",texClass:a.AUTO},','autoDefault:function(f){if(f==="texClass"){return(this.isEmbellished()?this.CoreMO().Get(f):a.TEXCLASS.ORD)}',36,'0','},adjustChild_displaystyle:function(f){if(f>0){return d}return this.Get("displaystyle")},adjustChild_scriptlevel:function(g){var f=this.Get("scriptlevel");if(g','>0){f++}',36,'f},','adjustChild_texprimestyle:function(f){if(f','===this.','sub){','return b}return this.Get("texprimestyle")},setTeXclass:a.mbase.setBaseTeXclasses});a.','msub=a.',181,'.Subclass({type:"','msub"});a.msup=a.',181,204,'msup",sub:2,sup:1});a.','mmultiscripts','=a.',181,204,209,'",',198,'%2===1){',36,'b}',36,24,'texprimestyle','")}});a.','mprescripts',47,223,'"});a.none',47,'none"});a.','munderover',47,229,184,'under:1,over:2,sub:1,sup',':2,ACCENTS:["","','accentunder','","','accent','"],',61,1,63,237,':a.AUTO,',235,243,'align:a.ALIGN.','CENTER,texClass',243,189,':""},',191,'if(f==="',237,'"&&',110,'[this.over',']){',36,110,256,'].CoreMO().Get("accent")}',252,235,'"&&',110,'[this.under',']){',36,110,266,261,36,'d',194,'==this.under&&!',24,235,'")){f++}','if(g==this.over&&!',24,237,278,36,'f},',198,199,'base&&',110,256,']){',201,'munder=a.',229,204,'munder"});a.mover=a.',229,204,'mover",over:1,under:2,sup:1,sub',234,237,'","',235,'"]});a.',42,47,42,'",',63,246,'AXIS,rowalign:a.ALIGN.BASELINE,columnalign:a.ALIGN.CENTER,','groupalign',':"{left}",','alignmentscope:b,columnwidth:','a.WIDTH.AUTO,','width:',314,'rowspacing:"1ex",columnspacing:".8em",rowlines',':a.LINES.NONE,','columnlines',318,'frame',318,'framespacing',':"0.4em 0.5ex",equalrows:d,equalcolumns:d,',7,':d,side:a.SIDE.RIGHT',',minlabelspacing',':"0.8em",',51,'ORD',',useHeight:1',38,42,':{align:b,','rowalign:b,columnalign:b,groupalign:b',',',313,'b,width:b,rowspacing:b,columnspacing:b,rowlines:b,columnlines:b,frame:b,',323,':b,equalrows:b,equalcolumns:b,side:b',327,':b,texClass:b',331,'}},Append:function(){for(var g=0,f=arguments.length;g<f;g++){if','(!((','arguments[g] instanceof a.','mtr)||(',346,'mlabeledtr','))){','arguments[
]);