pdf-plugin-structure_common-index.dita 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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
  14. <indexterm>ISO 639-1</indexterm></indexterm>
  15. <indexterm>ISO 639-1</indexterm>
  16. <indexterm>Portuguese</indexterm>
  17. <indexterm>index
  18. <indexterm>PDF</indexterm></indexterm>
  19. <indexterm>catalog
  20. <indexterm><filepath>catalog.xml</filepath></indexterm></indexterm>
  21. <indexterm>catalog
  22. <indexterm>index configuration</indexterm></indexterm>
  23. </keywords>
  24. </metadata>
  25. </prolog>
  26. <body>
  27. <p>Each file contains data for a single language, and should take that language’s ISO 639-1 language designator as
  28. its name (for example, <filepath>pt.xml</filepath> for Portuguese). If necessary, locale-specific customizations
  29. can be provided by adding a region designator to the file name (for example, <filepath>pt_BR.xml</filepath> for
  30. Brazilian Portuguese).</p>
  31. <p>The index files consist of <xmlelement>index.group</xmlelement> elements which contain sorting information on one
  32. or more characters. Index groups are listed in sort order (“specials” before numbers, numbers before the letter
  33. ‘A‘, etc), and the <xmlelement>char.set</xmlelement> entries they contain are also listed in sort order (uppercase
  34. before lowercase).</p>
  35. <p>The best way to start editing a custom index file is by making a copy of the original from
  36. <filepath>org.dita.pdf2/cfg/common/index</filepath> and making changes as desired.</p>
  37. <p>In order to apply a custom index definition to your publishing outputs, edit <filepath>catalog.xml</filepath> and
  38. uncomment the appropriate entry in the “Index configuration override entries” section.</p>
  39. </body>
  40. </topic>