man.charmap.use.subset.xml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="man.charmap.use.subset">
  7. <refmeta>
  8. <refentrytitle>man.charmap.use.subset</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>man.charmap.use.subset</refname>
  13. <refpurpose>Use subset of character map instead of full map?</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="man.charmap.use.subset.frag">
  17. <xsl:param name="man.charmap.use.subset" select="1"/>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>If the value of the
  22. <parameter>man.charmap.use.subset</parameter> parameter is non-zero,
  23. a subset of the roff character map is used instead of the full roff
  24. character map. The profile of the subset used is determined either
  25. by the value of the
  26. <parameter>man.charmap.subset.profile</parameter>
  27. parameter (if the source is not in English) or the
  28. <parameter>man.charmap.subset.profile.english</parameter>
  29. parameter (if the source is in English).</para>
  30. <note>
  31. <para>You may want to experiment with setting a non-zero value of
  32. <parameter>man.charmap.use.subset</parameter>, so that the full
  33. character map is used. Depending on which XSLT engine you run,
  34. setting a non-zero value for
  35. <parameter>man.charmap.use.subset</parameter> may significantly
  36. increase the time needed to process your documents. Or it may
  37. not. For example, if you set it and run it with xsltproc, it seems
  38. to dramatically increase processing time; on the other hand, if you
  39. set it and run it with Saxon, it does not seem to increase
  40. processing time nearly as much.</para>
  41. <para>If processing time is not a important concern and/or you can
  42. tolerate the increase in processing time imposed by using the full
  43. character map, set <parameter>man.charmap.use.subset</parameter> to
  44. zero.</para>
  45. </note>
  46. <refsection><info><title>Details</title></info>
  47. <para>For converting certain Unicode symbols and special characters in
  48. UTF-8 or UTF-16 encoded XML source to appropriate groff/roff
  49. equivalents in man-page output, the DocBook XSL Stylesheets
  50. distribution includes a <link xlink:href="http://docbook.sourceforge.net/snapshot/xsl/manpages/charmap.groff.xsl">roff character map</link> that is compliant with the <link xlink:href="http://www.w3.org/TR/xslt20/#character-maps">XSLT character
  51. map</link> format as detailed in the XSLT 2.0 specification. The map
  52. contains more than 800 character mappings and can be considered the
  53. standard roff character map for the distribution.</para>
  54. <note>
  55. <para>You can use the <parameter>man.charmap.uri</parameter>
  56. parameter to specify a URI for the location for an alternate roff
  57. character map to use in place of the standard roff character map
  58. provided in the distribution.</para>
  59. </note>
  60. <para>Because it is not terrifically efficient to use the standard
  61. 800-character character map in full -- and for most (or all) users,
  62. never necessary to use it in full -- the DocBook XSL Stylesheets
  63. support a mechanism for using, within any given character map, a
  64. subset of character mappings instead of the full set. You can use the
  65. <parameter>man.charmap.subset.profile</parameter> or
  66. <parameter>man.charmap.subset.profile.english</parameter>
  67. parameter to tune the profile of that subset to use.</para>
  68. </refsection>
  69. </refsection>
  70. </refentry>