migrating-to-1.5.4.dita 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <reference id="ID" rev="1.5.4">
  5. <title>Migrating to release 1.5.4</title>
  6. <titlealts>
  7. <navtitle>To 1.5.4</navtitle>
  8. </titlealts>
  9. <shortdesc>DITA-OT 1.5.4 adds new extension points to configure behavior based on file extensions, declare print
  10. transformation types and add mappings to the PDF configuration catalog file. PDF output supports mirrored page
  11. layout and uses new font family definitions. Support for several new languages was added for PDF and XHTML
  12. output.</shortdesc>
  13. <refbody>
  14. <section id="section_vc5_gld_g2">
  15. <title>Configuration properties file changes</title>
  16. <p>In previous versions, the <filepath>lib/configuration.properties</filepath> file was generated by the
  17. integration process. Integration has been changed to generate
  18. <filepath>lib/org.dita.dost.platform/plugin.properties</filepath> and the role of the old
  19. <filepath>lib/configuration.properties</filepath> has been changed to contain defaults and configuration
  20. options, such as default language.</p>
  21. <p>The <codeph>dita.plugin.org.dita.*.dir</codeph> properties have been changed to point to the DITA-OT base
  22. directory.</p>
  23. <p>To allow access to configuration files, the <filepath>lib</filepath> directory needs to be added to the Java
  24. classpath.</p>
  25. </section>
  26. <section>
  27. <title>New plug-in extension points </title>
  28. <p>New plug-in extension points have been added allow configuring DITA-OT behavior based on file extensions.</p>
  29. <simpletable id="simpletable_xym_ryi_uc">
  30. <sthead>
  31. <stentry>Extension point</stentry>
  32. <stentry>Description</stentry>
  33. <stentry>Default values</stentry>
  34. </sthead>
  35. <strow>
  36. <stentry><parmname>dita.topic.extension</parmname></stentry>
  37. <stentry>DITA topic</stentry>
  38. <stentry><filepath>.dita</filepath>, <filepath>.xml</filepath></stentry>
  39. </strow>
  40. <strow>
  41. <stentry><parmname>dita.map.extensions</parmname></stentry>
  42. <stentry>DITA map</stentry>
  43. <stentry><filepath>.ditamap</filepath></stentry>
  44. </strow>
  45. <strow>
  46. <stentry><parmname>dita.html.extensions</parmname></stentry>
  47. <stentry>HTML file</stentry>
  48. <stentry><filepath>.html</filepath>, <filepath>.htm</filepath></stentry>
  49. </strow>
  50. <strow>
  51. <stentry><parmname>dita.resource.extensions</parmname></stentry>
  52. <stentry>Resource file</stentry>
  53. <stentry><filepath>.pdf</filepath>, <filepath>.swf</filepath></stentry>
  54. </strow>
  55. </simpletable>
  56. <p>Both HTML and resource file extensions are used to determine if a file in source is copied to output.</p>
  57. <p>A new plug-in extension point has been added to declare transformation types as print types.</p>
  58. <simpletable id="simpletable_xts_5wq_rt">
  59. <sthead>
  60. <stentry>Extension point</stentry>
  61. <stentry>Description</stentry>
  62. </sthead>
  63. <strow>
  64. <stentry><parmname>dita.transtype.print</parmname></stentry>
  65. <stentry>Declare transformation type as a print type.</stentry>
  66. </strow>
  67. </simpletable>
  68. <p>The <codeph>print_transtypes</codeph> property in <filepath>integrator.properties</filepath> has been
  69. deprecated in favor of <parmname>dita.transtype.print</parmname>.</p>
  70. </section>
  71. <section>
  72. <title>Plugin URI scheme</title>
  73. <p>Support for the <keyword>plugin</keyword> URI scheme has been added to XSLT stylesheets. Plug-ins can refer to
  74. files in other plug-ins without hard-coding relative paths, for example: </p>
  75. <codeblock xml:space="preserve">&lt;xsl:import href="plugin:org.dita.pdf2:xsl/fo/topic2fo_1.0.xsl"/&gt;</codeblock>
  76. </section>
  77. <section>
  78. <title>XHTML</title>
  79. <p>Support for the following languages has been added:</p>
  80. <ul>
  81. <li>Indonesian</li>
  82. <li>Kazakh</li>
  83. <li>Malay</li>
  84. </ul>
  85. </section>
  86. <section>
  87. <title>PDF</title>
  88. <p>Support for mirrored page layout was added. The default is the unmirrored layout. The following XSLT
  89. configuration variables have been deprecated:</p>
  90. <ul id="ul_hkv_oyj_bd">
  91. <li><codeph>page-margin-left</codeph></li>
  92. <li><codeph>page-margin-right</codeph></li>
  93. </ul>
  94. <p>The following variables should be used instead to control page margins:</p>
  95. <ul id="ul_yda_wyj_bd">
  96. <li><codeph>page-margin-outside</codeph></li>
  97. <li><codeph>page-margin-inside</codeph></li>
  98. </ul>
  99. <p>The <parmname>args.bookmap-order</parmname> property has been added to control how front and back matter are
  100. processed in bookmaps. The default is to reorder the frontmatter content as in previous releases.</p>
  101. <p>A new extension point has been added to add mappings to the PDF configuration catalog file.</p>
  102. <simpletable id="simpletable_jkf_bxq_rt">
  103. <sthead>
  104. <stentry>Extension point</stentry>
  105. <stentry>Description</stentry>
  106. </sthead>
  107. <strow>
  108. <stentry><parmname>org.dita.pdf2.catalog.relative</parmname></stentry>
  109. <stentry>Configuration catalog includes.</stentry>
  110. </strow>
  111. </simpletable>
  112. <p>Support for the following languages has been added:</p>
  113. <ul>
  114. <li>Finnish</li>
  115. <li>Hebrew</li>
  116. <li>Romanian</li>
  117. <li>Russian</li>
  118. <li>Swedish</li>
  119. </ul>
  120. <p>PDF processing no longer copies images or generates XSL FO to output directory. Instead, the temporary
  121. directory is used for all temporary files and source images are read directly from source directory. The legacy
  122. processing model can be enabled by setting <parmname>org.dita.pdf2.use-out-temp</parmname> to
  123. <option>true</option> in configuration properties; support for the legacy processing model may be removed in
  124. future releases.</p>
  125. <p>Support for FrameMaker index syntax has been disabled by default. To enable FrameMaker index syntax, set
  126. <parmname>org.dita.pdf2.index.frame-markup</parmname> to <option>true</option> in configuration
  127. properties.</p>
  128. <p>A configuration option has been added to disable internationalization (I18N) font processing and use
  129. stylesheet-defined fonts. To disable I18N font processing, set <parmname>org.dita.pdf2.i18n.enabled</parmname>
  130. to <codeph>false</codeph> in configuration properties.</p>
  131. <p>The XSLT parameters <parmname>customizationDir</parmname> and <parmname>fileProfilePrefix</parmname> have been
  132. removed in favor of the <parmname>customizationDir.url</parmname> parameter.</p>
  133. <p>A new shell stylesheet has been added for FOP and other shell stylesheets have also been revised. Plug-ins
  134. which have their own shell stylesheets for PDF processing should make sure all required stylesheets are
  135. imported.</p>
  136. <p>Font family definitions in stylesheets have been changed from Sans, Serif, and Monospaced to sans-serif, serif,
  137. and monospace, respectively. The I18N font processing still uses the old logical names and aliases are used to
  138. map the new names to old ones. </p>
  139. </section>
  140. </refbody>
  141. </reference>