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
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:bcf="https://sourceforge.net/projects/biblatex"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="xs xsl bcf"
version="1.0">
<!-- Use strict Doctype otherwise IE7 is too stupid to do tables correctly -->
<xsl:output method="html"
media-type="text/html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="yes"
encoding="UTF-8"/>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Biber UTF-8 <xsl:text disable-output-escaping="yes">&harr;</xsl:text> LaTeX macro decoding/encoding map</title>
<style type="text/css">
h2,h3,h4 {
font-family: Arial,sans-serif;
}
.key {
font-size: 70%;
padding-top: 2ex;
}
.macro, .hex {
font-family: "Courier New", Courier, monospace ;
}
@font-face {
font-family: unifont;
src: url(http://sourceforge.net/projects/biblatex-biber/files/biblatex-biber/testfiles/unifont.ttf) format("truetype");
}
.utf8 {
font-family: unifont;
}
.preferred {
color: #FF0000;
font-family: "Courier New", Courier, monospace ;
}
.raw {
color: #DD0000;
font-family: "Courier New", Courier, monospace ;
}
ul {
list-style-type: none;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
padding-top: 0;
padding-bottom: 0;
padding-right: 0;
}
table {
border-width: 1px;
border-spacing: 2px;
border-style: hidden;
border-color: gray;
border-collapse: collapse;
background-color: white;
}
table thead {
background-color: #FAF0E6;
text-align: center;
}
table td {
wrap: soft;
vertical-align: text-top;
line-height: 1;
padding: 0px 5px 0px 5px;
border-width: 1px;
border-style: inset;
border-color: gray;
}
</style>
</head>
<body>
<h2><tt>Biber</tt> UTF-8 <xsl:text disable-output-escaping="yes">&harr;</xsl:text> LaTeX macro decoding/encoding map</h2>
<p>If you are using PDFTeX as opposed to a native UTF-8 engine like
XeTeX or LuaTeX, you will have to load some extra packages to use
macros in this section. See the "symbols" document that
comes with TeXLive for a comprehensive list of symbols and the
packages you need for PDFTeX (run "texdoc symbols" to see
this document on a TeXLive system).</p>
<div class="key"><u>Key</u>
<ul>
<li><span class="preferred">In encoding mapping (UTF-8 <xsl:text disable-output-escaping="yes">&rarr;</xsl:text> LaTeX macros), when there are multiple possible mappings, red highlighted macro is the preferred mapping</span></li>
<li><span class="raw">In encoding mapping, insert the encoded
form as-is with no wrapping braces or escaping etc.</span></li>
</ul>
</div>
<hr/>
<h3>Excluded from encoding (ignore LaTeX special chars)</h3>
<table>
<thead>
<tr><td>Character</td></tr>
</thead>
<tbody>
<xsl:for-each select="/texmap/encode_exclude/char">
<tr>
<td><span class="macro"><xsl:value-of select="./text()"/></span></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<hr/>
<xsl:for-each select="/texmap/maps">
<h3><xsl:value-of select="./@type"/> (sets: <xsl:value-of select="./@set"/>)</h3>
<table>
<thead>
<tr><td>Macro</td><td>Unicode character</td><td>Unicode hex value</td></tr>
</thead>
<tbody>
<xsl:for-each select="./map">
<tr>
<xsl:if test="./from/@preferred='1'">
<xsl:attribute name="class">preferred</xsl:attribute>
</xsl:if>
<xsl:if test="./from/@raw='1'">
<xsl:attribute name="class">raw</xsl:attribute>
</xsl:if>
<td><span class="macro">\<xsl:value-of select="./from/text()"/></span></td>
<td><span class="utf8"><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text><xsl:value-of select="./to/text()"/></span></td>
<td><span class="hex"><xsl:value-of select="./to/@hex"/></span></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<hr/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<!--
Copyright 2012-2025 Philip Kime, all rights reserved.
This code is free software. You can redistribute it and/or
modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful,
but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
-->
|