<!-- * the roff bullet) because, when we do character-map -->
<!-- * processing before final output, the character-map will -->
<!-- * handle conversion of the • to "\(bu" for us -->
- <xsl:text>• </xsl:text>
- <xsl:apply-templates/>
- <xsl:if test="following-sibling::listitem">
- <xsl:text>.TP</xsl:text>
+ <xsl:text> </xsl:text>
+ <xsl:text>.RS</xsl:text>
+ <xsl:if test="not($list-indent = '')">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$list-indent"/>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+ <xsl:text>\h'-</xsl:text>
<xsl:if test="not($list-indent = '')">
- <xsl:text> </xsl:text>
- <xsl:value-of select="$list-indent"/>
- </xsl:if>
- <xsl:text> </xsl:text>
+ <xsl:text>0</xsl:text>
+ <xsl:value-of select="$list-indent"/>
+ </xsl:if>
+ <xsl:text>'</xsl:text>
+ <xsl:text>•</xsl:text>
+ <xsl:text>\h'+</xsl:text>
+ <xsl:if test="not($list-indent = '')">
+ <xsl:text>0</xsl:text>
+ <xsl:value-of select="$list-indent - 1"/>
+ <xsl:text>'</xsl:text>
</xsl:if>
+ <xsl:apply-templates/>
+ <xsl:text>.RE </xsl:text>
</xsl:template>
<xsl:template match="orderedlist/listitem|procedure/step">
- <xsl:number format="1."/>
<xsl:text> </xsl:text>
- <xsl:apply-templates/>
- <xsl:if test="position()!=last()">
- <xsl:text>.TP</xsl:text>
+ <xsl:text>.RS</xsl:text>
+ <xsl:if test="not($list-indent = '')">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$list-indent"/>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+ <xsl:text>\h'-</xsl:text>
<xsl:if test="not($list-indent = '')">
- <xsl:text> </xsl:text>
- <xsl:value-of select="$list-indent"/>
- </xsl:if>
- <xsl:text> </xsl:text>
+ <xsl:text>0</xsl:text>
+ <xsl:value-of select="$list-indent"/>
+ </xsl:if>
+ <xsl:text>'</xsl:text>
+ <xsl:if test="count(preceding-sibling::listitem) < 9">
+ <xsl:text> </xsl:text>
</xsl:if>
+ <xsl:number format="1."/>
+ <xsl:text>\h'+</xsl:text>
+ <xsl:if test="not($list-indent = '')">
+ <xsl:text>0</xsl:text>
+ <xsl:value-of select="$list-indent - 2"/>
+ <xsl:text>'</xsl:text>
+ </xsl:if>
+ <xsl:apply-templates/>
+ <xsl:text>.RE </xsl:text>
+ <xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="itemizedlist|orderedlist|procedure">
<!-- * content (if any) before getting the list items -->
<xsl:apply-templates
select="*[not(self::listitem) and not(self::title)]"/>
- <xsl:text>.TP</xsl:text>
- <xsl:if test="not($list-indent = '')">
- <xsl:text> </xsl:text>
- <xsl:value-of select="$list-indent"/>
- </xsl:if>
- <xsl:text> </xsl:text>
<xsl:apply-templates select="listitem"/>
<!-- * If this list is a child of para and has content following -->
<!-- * it, within the same para, then add a blank line and move -->
<xsl:template match="itemizedlist[ancestor::listitem or ancestor::step or ancestor::glossdef]|
orderedlist[ancestor::listitem or ancestor::step or ancestor::glossdef]|
procedure[ancestor::listitem or ancestor::step or ancestor::glossdef]">
- <xsl:text>.RS</xsl:text>
- <xsl:if test="not($list-indent = '')">
- <xsl:text> </xsl:text>
- <xsl:value-of select="$list-indent"/>
- </xsl:if>
- <xsl:text> </xsl:text>
<xsl:if test="title">
<xsl:text>.PP </xsl:text>
<xsl:apply-templates mode="bold" select="title"/>
<xsl:text> </xsl:text>
</xsl:if>
- <xsl:text>.TP</xsl:text>
- <xsl:if test="not($list-indent = '')">
- <xsl:text> </xsl:text>
- <xsl:value-of select="$list-indent"/>
- </xsl:if>
- <xsl:text> </xsl:text>
<xsl:apply-templates/>
- <xsl:text>.RE </xsl:text>
<xsl:if test="following-sibling::node() or
parent::para[following-sibling::node()] or
parent::simpara[following-sibling::node()] or
<substitution oldstring="\\fI" newstring="\fI"/>
<substitution oldstring="\\fR" newstring="\fR"/>
<substitution oldstring="\\n" newstring="\n"/>
+ <substitution oldstring="\\h" newstring="\h"/>
<!-- * requests in .SH sectsions output from Refsect1-level source -->
<!-- * end up getting capitalized... -->
<substitution oldstring="\\FB" newstring="\fB"/>
<substitution oldstring="-" newstring="\-"/>
<!-- * now, we need to restore single-hypens in all roff requests -->
<!-- * (because the substitution above added backslashes before them) -->
+ <substitution oldstring="\h'\-" newstring="\h'-"/>
<substitution oldstring=".sp \-" newstring=".sp -"/>
<substitution oldstring=".it 1 an\-trap" newstring=".it 1 an-trap"/>
<substitution oldstring=".nr an\-no\-space\-flag 1" newstring=".nr an-no-space-flag 1"/>