asciimathchanges.txt 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. Changes file for ASCIIMathML.js
  2. ===============================
  3. Sep 27, 2007 Version 2.0
  4. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML20.js)
  5. - included LaTeXMathML.js and ASCIIsvg.js in the ASCIIMathML script
  6. - changed license to GNU LGPL 2.1
  7. - Added auto-math-recognize mode (amath ... endamath)
  8. - Added some LaTeX environments and simple formatting
  9. - Created Moodle filter and PmWiki cookbook
  10. - Added MathML text labels to SVG graphs
  11. - Fixed SVG cursor tracking in Firefox
  12. - Added stroke/fillopacity to graphs
  13. - Simplified syntax for graph inclusion
  14. - SVG mouseevents are now added in the scope of the graph code
  15. - MathML fontsize can now be magnified relative to surrounding text
  16. -------------------------------
  17. Aug 7, 2005 Version 1.4.7
  18. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML147.js)
  19. - changed IE MathML prefix from mml: to m: (default of MathPlayer, so now
  20. <html> works without the xmlns attribute)
  21. - for IE the script now writes out the <object ...> and <?import ...> tags
  22. simplifying the header file significantly
  23. - script now uses a generic onload (by www.brothercake.com) so
  24. no need for onload="translate()" in <body> (but earlier pages still work)
  25. - ASCIIMathML.js can now be used on any HTML page by just adding one line to
  26. load the script. So validating your HTML pages is now possible, and use
  27. of HTML editors is simple.
  28. - added unparametrized macros: put <script>newcommand("short","long")</script>
  29. on your webpage and each occurrence of "short" is replaced by "long"
  30. - added /_ (\angle) and :. (\therefore) as symbols
  31. - made an ASCIIMath plugin for Xinha HTML editor (see editor link on homepage)
  32. with instant preview, template popup and builtin calculator
  33. -------------------------------
  34. Apr 23, 2005 Version 1.4.6
  35. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML146.js)
  36. - added "showasciiformulaonhover" variable; if true then pointing at a MathML
  37. expression shows the ascii form that produces the expression
  38. - added "decimalsign" variable; default is "."
  39. - removed "separatetokens" option (to speed up token recognition)
  40. - changed |-, |=, |_, _| to |--, |==, |__, __| to avoid parsing problems
  41. e.g. |-x|, |x|=a, ||A||_1 now parse as expected
  42. - changed parser so that "-" is unary if previous token is INFIX
  43. e.g. now x^-y works like x^(-y) (but x-y is same as x - y)
  44. - added "spanclassAM" option; invoked by translate(true), all math should
  45. then be delimited by <span class="AM">...</span>; translate() works as before
  46. -------------------------------
  47. Jan 30, 2005 Version 1.4.5
  48. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML145.js)
  49. - added TEXT token type for \text{...}, \mbox{...} and "..."
  50. - changed sin, cos, tan, ..., lcm to UNARY type (func); now 1/sinx works
  51. - changed parser so that ^, _ have priority over /
  52. now x_1/3^2 works like (x_1)/(3^2)
  53. -------------------------------
  54. Jan 14, 2005 Version 1.4.4
  55. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML144.js)
  56. - added "mathfontfamily" variable (default "serif")
  57. - mathcolor and mathfontfamily can be "" to inherit values of surrounding text
  58. - added "AMdelimiter" variables to set math delimiters (default "`" and "$")
  59. - added LEFTRIGHT token type for "|"; now `|x|` displays like `{:|x|:}`;
  60. a single | still parses as \mid e.g. in {x | x > 0}
  61. -------------------------------
  62. Dec 28, 2004 Version 1.4.3
  63. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML143.js)
  64. - added mapsto |->
  65. - fixed a parsing error that was generated by incomplete fractions (1/)
  66. - fixed parsing of negative numbers (<mn>-1</mn> is now translated to
  67. <mrow><mo>-</mo><mn>1</mn></mrow>)
  68. - added notifyIfNoMathML flag. If false, no note is inserted at top of page.
  69. - included ASCIIMathCalculator.js: a small script that implements a
  70. webpage calculator with live MathML preview
  71. -------------------------------
  72. Nov 12, 2004 Version 1.4.2
  73. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML142.js)
  74. - added constants for: setminus, vdots, ddots, glb, lub
  75. -------------------------------
  76. Aug 16, 2004 Version 1.4.1
  77. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML141.js)
  78. - fixed a typo to make the check for MathML capability work correctly
  79. - added stackrel command (mover in MathML), e.g. stackrel{def}{=}
  80. - added := as binary relation to get spacing right in Mozilla/Firefox/Netscape
  81. -------------------------------
  82. July 13, 2004 Version 1.4
  83. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML4.js)
  84. - cleaned up the js code, thanks to some very helpful suggestions by Alex V.
  85. - most global variables prefixed with "AM" to avoid conflict with ASCIIsvg.js
  86. - added macro definition ability to define dx, dy, dz, ...
  87. e.g. now dx is replaced by {d x}, so `d/dx` can be used rather than `d/(dx)`.
  88. Users can add their own (parameterless) macros.
  89. - added check for MathML capability. If absent, inserts note at top of page.
  90. - unmatched right bracket no longer ends expression. E.g. in `cosx]_0^1`
  91. the "]" is treated simply as a constant symbol (better to use `{:cosx]_0^1`).
  92. - numeric unicode entity names can be used for unnamed symbols, e.g. `&#x2270;`
  93. -------------------------------
  94. Mar 26, 2004 Version 1.3
  95. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML3.js)
  96. - fixed parser so that unary/binary symbols without arguments are treated
  97. as constants (previously generated js error)
  98. - noticed that ASCIIMathML.js does not require XML, actually works in HTML
  99. on multiple browsers (required no change to the script)
  100. - added `"any"` as alternative to `text{any}`
  101. - added min, max as standard function names (subscripts go underneath)
  102. - added o. (\odot) as symbol
  103. - added separatetokens flag: lowercase tokens must be separated by nonletters
  104. (if true, `sinx` is a sequence of 4 variables, instead use `sin x`)
  105. switched off by default, can be switched on (see top of ASCIIMathML.js)
  106. - added (experimental) doubleblankmathdelimiter so a+b is same as `a+b`
  107. switched off by default, can be switched on (see top of ASCIIMathML.js)
  108. -------------------------------
  109. Feb 8, 2004 Version 1.2
  110. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML2.js)
  111. - added accents: hat bar ul vec dot ddot
  112. - added sans-serif font: sf
  113. - both `...` and $...$ are now allowed as math delimiters
  114. - \$ and \` can now be used to insert $ or ` in plain text
  115. - `a text{ sometext }b` now shows the space around "sometext"
  116. - blocks of ASCIIMathML + text can be enclosed in comments <!-- -->
  117. in which case blank lines are converted to paragraph breaks;
  118. inside comments the < character can be used (does not cause XML error)
  119. (use this "comment mode" with caution; future versions of IE or
  120. Mozilla may not display it the same way)
  121. -------------------------------
  122. Jan 9, 2004 Version 1.1
  123. (at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML1.js)
  124. - added \vdash, \models (actually &vDash;!), \vartheta, \bigwedge, \bigvee,
  125. \bigcup, \bigcap, \propto, \oint to symbol table, with ASCII equivalents
  126. - renamed "subset, supset" to their entity names "sube, supe",
  127. added "sub, sup" and their LaTeX equivalents \subset, \supset
  128. - updated webpages
  129. -------------------------------
  130. Jan 6, 2004 Version 1.0
  131. (now at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML0.js)
  132. - calligraphic, black board bold and fraktur fonts are finally working
  133. also in Mozilla/Netscape 7
  134. - added a download page
  135. - added GNU GPL notices
  136. ===============================