[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Title placement and guibuttons with a frame around -> FO o...
Andreas
In regards to your second issue, have you tried
"<keycap>Ok</keycap>" ?
Here is my stylesheet for keycaps and keycombo that will outline a phrase.
This may work for you.
Regards,
Dean Nelson
*********************************************
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" > <xsl:template
name="inline.sansseq">
<xsl:param name="content"> <xsl:apply-templates/> </xsl:param> <fo:inline font-family="{$sans.font.family}"> <xsl:if test="@id"> <xsl:attribute name="id"> <xsl:value-of select="@id"/> </xsl:attribute> </xsl:if> <xsl:if test="@dir"> <xsl:attribute name="direction"> <xsl:choose> <xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when> <xsl:otherwise>rtl</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:if> <xsl:copy-of select="$content"/> </fo:inline> </xsl:template> <xsl:template match="keycap"> <xsl:param name="key.contents" select="."/> <xsl:variable name="key.length" select="string-length($key.contents)"/> <fo:inline font-size="7.5pt" border="0.45pt solid black" padding-top="2pt" padding-bottom="0.75pt" padding-left="2pt" padding-right="2pt">
<xsl:choose>
<!-- NovDoc style keycaps --> <xsl:when test="@function"> <xsl:call-template name="inline.sansseq"> <xsl:with-param name="content"> <xsl:value-of select="@function"/> </xsl:with-param> </xsl:call-template> </xsl:when> <!-- regular Docbook Keycaps --> <xsl:otherwise> <xsl:call-template name="inline.sansseq"/> </xsl:otherwise> </xsl:choose> </fo:inline> </xsl:template>
<xsl:template
match="keycombo">
<xsl:variable name="action" select="@action"/> <xsl:variable name="joinchar"> <xsl:choose> <xsl:when test="$action='seq'"> – </xsl:when> <xsl:when test="$action='press'"> + </xsl:when> <xsl:when test="$action='other'"></xsl:when> <xsl:otherwise> + </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:for-each select="*"> <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if> <xsl:apply-templates select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet> **************************************
In a message dated 5/28/2008 8:25:44 A.M. Pacific Daylight Time,
keh@parsytec.de writes:
Hey folks! Get trade secrets for amazing burgers. Watch "Cooking with Tyler Florence" on AOL Food. |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]