<?xml version="1.0"?> <xsl:stylesheet exclude-result-prefixes="d" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" version="1.0"> <!-- This file is generated from param.xweb --> <!-- ******************************************************************** $Id: param.xweb 9130 2011-10-11 08:05:37Z dpawson $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://docbook.sf.net/release/xsl/current/ for copyright and other information. ******************************************************************** --> <xsl:param name="man.authors.section.enabled">1</xsl:param> <xsl:param name="man.break.after.slash">0</xsl:param> <xsl:param name="man.base.url.for.relative.links">[set $man.base.url.for.relative.links]/</xsl:param> <xsl:param name="man.charmap.enabled" select="1"/> <xsl:param name="man.charmap.subset.profile"> @*[local-name() = 'block'] = 'Miscellaneous Technical' or (@*[local-name() = 'block'] = 'C1 Controls And Latin-1 Supplement (Latin-1 Supplement)' and (@*[local-name() = 'class'] = 'symbols' or @*[local-name() = 'class'] = 'letters') ) or @*[local-name() = 'block'] = 'Latin Extended-A' or (@*[local-name() = 'block'] = 'General Punctuation' and (@*[local-name() = 'class'] = 'spaces' or @*[local-name() = 'class'] = 'dashes' or @*[local-name() = 'class'] = 'quotes' or @*[local-name() = 'class'] = 'bullets' ) ) or @*[local-name() = 'name'] = 'HORIZONTAL ELLIPSIS' or @*[local-name() = 'name'] = 'WORD JOINER' or @*[local-name() = 'name'] = 'SERVICE MARK' or @*[local-name() = 'name'] = 'TRADE MARK SIGN' or @*[local-name() = 'name'] = 'ZERO WIDTH NO-BREAK SPACE' </xsl:param> <xsl:param name="man.charmap.subset.profile.english"> @*[local-name() = 'block'] = 'Miscellaneous Technical' or (@*[local-name() = 'block'] = 'C1 Controls And Latin-1 Supplement (Latin-1 Supplement)' and @*[local-name() = 'class'] = 'symbols') or (@*[local-name() = 'block'] = 'General Punctuation' and (@*[local-name() = 'class'] = 'spaces' or @*[local-name() = 'class'] = 'dashes' or @*[local-name() = 'class'] = 'quotes' or @*[local-name() = 'class'] = 'bullets' ) ) or @*[local-name() = 'name'] = 'HORIZONTAL ELLIPSIS' or @*[local-name() = 'name'] = 'WORD JOINER' or @*[local-name() = 'name'] = 'SERVICE MARK' or @*[local-name() = 'name'] = 'TRADE MARK SIGN' or @*[local-name() = 'name'] = 'ZERO WIDTH NO-BREAK SPACE' </xsl:param> <xsl:param name="man.charmap.uri"/> <xsl:param name="man.charmap.use.subset" select="1"/> <xsl:param name="man.copyright.section.enabled">1</xsl:param> <xsl:param name="man.endnotes.are.numbered">1</xsl:param> <xsl:param name="man.endnotes.list.enabled">1</xsl:param> <xsl:param name="man.endnotes.list.heading"/> <xsl:param name="man.font.funcprototype">BI</xsl:param> <xsl:param name="man.font.funcsynopsisinfo">B</xsl:param> <xsl:param name="man.font.links">B</xsl:param> <xsl:param name="man.font.table.headings">B</xsl:param> <xsl:param name="man.font.table.title">B</xsl:param> <xsl:param name="man.funcsynopsis.style">ansi</xsl:param> <xsl:param name="man.hyphenate.computer.inlines">0</xsl:param> <xsl:param name="man.hyphenate.filenames">0</xsl:param> <xsl:param name="man.hyphenate">0</xsl:param> <xsl:param name="man.hyphenate.urls">0</xsl:param> <xsl:param name="man.indent.blurbs" select="1"/> <xsl:param name="man.indent.lists" select="1"/> <xsl:param name="man.indent.refsect" select="0"/> <xsl:param name="man.indent.verbatims" select="1"/> <xsl:param name="man.indent.width">4</xsl:param> <xsl:param name="man.justify">0</xsl:param> <xsl:param name="man.output.base.dir">man/</xsl:param> <xsl:param name="man.output.encoding">UTF-8</xsl:param> <xsl:param name="man.output.in.separate.dir" select="0"/> <xsl:param name="man.output.lang.in.name.enabled" select="0"/> <xsl:param name="man.output.manifest.enabled" select="0"/> <xsl:param name="man.output.manifest.filename">MAN.MANIFEST</xsl:param> <xsl:param name="man.output.better.ps.enabled">0</xsl:param> <xsl:param name="man.output.quietly" select="0"/> <xsl:param name="man.output.subdirs.enabled" select="1"/> <xsl:param name="man.segtitle.suppress" select="0"/> <xsl:param name="man.string.subst.map"> <!-- * remove no-break marker at beginning of line (stylesheet artifact) --> <substitution oldstring="▒▀" newstring="▒"/> <!-- * replace U+2580 no-break marker (stylesheet-added) w/ no-break space --> <substitution oldstring="▀" newstring="\ "/> <!-- ==================================================================== --> <!-- * squeeze multiple newlines before a roff request --> <substitution oldstring=" ." newstring=" ."/> <!-- * remove any .sp instances that directly precede a .PP --> <substitution oldstring=".sp .PP" newstring=".PP"/> <!-- * remove any .sp instances that directly follow a .PP --> <substitution oldstring=".sp .sp" newstring=".sp"/> <!-- * squeeze multiple .sp instances into a single .sp--> <substitution oldstring=".PP .sp" newstring=".PP"/> <!-- * squeeze multiple newlines after start of no-fill (verbatim) env. --> <substitution oldstring=".nf " newstring=".nf "/> <!-- * squeeze multiple newlines after REstoring margin --> <substitution oldstring=".RE " newstring=".RE "/> <!-- * U+2591 is a marker we add before and after every Parameter in --> <!-- * Funcprototype output --> <substitution oldstring="░" newstring=" "/> <!-- * U+2592 is a marker we add for the newline before output of <sbr>; --> <substitution oldstring="▒" newstring=" "/> <!-- * --> <!-- * Now deal with some other characters that are added by the --> <!-- * stylesheets during processing. --> <!-- * --> <!-- * bullet --> <substitution oldstring="•" newstring="\(bu"/> <!-- * left double quote --> <substitution oldstring="“" newstring="\(lq"/> <!-- * right double quote --> <substitution oldstring="”" newstring="\(rq"/> <!-- * left single quote --> <substitution oldstring="‘" newstring="\(oq"/> <!-- * right single quote --> <substitution oldstring="’" newstring="\(cq"/> <!-- * copyright sign --> <substitution oldstring="©" newstring="\(co"/> <!-- * registered sign --> <substitution oldstring="®" newstring="\(rg"/> <!-- * ...servicemark... --> <!-- * There is no groff equivalent for it. --> <substitution oldstring="℠" newstring="(SM)"/> <!-- * ...trademark... --> <!-- * We don't do "\(tm" because for console output, --> <!-- * groff just renders that as "tm"; that is: --> <!-- * --> <!-- * Product™ -> Producttm --> <!-- * --> <!-- * So we just make it to "(TM)" instead; thus: --> <!-- * --> <!-- * Product™ -> Product(TM) --> <substitution oldstring="™" newstring="(TM)"/> </xsl:param> <xsl:param name="man.string.subst.map.local.post"/> <xsl:param name="man.string.subst.map.local.pre"/> <xsl:param name="man.subheading.divider.enabled">0</xsl:param> <xsl:param name="man.subheading.divider">========================================================================</xsl:param> <xsl:param name="man.table.footnotes.divider">----</xsl:param> <xsl:param name="man.th.extra1.suppress">0</xsl:param> <xsl:param name="man.th.extra2.max.length">30</xsl:param> <xsl:param name="man.th.extra2.suppress">0</xsl:param> <xsl:param name="man.th.extra3.max.length">30</xsl:param> <xsl:param name="man.th.extra3.suppress">0</xsl:param> <xsl:param name="man.th.title.max.length">20</xsl:param> <xsl:param name="refentry.date.profile.enabled">0</xsl:param> <xsl:param name="refentry.date.profile"> (($info[//d:date])[last()]/d:date)[1]| (($info[//d:pubdate])[last()]/d:pubdate)[1] </xsl:param> <xsl:param name="refentry.manual.fallback.profile"> d:refmeta/d:refmiscinfo[not(@class = 'date')][1]/node()</xsl:param> <xsl:param name="refentry.manual.profile.enabled">0</xsl:param> <xsl:param name="refentry.manual.profile"> (($info[//title])[last()]/title)[1]| ../title/node() </xsl:param> <xsl:param name="refentry.meta.get.quietly" select="0"/> <xsl:param name="refentry.source.fallback.profile"> d:refmeta/d:refmiscinfo[not(@class = 'date')][1]/node()</xsl:param> <xsl:param name="refentry.source.name.profile.enabled">0</xsl:param> <xsl:param name="refentry.source.name.profile"> (($info[//productname])[last()]/productname)[1]| (($info[//corpname])[last()]/corpname)[1]| (($info[//corpcredit])[last()]/corpcredit)[1]| (($info[//corpauthor])[last()]/corpauthor)[1]| (($info[//orgname])[last()]/orgname)[1]| (($info[//publishername])[last()]/publishername)[1] </xsl:param> <xsl:param name="refentry.source.name.suppress">0</xsl:param> <xsl:param name="refentry.version.profile.enabled">0</xsl:param> <xsl:param name="refentry.version.profile"> (($info[//d:productnumber])[last()]/d:productnumber)[1]| (($info[//d:edition])[last()]/d:edition)[1]| (($info[//d:releaseinfo])[last()]/d:releaseinfo)[1] </xsl:param> <xsl:param name="refentry.version.suppress">0</xsl:param> </xsl:stylesheet>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 26953 | Paul Allen | Move //guest/perforce_software/p4convert to //guest/perforce_software/p4convert/main | ||
//guest/perforce_software/p4convert/docs/docbook-xsl-ns-1.78.1/manpages/param.xsl | |||||
#2 | 14806 | Paul Allen | Update docs and add +w. | ||
#1 | 13920 | Paul Allen | copy part 2 (no errors) | ||
//guest/paul_allen/p4convert-maven/docs/docbook-xsl-ns-1.78.1/manpages/param.xsl | |||||
#1 | 13895 | Paul Allen | Copying using p4convert-docbook | ||
//guest/perforce_software/doc_build/main/docbook-xsl-ns-1.78.1/manpages/param.xsl | |||||
#1 | 12728 | eedwards |
Upgrade ANT doc build infrastructure to assemble PDFs: - remove non-namespaced DocBook source and add namespaced DocBook source. - add Apache FOP 1.1 - copy fonts, images, XSL into _build, establishing new asset structure. The original structure remains until all guides using it can be upgraded, and several other issues can be resolved. - updated build.xml to allow for per-target build properties. - upgraded the P4SAG to use the new infrastructure. - tweaked admonition presentation in PDFs to remove admonition graphics, and resemble closely the presentation used in the new HTML layout, including the same colors. With these changes, building PDFs involves using a shell, navigating into the guide's directory (just P4SAG for now), and executing "ant pdf". Issues still to be resolved: - PDF generation encounters several warnings about missing fonts (bold versions of Symbol and ZapfDingbats), and a couple of locations where the page content exceeds the defined content area. - Due to issues within Apache FOP, PDF generation emits a substantial amount of output that is not easily suppressed without losing important warning information. - Apache FOP's interface to ANT does not expose a way to set the font base directory. The current configuration does work under Mac OSX, but further testing on Windows will need to be done to determine if the relative paths defined continue to work. The workaround is for Windows users to customize the fop-config.xml to provide absolute system paths to the required fonts. - HTML generation needs further browser testing, and exhibits broken navigation on iOS browsers within the TOC sidebar. - A number of PDF and HTML presentation tweaks still need to be made, for example: sidebars, gui* DocBook tags, whitespace, section separation, etc. |