MathML.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
  2. /* vim: set ts=2 et sw=2 tw=80: */
  3. /*************************************************************
  4. *
  5. * MathJax/localization/en/MathML.js
  6. *
  7. * Copyright (c) 2013 The MathJax Consortium
  8. *
  9. * Licensed under the Apache License, Version 2.0 (the "License");
  10. * you may not use this file except in compliance with the License.
  11. * You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. *
  21. */
  22. MathJax.Localization.addTranslation("en","MathML",{
  23. version: "2.2",
  24. isLoaded: true,
  25. strings: {
  26. BadMglyph: // NOTE: refers to MathML's mglyph element.
  27. "Bad mglyph: %1",
  28. BadMglyphFont:
  29. "Bad font: %1",
  30. MathPlayer:
  31. "MathJax was not able to set up MathPlayer.\n\n"+
  32. "If MathPlayer is not installed, you need to install it first.\n"+
  33. "Otherwise, your security settings may be preventing ActiveX \n"+
  34. "controls from running. Use the Internet Options item under\n"+
  35. "the Tools menu and select the Security tab, then press the\n"+
  36. "Custom Level button. Check that the settings for\n"+
  37. "'Run ActiveX Controls', and 'Binary and script behaviors'\n"+
  38. "are enabled.\n\n"+
  39. "Currently you will see error messages rather than\n"+
  40. "typeset mathematics.",
  41. CantCreateXMLParser:
  42. "MathJax can't create an XML parser for MathML. Check that\n"+
  43. "the 'Script ActiveX controls marked safe for scripting' security\n"+
  44. "setting is enabled (use the Internet Options item in the Tools\n"+
  45. "menu, and select the Security panel, then press the Custom Level\n"+
  46. "button to check this).\n\n"+
  47. "MathML equations will not be able to be processed by MathJax.",
  48. UnknownNodeType:
  49. "Unknown node type: %1", // NOTE: refers to XML nodes
  50. UnexpectedTextNode:
  51. "Unexpected text node: %1",
  52. ErrorParsingMathML:
  53. "Error parsing MathML",
  54. ParsingError:
  55. "Error parsing MathML: %1",
  56. MathMLSingleElement:
  57. "MathML must be formed by a single element",
  58. MathMLRootElement:
  59. "MathML must be formed by a <math> element, not %1"
  60. }
  61. });
  62. MathJax.Ajax.loadComplete("[MathJax]/localization/en/MathML.js");