lib-configuration-properties.html 12 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html
  2. SYSTEM "about:legacy-compat">
  3. <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2018"><meta name="DC.rights.owner" content="(C) Copyright 2018"><meta name="DC.Type" content="reference"><meta name="description" content="The lib/configuration.properties file controls certain common properties, as well as some properties that control PDF processing."><meta name="DC.subject" content="configuration properties, default.cascade, org.dita.pdf2.i18n.enabled, otrelease, otversion, plugin.ignores, plugin.order, plugindirs, temp-file-name-scheme, files, lib/configuration.properties file, PDF processing, configuration properties"><meta name="keywords" content="configuration properties, default.cascade, org.dita.pdf2.i18n.enabled, otrelease, otversion, plugin.ignores, plugin.order, plugindirs, temp-file-name-scheme, files, lib/configuration.properties file, PDF processing, configuration properties"><meta name="DC.Relation" scheme="URI" content="../parameters/configuration-properties.html"><meta name="DC.Relation" scheme="URI" content="http://docs.oasis-open.org/dita/dita/v1.3/errata01/os/complete/part1-base/archSpec/base/cascading-in-a-ditamap.html#cascading-in-a-ditamap"><meta name="DC.Relation" scheme="URI" content="http://docs.oasis-open.org/dita/dita/v1.3/errata01/os/complete/part1-base/archSpec/base/example-how-cascade-att-functions.html"><meta name="DC.Relation" scheme="URI" content="http://www.elovirta.com/2016/02/18/font-configuration-in-pdf2.html"><meta name="DC.Format" content="HTML5"><meta name="DC.Identifier" content="configuration"><meta name="DC.Language" content="en"><link rel="stylesheet" type="text/css" href="../css/commonltr.css"><link rel="stylesheet" type="text/css" href="../css/dita-ot-doc.css"><title>The configuration.properties file</title></head><body id="configuration"><header role="banner"><div class="header">
  4. <p>DITA Open Toolkit</p>
  5. <hr>
  6. </div></header><nav role="toc"><ul><li><a href="../index.html">DITA Open Toolkit 3.0</a></li><li><a href="../release-notes/index.html">Release Notes</a></li><li><a href="../topics/installing-client.html">Installing DITA-OT</a></li><li><a href="../topics/alternative-input-formats.html">Authoring formats</a></li><li><a href="../topics/building-output.html">Building output</a></li><li><a href="../parameters/index.html">Setting parameters</a><ul><li><a href="../parameters/dita-command-arguments.html">DITA command arguments</a></li><li><a href="../parameters/parameters_intro.html">DITA-OT parameters</a></li><li><a href="../parameters/configuration-properties.html">Configuration properties</a><ul><li><a href="../parameters/local-properties.html">local.properties</a></li><li><a href="../parameters/lib-plugin-properties.html">plugin.properties</a></li><li class="active"><a href="../parameters/lib-configuration-properties.html">configuration.properties</a></li><li><a href="../parameters/internal-ant-properties.html">Internal Ant properties</a></li></ul></li></ul></li><li><a href="../topics/extending-the-ot.html">Customizing DITA-OT</a></li><li><a href="../topics/troubleshooting-overview.html">Troubleshooting</a></li><li><a href="../reference/index.html">Reference</a></li><li><a href="../topics/dita-and-dita-ot-resources.html">Resources</a></li></ul></nav><main role="main"><article role="article" aria-labelledby="ariaid-title1">
  7. <h1 class="title topictitle1" id="ariaid-title1">The <span class="ph filepath">configuration.properties</span> file</h1>
  8. <div class="body refbody"><p class="shortdesc">The <span class="ph filepath">lib/configuration.properties</span> file controls certain common properties, as well as
  9. some properties that control PDF processing.</p>
  10. <section class="section">
  11. <p class="p">The contents of the <span class="ph filepath">configuration.properties</span> file are added to the DITA-OT configuration
  12. in the <code class="ph codeph">dost-configuration.jar</code> file when the plug-in integration process runs. The following
  13. properties are typically set in this file:</p>
  14. <dl class="dl parml">
  15. <dt class="dt pt dlterm" id="configuration__otrelease-otversion"><span class="keyword parmname">otrelease</span></dt>
  16. <dt class="dt pt dlterm"><span class="keyword parmname">otversion</span></dt>
  17. <dd class="dd pd">The DITA-OT release number and maintenance version stored here are read when version information is
  18. requested on the commmand line via <span class="keyword cmdname">dita</span>
  19. <span class="keyword option">--version</span>.</dd>
  20. <dt class="dt pt dlterm" id="configuration__default-cascade"><span class="keyword parmname">default.cascade</span></dt>
  21. <dd class="dd pd">
  22. <p class="p">Specifies the processing default value for the DITA 1.3 <code class="keyword markupname xmlatt">@cascade</code> attribute, which
  23. determines how map-level metadata attributes are applied to the children of elements where the attributes
  24. are specified. DITA-OT uses the <span class="keyword option">merge</span> value by default for backwards compatibility with
  25. DITA 1.2 and earlier.</p>
  26. <div class="note warning note_warning" id="configuration__protected-config-props"><span class="note__title">Warning:</span> This property can only be set in
  27. <span class="ph filepath">configuration.properties</span> and should not be modified.</div></dd>
  28. <dt class="dt pt dlterm" id="configuration__temp-file-name-scheme"><span class="keyword parmname">temp-file-name-scheme</span></dt>
  29. <dd class="dd pd">
  30. <p class="p">This setting specifies the name of the Java class that defines how the source URL of a topic is mapped to
  31. the URL of the temporary file name. The current default method uses a 1:1 mapping, though future
  32. implementations may use alternative approaches such as hashes or full absolute paths as file names.</p>
  33. <div class="note warning note_warning"><span class="note__title">Warning:</span> This property can only be set in
  34. <span class="ph filepath">configuration.properties</span> and should not be modified.</div>
  35. </dd>
  36. <dt class="dt pt dlterm" id="configuration__cli-color"><span class="keyword parmname">cli.color</span></dt>
  37. <dd class="dd pd">
  38. <p class="p">Specifies whether the <span class="keyword cmdname">dita</span> command prints colored output on the command line console.
  39. When set to <span class="keyword option">true</span>, error messages in <span class="keyword cmdname">dita</span> command output will appear in
  40. red on terminals that support <a class="xref" href="https://en.wikipedia.org/wiki/ANSI_escape_code" target="_blank">ANSI escape codes</a>, such as on Linux or macOS. Set to <span class="keyword option">false</span> to
  41. disable the color. (Colored output is not supported on Windows consoles such as <span class="keyword cmdname">cmd.exe</span>
  42. or PowerShell).</p>
  43. </dd>
  44. <dt class="dt pt dlterm" id="configuration__plugindirs"><span class="keyword parmname">plugindirs</span></dt>
  45. <dd class="dd pd" id="configuration__plugindirs.desc">A semicolon-separated list of directory paths that the DITA-OT searches for plug-ins
  46. to install; any relative paths are resolved against the DITA-OT base directory. Any immediate subdirectory
  47. that contains a <span class="ph filepath">plugin.xml</span> file is installed.</dd>
  48. <dt class="dt pt dlterm" id="configuration__plugin.ignores"><span class="keyword parmname">plugin.ignores</span></dt>
  49. <dd class="dd pd" id="configuration__plugin.ignores.desc">A semicolon-separated list of directory names to be ignored during plug-in
  50. installation; any relative paths are resolved against the DITA-OT base directory.</dd>
  51. <dt class="dt pt dlterm" id="configuration__plugin-order"><span class="keyword parmname">plugin.order</span></dt>
  52. <dd class="dd pd">Defines the order in which plug-ins are processed. In XML catalog files, the order of imports is
  53. significant. If multiple plug-ins define the same thing (differently), the first catalog entry “wins”.
  54. DITA-OT uses this property to define the order in which catalog entries are written. This mechanism is
  55. currently used to ensure that DITA 1.3 grammar files take precedence over their DITA 1.2 equivalents.</dd>
  56. <dt class="dt pt dlterm"><span class="keyword parmname">org.dita.pdf2.i18n.enabled</span></dt>
  57. <dd class="dd pd">
  58. <p class="p">Enables internationalization (I18N) font processing to provide per-character font selection for FO
  59. renderers that do not support the <code class="ph codeph">font-selection-strategy</code> property (such as Apache
  60. FOP).</p>
  61. <p class="p">When this feature is enabled, DITA-OT uses a font mapping process that takes the content language into
  62. consideration. The mapping process uses configuration files for each language to define characters that
  63. should be rendered with certain logical fonts, and font mappings that associate each logical font to
  64. physical font files.</p>
  65. <p class="p">The following values are allowed:</p>
  66. <ul class="ul">
  67. <li class="li"><span class="keyword option">true</span> (default) — Enables font mapping</li>
  68. <li class="li"><span class="keyword option">false</span> — Disables font mapping</li>
  69. </ul>
  70. <div class="note tip note_tip"><span class="note__title">Tip:</span> If you don’t use custom character mappings, turning off font mapping makes it easier to
  71. define custom fonts simply by changing font names in the XSL attributes files of your custom PDF
  72. plug-in. For details, see <a class="xref" href="http://www.elovirta.com/2016/02/18/font-configuration-in-pdf2.html" target="_blank">Font configuration in PDF2</a>.</div>
  73. </dd>
  74. </dl>
  75. </section>
  76. </div>
  77. <nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../parameters/configuration-properties.html" title="The DITA-OT uses .properties files and internal properties that store configuration settings for the toolkit and its plug-ins. Configuration properties are available to both Ant and Java processes, but unlike argument properties, they cannot be set at run time.">Configuration properties</a></div></div><div class="linklist relinfo"><strong>Related information</strong><br><ul class="linklist"><li class="linklist"><a class="link" href="http://docs.oasis-open.org/dita/dita/v1.3/errata01/os/complete/part1-base/archSpec/base/cascading-in-a-ditamap.html#cascading-in-a-ditamap" target="_blank">DITA 1.3 specification: Cascading of metadata attributes in a DITA map</a></li><li class="linklist"><a class="link" href="http://docs.oasis-open.org/dita/dita/v1.3/errata01/os/complete/part1-base/archSpec/base/example-how-cascade-att-functions.html" target="_blank">Example: How the @cascade attribute functions</a></li><li class="linklist"><a class="link" href="http://www.elovirta.com/2016/02/18/font-configuration-in-pdf2.html" target="_blank">Font configuration in PDF2</a></li></ul></div></nav>
  78. </article></main></body></html>