snuggleOptions.setContentType(value);
snuggleOptions.setContentType(value);
/** * Creates {@link WebPageOutputOptions} suitable for deploying solely in a Mozilla-based * browser, such as Firefox, using its native support for MathML. * <p> * This is a niche output kept around for legacy purposes. You should look at some of the * newer HTML5 + MathJax-related options for better compatibility and easier deployment. * * <h3>Technical notes</h3> * * This generates XHTML + MathML; no XML declaration; no DOCTYPE. * <p> * This is intended to be served as <tt>application/xhtml+xml</tt> with * encoding declared via HTTP header and <tt>meta</tt> element. * <p> * This will display as an XML tree on IE, which is not useful. */ public static final WebPageOutputOptions createMozillaSpecificOptions() { WebPageOutputOptions options = new WebPageOutputOptions(); options.setMathJax(false); options.setSerializationMethod(SerializationMethod.XHTML); options.setIncludingXMLDeclaration(false); options.setContentType("application/xhtml+xml"); return options; }
/** * Creates {@link WebPageOutputOptions} suitable for deploying solely in Internet * Explorer having the MathPlayer plug-in installed. * <p> * This is a niche output kept around for legacy purposes. You should look at some of the * newer HTML5 + MathJax-related options for better compatibility and easier deployment. * * <h3>Technical notes</h3> * * Intended to be served as <tt>text/html</tt>, containing prefixed MathML islands. * <p> * This only works on IE clients with the MathPlayer plug-in preinstalled, * but is a good option if that's your target audience. * <p> * This will display wrongly on IE6/7 if MathPlayer is not installed. */ public static final WebPageOutputOptions createIEMathPlayerSpecificOptions() { WebPageOutputOptions options = new WebPageOutputOptions(); options.setSerializationMethod(SerializationMethod.HTML); options.setContentType("text/html"); options.setPrefixingMathML(true); options.setAddingMathPlayerImport(true); return options; }
snuggleOptions.setContentType(value);
case MOZILLA: options.setSerializationMethod(SerializationMethod.XHTML); options.setContentType("application/xhtml+xml"); break; options.setContentType("text/html"); options.setPrefixingMathML(true); break; options.setContentType("text/html"); break;
case MOZILLA: options.setSerializationMethod(SerializationMethod.XHTML); options.setContentType("application/xhtml+xml"); break; options.setContentType("text/html"); options.setPrefixingMathML(true); break; options.setContentType("text/html"); break;
case MOZILLA: options.setSerializationMethod(SerializationMethod.XHTML); options.setContentType("application/xhtml+xml"); break; options.setContentType("text/html"); options.setPrefixingMathML(true); break; options.setContentType("text/html"); break;
options.setSerializationMethod(SerializationMethod.XHTML); options.setIncludingXMLDeclaration(true); options.setContentType("application/xhtml+xml"); options.setNoCharsetInContentTypeHeader(true);