GeometricShapes.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/HTML-CSS/optable/GeometricShapes.js
  4. *
  5. * Copyright (c) 2010-2013 The MathJax Consortium
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. */
  20. (function (MML) {
  21. var MO = MML.mo.OPTYPES;
  22. var TEXCLASS = MML.TEXCLASS;
  23. MathJax.Hub.Insert(MML.mo.prototype,{
  24. OPTABLE: {
  25. infix: {
  26. '\u25A0': MO.BIN3, // black square
  27. '\u25A1': MO.BIN3, // white square
  28. '\u25AA': MO.BIN3, // black small square
  29. '\u25AB': MO.BIN3, // white small square
  30. '\u25AD': MO.BIN3, // white rectangle
  31. '\u25AE': MO.BIN3, // black vertical rectangle
  32. '\u25AF': MO.BIN3, // white vertical rectangle
  33. '\u25B0': MO.BIN3, // black parallelogram
  34. '\u25B1': MO.BIN3, // white parallelogram
  35. '\u25B2': MO.BIN4, // black up-pointing triangle
  36. '\u25B4': MO.BIN4, // black up-pointing small triangle
  37. '\u25B6': MO.BIN4, // black right-pointing triangle
  38. '\u25B7': MO.BIN4, // white right-pointing triangle
  39. '\u25B8': MO.BIN4, // black right-pointing small triangle
  40. '\u25BC': MO.BIN4, // black down-pointing triangle
  41. '\u25BE': MO.BIN4, // black down-pointing small triangle
  42. '\u25C0': MO.BIN4, // black left-pointing triangle
  43. '\u25C1': MO.BIN4, // white left-pointing triangle
  44. '\u25C2': MO.BIN4, // black left-pointing small triangle
  45. '\u25C4': MO.BIN4, // black left-pointing pointer
  46. '\u25C5': MO.BIN4, // white left-pointing pointer
  47. '\u25C6': MO.BIN4, // black diamond
  48. '\u25C7': MO.BIN4, // white diamond
  49. '\u25C8': MO.BIN4, // white diamond containing black small diamond
  50. '\u25C9': MO.BIN4, // fisheye
  51. '\u25CC': MO.BIN4, // dotted circle
  52. '\u25CD': MO.BIN4, // circle with vertical fill
  53. '\u25CE': MO.BIN4, // bullseye
  54. '\u25CF': MO.BIN4, // black circle
  55. '\u25D6': MO.BIN4, // left half black circle
  56. '\u25D7': MO.BIN4, // right half black circle
  57. '\u25E6': MO.BIN4 // white bullet
  58. }
  59. }
  60. });
  61. MathJax.Ajax.loadComplete(MML.optableDir+"/GeometricShapes.js");
  62. })(MathJax.ElementJax.mml);