1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
|
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:k="http://www.inkscape.org/namespaces/keys"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="k #default inkscape sodipodi xlink"
>
<xsl:output method="html" encoding="utf-8" indent="no" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>
<xsl:template match="k:root">
<xsl:comment>
Do not edit this file.
It is generated automatically from doc/keys.xml by doc/keys-html.xsl.
</xsl:comment>
<html>
<head>
<title>Inkscape keys and mouse reference</title>
<style type="text/css">
.key {font-weight: bold}
.action {}
.note {padding-left: 10em; font-size: 70%}
.contents {padding: 1em; padding-left: 5em; background-color: #eeeeee; font-size: small; line-height: 1.7em;}
.contents-title {font-size: large; font-weight: bold; letter-spacing: 0.4em;}
.contents-section {font-size: large; font-weight: bold;}
.contents-group {font-size: small; }
body {margin: 1em; background-color: #ffffff;}
h1 {margin-top: 0.5em; padding-left: 2em; padding-bottom: 0em; margin-bottom: 0em; letter-spacing: -0.02em}
h2 {margin-top: 0.0em; padding-left: 6em; padding-bottom: 0em; margin-bottom: 0em; font-size: small;}
h4 {font-weight: bold; font-style: italic; margin-top: 1em; padding-left: 5em; padding-bottom: 0em; margin-bottom: 0em}
</style>
</head>
<body>
<h1><xsl:value-of select="/k:root/@title"/></h1>
<h2>Version <xsl:value-of select="/k:root/@ver"/></h2>
<xsl:apply-templates select="k:p"/>
<p class="contents"><span class="contents-title">Contents:</span><xsl:text> </xsl:text>
<xsl:for-each select="//k:section">
<a class="contents-section" href="#{generate-id()}"><xsl:value-of select="./@title"/></a>
<xsl:if test="./k:group[k:title]">
<span class="contents-section">: </span>
</xsl:if>
<xsl:for-each select="./k:group[k:title]">
<a class="contents-group" href="#{generate-id()}"><xsl:value-of select="./k:title"/></a>
<xsl:if test="following-sibling::k:group[k:title]"><xsl:text> · </xsl:text></xsl:if>
</xsl:for-each>
<span class="contents-section"><xsl:if test="following::k:section"><xsl:text> | </xsl:text></xsl:if></span>
</xsl:for-each>
</p>
<center>
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<xsl:apply-templates select="k:column"/>
</table>
</center>
<p>
<a href="http://validator.w3.org/check/referer"><img border="0"
src="http://www.w3.org/Icons/valid-html40"
alt="Valid HTML 4.0!" height="31" width="88" /></a>
</p>
</body>
</html>
</xsl:template>
<xsl:template match="k:p">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="k:a">
<a href="{@href}"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="k:root/text() | k:column/text()"/>
<xsl:template match="k:column">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="k:section">
<tr><td colspan="3"><a name="{generate-id()}"/><h1><xsl:value-of select="@title"/></h1></td></tr>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="k:group/k:title">
<tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><h4><a name="{generate-id(..)}"/><xsl:value-of select="text()"/></h4></td></tr>
</xsl:template>
<xsl:template match="k:note">
<tr bgcolor="{ancestor::k:section/@color}"><td colspan="3"><span class="note"><xsl:value-of select="text()"/></span></td></tr>
</xsl:template>
<xsl:template match="k:keys | k:mouse">
<tr bgcolor="{ancestor::k:section/@color}">
<td align="right" width="40%">
<xsl:choose>
<xsl:when test="count(k:key) = 2">
<span class="key"><xsl:apply-templates select="k:key[1]"/></span>,
<span class="key"><xsl:apply-templates select="k:key[2]"/></span>
</xsl:when>
<xsl:otherwise>
<span class="key"><xsl:apply-templates select="k:key[1]"/></span>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<span class="action">
<xsl:apply-templates select="k:action"/>
</span>
</td>
</tr>
</xsl:template>
<xsl:template match="k:action">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="k:key">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="k:shift">
<xsl:text>Shift+</xsl:text>
</xsl:template>
<xsl:template match="k:ctrl">
<xsl:text>Ctrl+</xsl:text>
</xsl:template>
<xsl:template match="k:alt">
<xsl:text>Alt+</xsl:text>
</xsl:template>
<xsl:template match="k:left">
<xsl:text>Left </xsl:text>
</xsl:template>
<xsl:template match="k:right">
<xsl:text>Right </xsl:text>
</xsl:template>
<xsl:template match="k:keyf | k:misc | k:misc-wide">
<xsl:value-of select="@f"/>
</xsl:template>
<xsl:template match="k:arrows">
<xsl:text>arrows</xsl:text>
</xsl:template>
<xsl:template match="k:up">
<xsl:text>Up arrow</xsl:text>
</xsl:template>
<xsl:template match="k:down">
<xsl:text>Down arrow</xsl:text>
</xsl:template>
<xsl:template match="k:left-arrow">
<xsl:text>Left arrow</xsl:text>
</xsl:template>
<xsl:template match="k:right-arrow">
<xsl:text>Right arrow</xsl:text>
</xsl:template>
<xsl:template match="k:up-arrow">
<xsl:text>Up arrow</xsl:text>
</xsl:template>
<xsl:template match="k:down-arrow">
<xsl:text>Down arrow</xsl:text>
</xsl:template>
<xsl:template match="k:wheel">
<xsl:text>mouse wheel</xsl:text>
</xsl:template>
<xsl:template match="k:left-drag">
<xsl:text>mouse drag</xsl:text>
</xsl:template>
<xsl:template match="k:left-click">
<xsl:text>click</xsl:text>
</xsl:template>
<xsl:template match="k:mid-drag">
<xsl:text>middle button drag</xsl:text>
</xsl:template>
<xsl:template match="k:mid-click">
<xsl:text>middle click</xsl:text>
</xsl:template>
<xsl:template match="k:right-drag">
<xsl:text>right button drag</xsl:text>
</xsl:template>
<xsl:template match="k:right-click">
<xsl:text>right click</xsl:text>
</xsl:template>
</xsl:stylesheet>
|