Changeset 740 for vendor/current/docs-xml/xslt/man.xsl
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/docs-xml/xslt/man.xsl
r414 r740 27 27 <xsl:if test="$content = ''"> 28 28 <xsl:apply-templates mode="italic" select="@url" /> 29 </xsl:if>30 </xsl:template>31 32 <xsl:template match="itemizedlist/listitem">33 <!-- * We output a real bullet here (rather than, "\(bu", -->34 <!-- * the roff bullet) because, when we do character-map -->35 <!-- * processing before final output, the character-map will -->36 <!-- * handle conversion of the • to "\(bu" for us -->37 <xsl:text> </xsl:text>38 <xsl:text>.sp</xsl:text>39 <xsl:text> </xsl:text>40 <xsl:text>.RS</xsl:text>41 <xsl:if test="not($list-indent = '')">42 <xsl:text> </xsl:text>43 <xsl:value-of select="$list-indent"/>44 </xsl:if>45 <xsl:text> </xsl:text>46 <!-- * if "n" then we are using "nroff", which means the output is for -->47 <!-- * TTY; so we do some fixed-width-font hackery with \h to make a -->48 <!-- * hanging indent (instead of using .IP, which has some -->49 <!-- * undesirable side effects under certain circumstances) -->50 <xsl:call-template name="roff-if-else-start"/>51 <xsl:text>\h'-</xsl:text>52 <xsl:choose>53 <xsl:when test="not($list-indent = '')">54 <xsl:text>0</xsl:text>55 <xsl:value-of select="$list-indent"/>56 </xsl:when>57 <xsl:otherwise>58 <xsl:text>\n(INu</xsl:text>59 </xsl:otherwise>60 </xsl:choose>61 <xsl:text>'</xsl:text>62 <xsl:text>•</xsl:text>63 <xsl:text>\h'+</xsl:text>64 <xsl:choose>65 <xsl:when test="not($list-indent = '')">66 <xsl:text>0</xsl:text>67 <xsl:value-of select="$list-indent - 1"/>68 </xsl:when>69 <xsl:otherwise>70 <xsl:text>\n(INu-1</xsl:text>71 </xsl:otherwise>72 </xsl:choose>73 <xsl:text>'\c </xsl:text>74 <!-- * else, we are not using for "nroff", but instead "troff" - which -->75 <!-- * means not for TTY, but for PS or whatever; so weâre not using a -->76 <!-- * fixed-width font, so use a real .IP instead -->77 <xsl:call-template name="roff-else"/>78 <!-- * .IP generates a blank like of space, so letâs go backwards one -->79 <!-- * line up to compensate for that -->80 <xsl:text>.sp -1 </xsl:text>81 <xsl:text>.IP \(bu 2.3 </xsl:text>82 <!-- * The value 2.3 is the amount of indentation; we use 2.3 instead -->83 <!-- * of 2 because when the font family is New Century Schoolbook it -->84 <!-- * seems to require the extra space. -->85 <xsl:call-template name="roff-if-end"/>86 <xsl:apply-templates/>87 <xsl:if test=" following-sibling::listitem">88 <xsl:text> .RE </xsl:text>89 29 </xsl:if> 90 30 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.