| 1 | # Configuration file for XHTMLRenderer core |
|---|
| 2 | # |
|---|
| 3 | # Revision 1.50 2009/05/15 16:28:13 pdoubleya |
|---|
| 4 | # |
|---|
| 5 | # |
|---|
| 6 | # Integrate async image loading, starting point is DelegatingUserAgentCallback. AWT images are now always buffered, but screen-compatible. RootPanel now supports a repaint mechanism, with optional layout, with some attempt to control how often one or the other actually takes place when many images have been loaded. |
|---|
| 7 | # |
|---|
| 8 | # Follows formatting specified in JavaDoc for java.util.Properties |
|---|
| 9 | # key = value |
|---|
| 10 | # |
|---|
| 11 | # If you define a key in this file, the later one will be used |
|---|
| 12 | # Comments are ignored, start the line with a # sign. |
|---|
| 13 | # Feel free to comment liberally |
|---|
| 14 | # |
|---|
| 15 | # Naming convention: prefix all keys with |
|---|
| 16 | # xr. |
|---|
| 17 | # e.g. xr.render-speed = SUPER_FAST |
|---|
| 18 | |
|---|
| 19 | # CSS / CASCADE |
|---|
| 20 | # |
|---|
| 21 | # Location of user-agent "default" CSS for renderer |
|---|
| 22 | xr.css.user-agent-default-css = / |
|---|
| 23 | |
|---|
| 24 | # TESTS |
|---|
| 25 | # |
|---|
| 26 | # Location of hamlet (large XHTML file) |
|---|
| 27 | xr.test.files.hamlet = /demos/browser/xhtml/hamlet.xhtml |
|---|
| 28 | |
|---|
| 29 | # Format for logging when XRSimpleLogFormatter is used as the log output |
|---|
| 30 | # formatter. The format string for this key follows |
|---|
| 31 | # java.text.MessageFormat. The following replaceable parameters are |
|---|
| 32 | # substituted into the output message string; you can use one, all--at a |
|---|
| 33 | # minimum, you probably want the log record message. A newline is |
|---|
| 34 | # automatically added at the end of each message. |
|---|
| 35 | # |
|---|
| 36 | # {0} String.valueOf(record.getMillis()), |
|---|
| 37 | # {1} record.getLoggerName(), |
|---|
| 38 | # {2} record.getLevel().toString(), |
|---|
| 39 | # {3} record.getSourceClassName(), |
|---|
| 40 | # {4} record.getSourceMethodName(), |
|---|
| 41 | # {5} record.getMessage() |
|---|
| 42 | # {6} record.getThrown().getName() |
|---|
| 43 | # {7} record.getThrown().getMessage() |
|---|
| 44 | # {8} record.getThrown() stack trace |
|---|
| 45 | # |
|---|
| 46 | # Two formats, for with and without exception |
|---|
| 47 | xr.simple-log-format = {1} {2}:: {5} |
|---|
| 48 | xr.simple-log-format-throwable = {1} {2}:: {5} |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | # Values used for testing Configuration, do not modify |
|---|
| 52 | xr.test-config-byte = 8 |
|---|
| 53 | xr.test-config-short = 16 |
|---|
| 54 | xr.test-config-int = 100 |
|---|
| 55 | xr.test-config-long = 2000 |
|---|
| 56 | xr.test-config-float = 3000.25F |
|---|
| 57 | xr.test-config-double = 4000.50D |
|---|
| 58 | xr.test-config-boolean = true |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | # XR logging behavior. Follows conventions in |
|---|
| 62 | # java.util.logging.LogManager. See there for details. |
|---|
| 63 | # |
|---|
| 64 | # The prefix for all entries here should be |
|---|
| 65 | # xr.util-logging. |
|---|
| 66 | |
|---|
| 67 | # |
|---|
| 68 | # ENABLE OR DISABLE ALL LOGGING |
|---|
| 69 | # set to false to turn all Flying Saucer logging off, regardless of |
|---|
| 70 | # other settings; corresponds to static method XRLog.setLoggingEnabled(bool); |
|---|
| 71 | # |
|---|
| 72 | xr.util-logging.loggingEnabled=true |
|---|
| 73 | |
|---|
| 74 | # Handlers |
|---|
| 75 | # See JDK documentation for the Logging API; this is a space-separated list of class names that extend the |
|---|
| 76 | # java.util.logging.Handler class. Each class named here will be instantiated and assigned to the each FS |
|---|
| 77 | # logger (not the root logger, as the JDK log-properties load mechanism would do it). |
|---|
| 78 | xr.util-logging.handlers=java.util.logging.ConsoleHandler |
|---|
| 79 | |
|---|
| 80 | # Whether our loggers should send their log messages to their parent's handlers as well |
|---|
| 81 | # In our case, we don't want this, because our log messages will be sent to the handlers |
|---|
| 82 | # of the root logger, which will log the message as well |
|---|
| 83 | xr.util-logging.use-parent-handler=false |
|---|
| 84 | |
|---|
| 85 | # Log level--you can assign a log level to the handler which processes log messages. |
|---|
| 86 | # By default, we assign a level to the console handler we attach to our loggers. |
|---|
| 87 | # See the JDK Logging API documentation. |
|---|
| 88 | # |
|---|
| 89 | # The default logging level for new ConsoleHandler instances |
|---|
| 90 | xr.util-logging.java.util.logging.ConsoleHandler.level=INFO |
|---|
| 91 | |
|---|
| 92 | # Log formatter--you can assign a class to format the output of log messages. |
|---|
| 93 | # Each instance is assigned to a log Handler *which must be one of those listed in the handlers property |
|---|
| 94 | # above. |
|---|
| 95 | # |
|---|
| 96 | # The default formatter for new ConsoleHandler instances. |
|---|
| 97 | # Default for the JDK, uncomment to use. |
|---|
| 98 | # java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter |
|---|
| 99 | # XR log formatter |
|---|
| 100 | xr.util-logging.java.util.logging.ConsoleHandler.formatter=org.docx4j.org.xhtmlrenderer.util.XRSimpleLogFormatter |
|---|
| 101 | |
|---|
| 102 | # Log levels |
|---|
| 103 | # NOTE: the name of this property is .level in the logging spec, hence the two .. |
|---|
| 104 | xr.util-logging.org.xhtmlrenderer.level = ALL |
|---|
| 105 | xr.util-logging.org.xhtmlrenderer.config.level = ALL |
|---|
| 106 | xr.util-logging.org.xhtmlrenderer.exception.level = ALL |
|---|
| 107 | xr.util-logging.org.xhtmlrenderer.general.level = ALL |
|---|
| 108 | xr.util-logging.org.xhtmlrenderer.init.level = ALL |
|---|
| 109 | xr.util-logging.org.xhtmlrenderer.load.level = ALL |
|---|
| 110 | xr.util-logging.org.xhtmlrenderer.load.xml-entities.level = ALL |
|---|
| 111 | xr.util-logging.org.xhtmlrenderer.match.level = ALL |
|---|
| 112 | xr.util-logging.org.xhtmlrenderer.cascade.level = ALL |
|---|
| 113 | xr.util-logging.org.xhtmlrenderer.css-parse.level = ALL |
|---|
| 114 | xr.util-logging.org.xhtmlrenderer.layout.level = ALL |
|---|
| 115 | xr.util-logging.org.xhtmlrenderer.render.level = ALL |
|---|
| 116 | |
|---|
| 117 | |
|---|
| 118 | # resource loading |
|---|
| 119 | # full classname for the SAX parser to use; should be an implementation |
|---|
| 120 | # of org.xml.sax.XMLReader |
|---|
| 121 | # leave blank or "default" to use JDK default parser |
|---|
| 122 | # |
|---|
| 123 | # piccolo: com.bluecast.xml.Piccolo |
|---|
| 124 | # tagsoup: org.ccil.cowan.tagsoup.Parser |
|---|
| 125 | xr.load.xml-reader=default |
|---|
| 126 | |
|---|
| 127 | # : parser features |
|---|
| 128 | # |
|---|
| 129 | # not all features are supported by all parsers. if the feature is not supported |
|---|
| 130 | # , but you request it, the parser will throw an exception and FS will just log that |
|---|
| 131 | # and keep going. check logs to see if you need to turn these features off. you can |
|---|
| 132 | # skip all features by setting configure-features to false |
|---|
| 133 | |
|---|
| 134 | # whether features should be set at all |
|---|
| 135 | xr.load.configure-features=false |
|---|
| 136 | |
|---|
| 137 | # whether pages should be validated against DTD or schema |
|---|
| 138 | # ! careful: this will be very picky; pages will be rejected |
|---|
| 139 | # NOTE! Piccolo will throw an error if validation is on--not supported |
|---|
| 140 | xr.load.validation=false |
|---|
| 141 | |
|---|
| 142 | # whether parser should try to use string.intern |
|---|
| 143 | # this is experimental, currently only for developers |
|---|
| 144 | # NOTE!: Piccolo will throw an error if interning is set to true--strings auto-intern'd |
|---|
| 145 | xr.load.string-interning=false |
|---|
| 146 | |
|---|
| 147 | # namespace support works such that one of the two features must be true, and the other false |
|---|
| 148 | # |
|---|
| 149 | # whether parser should pass namespace info in during parsing |
|---|
| 150 | # this is experimental, currently only for developers |
|---|
| 151 | xr.load.namespaces=false |
|---|
| 152 | |
|---|
| 153 | # whether parser should pass namespace attributes declaration attributes during parsing |
|---|
| 154 | # this is experimental, currently only for developers |
|---|
| 155 | xr.load.namespace-prefixes=false |
|---|
| 156 | |
|---|
| 157 | # layout controls |
|---|
| 158 | xr.layout.whitespace.experimental = true |
|---|
| 159 | xr.layout.bad-sizing-hack = false |
|---|
| 160 | |
|---|
| 161 | # rendering controls |
|---|
| 162 | xr.renderer.viewport-repaint=true |
|---|
| 163 | xr.renderer.draw.backgrounds = true |
|---|
| 164 | xr.renderer.draw.borders = true |
|---|
| 165 | xr.renderer.debug.box-outlines = false |
|---|
| 166 | |
|---|
| 167 | # text rendering controls using Java2D renderer (default when rendering to Swing panels) |
|---|
| 168 | # scaling factor for rendering text; 1.25 would be "25% larger than default" |
|---|
| 169 | xr.text.scale=1.0 |
|---|
| 170 | |
|---|
| 171 | # at what font-size should AA kick in. for older JVMs AA is very expensive and slow--set this to |
|---|
| 172 | # a high value (like 25); for JDK 6, smoke tests show that AA is basically low-cost for Flying Saucer |
|---|
| 173 | # we set it to a high value for the benefit of users still on JDK 1.4 |
|---|
| 174 | xr.text.aa-fontsize-threshhold=25 |
|---|
| 175 | |
|---|
| 176 | # when using Java2D for rendering, hint to renderer for AA algorithm to use |
|---|
| 177 | xr.text.aa-rendering-hint=RenderingHints.VALUE_TEXT_ANTIALIAS_HGRB |
|---|
| 178 | |
|---|
| 179 | # whether or not to cache stylesheets |
|---|
| 180 | # note that there is currently no way to remove |
|---|
| 181 | # stylesheets from the cache |
|---|
| 182 | xr.cache.stylesheets=false |
|---|
| 183 | |
|---|
| 184 | ### a bunch of properties used to turn on and off the incremental |
|---|
| 185 | ###layout features |
|---|
| 186 | xr.incremental.enabled=false |
|---|
| 187 | |
|---|
| 188 | # use lazy asynchronous image resources instead of normal synchronous ones |
|---|
| 189 | xr.incremental.lazyimage = false |
|---|
| 190 | |
|---|
| 191 | # adds a per block delay of N milleseconds |
|---|
| 192 | xr.incremental.debug.layoutdelay=0 |
|---|
| 193 | |
|---|
| 194 | # prints how long each repaint takes |
|---|
| 195 | xr.incremental.repaint.print-timing=false |
|---|
| 196 | |
|---|
| 197 | # whether or not the threads be used |
|---|
| 198 | # if false, xr.incremental.enabled is also |
|---|
| 199 | # implicitly false |
|---|
| 200 | xr.use.threads=false |
|---|
| 201 | |
|---|
| 202 | # whether or not link and hover listeners will be used. |
|---|
| 203 | xr.use.listeners=true |
|---|
| 204 | |
|---|
| 205 | # if BufferedImage should be use |
|---|
| 206 | # Note: On VMs and platforms with the most up-to-date acceleration techniques, |
|---|
| 207 | # BufferedImage performs better, but there were serious performance |
|---|
| 208 | # regressions due to differences in when/if images are accelerated or |
|---|
| 209 | # not by the VM. In particular, we observed some serious regressions on |
|---|
| 210 | # Windows even on simple pages like our splash screen. See |
|---|
| 211 | # https://xhtmlrenderer.dev.java.net/servlets/ReadMsg?list=dev&msgNo=3307 |
|---|
| 212 | # defaults to false |
|---|
| 213 | xr.image.buffered=false |
|---|
| 214 | |
|---|
| 215 | # image loading |
|---|
| 216 | # on loading images that need to be scaled |
|---|
| 217 | # on scaling, whether to use LOW, MID or HIGH-quality process. defaults to HIGH |
|---|
| 218 | xr.image.scale=LOW |
|---|
| 219 | |
|---|
| 220 | # on scaling, what rendering hints to use; must be one of the rendering hints that corresponds to |
|---|
| 221 | # RenderingHints.KEY_INTERPOLATION (e.g. RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR |
|---|
| 222 | # VALUE_INTERPOLATION_BILINEAR or VALUE_INTERPOLATION_BICUBIC. Defaults to NEAREST_NEIGHBOR |
|---|
| 223 | xr.image.render-quality=java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR |
|---|
| 224 | |
|---|
| 225 | # async image loading properties |
|---|
| 226 | xr.image.background.workers=5 |
|---|
| 227 | xr.image.background.greedy=true |
|---|
| 228 | |
|---|