pdf-plugin-structure_common-index.dita 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <topic id="index_configuration_the_common_index_folder">
  5. <title>Index configuration</title>
  6. <shortdesc>The <filepath>common/index</filepath> folder houses custom index definition files that override the
  7. standard definitions in <filepath>org.dita.pdf2/cfg/common/index</filepath>.</shortdesc>
  8. <prolog>
  9. <metadata>
  10. <keywords>
  11. <indexterm><xmlelement>index.group</xmlelement></indexterm>
  12. <indexterm><xmlelement>char.set</xmlelement></indexterm>
  13. <indexterm>languages<indexterm>ISO 639-1</indexterm></indexterm>
  14. <indexterm>ISO 639-1</indexterm>
  15. <indexterm>Portuguese</indexterm>
  16. <indexterm>index<indexterm>PDF</indexterm></indexterm>
  17. <indexterm>catalog<indexterm><filepath>catalog.xml</filepath></indexterm></indexterm>
  18. <indexterm>catalog<indexterm>index configuration</indexterm></indexterm>
  19. </keywords>
  20. </metadata>
  21. </prolog>
  22. <body>
  23. <p>Each file contains data for a single language, and should take that language’s ISO 639-1 language designator as
  24. its name (for example, <filepath>pt.xml</filepath> for Portuguese). If necessary, locale-specific customizations
  25. can be provided by adding a region designator to the file name (for example, <filepath>pt_BR.xml</filepath> for
  26. Brazilian Portuguese).</p>
  27. <p>The index files consist of <xmlelement>index.group</xmlelement> elements which contain sorting information on one
  28. or more characters. Index groups are listed in sort order (“specials” before numbers, numbers before the letter
  29. ‘A‘, etc), and the <xmlelement>char.set</xmlelement> entries they contain are also listed in sort order (uppercase
  30. before lowercase).</p>
  31. <p>The best way to start editing a custom index file is by making a copy of the original from
  32. <filepath>org.dita.pdf2/cfg/common/index</filepath> and making changes as desired.</p>
  33. <p>In order to apply a custom index definition to your publishing outputs, edit <filepath>catalog.xml</filepath> and
  34. uncomment the appropriate entry in the “Index configuration override entries” section.</p>
  35. </body>
  36. </topic>