Skip to content

Commit 8f75633

Browse files
committed
combining chars table
1 parent b2b6345 commit 8f75633

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

characters-restyle.xsl

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ string-length(description))"/>
10781078

10791079

10801080
<xsl:for-each select="$u/unicode/charlist/character
1081-
[contains(@id,'-') or starts-with(description,'COMBINING')]
1081+
[contains(@id,'-') (:or starts-with(description,'COMBINING'):)]
10821082
[entity[@set=/unicode/entitygroups/group[@name='2007']/set/@name]/@id]
10831083
[not(matches(@id,'(020D2|020E5|022D2|00338|0FE00)$'))]">
10841084
<xsl:sort select="starts-with(description,'COMBINING')"/>
@@ -1115,6 +1115,55 @@ string-length(description))"/>
11151115
</table>
11161116
</xsl:template>
11171117

1118+
<xsl:template match="p[@id='combining-start']">
1119+
<table class="complex data">
1120+
<thead>
1121+
<tr>
1122+
<th>Entity</th>
1123+
<th>Set</th>
1124+
<th>Description</th>
1125+
<th colspan="3">Unicode Character</th>
1126+
</tr>
1127+
</thead>
1128+
<tbody>
1129+
1130+
1131+
<xsl:for-each select="$u/unicode/charlist/character
1132+
[(:contains(@id,'-') or :) starts-with(description,'COMBINING') ]
1133+
[entity[@set=/unicode/entitygroups/group[@name='2007']/set/@name]/@id]
1134+
[not(matches(@id,'(020D2|020E5|022D2|00338|0FE00)$'))]">
1135+
<xsl:sort select="starts-with(description,'COMBINING')"/>
1136+
<xsl:sort select="@id"/>
1137+
<xsl:variable name="id" select="@id"/>
1138+
<xsl:for-each select="entity[@set=/unicode/entitygroups/group[@name='2007']/set/@name]">
1139+
<tr class="combine">
1140+
<td><xsl:value-of select="@id"/></td>
1141+
<td><xsl:value-of select="replace(@set,'9573-2003-','')"/></td>
1142+
<td><xsl:value-of select="desc"/></td>
1143+
<xsl:if test="position()=1">
1144+
<td rowspan="{last()}">
1145+
<xsl:value-of select="d:uplus($id)"/>
1146+
</td>
1147+
<td rowspan="{last()}">
1148+
<img height="32"
1149+
width="32"
1150+
src="{$pathfrommain}{$glyphs}/{substring($id,2,3)}/{translate($id,'x','')}.png"
1151+
alt="{$id}"
1152+
>
1153+
<xsl:if test="@image='none'"><xsl:attribute
1154+
name="src"><xsl:value-of select="$glyphs"/>/none.png</xsl:attribute></xsl:if>
1155+
</img>
1156+
</td>
1157+
<td rowspan="{last()}">
1158+
<xsl:value-of select="../description"/>
1159+
</td>
1160+
</xsl:if>
1161+
</tr>
1162+
</xsl:for-each>
1163+
</xsl:for-each>
1164+
</tbody>
1165+
</table>
1166+
</xsl:template>
11181167

11191168
<xsl:template name="letter-like">
11201169
<xsl:param name="mathvariant"/>

docs/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ <h3><a id="chars_math-multiple-tables"></a>A.3 Multiple Character Entities</h3>
349349
the following table lists the remaining entity replacement texts that
350350
consist of more than one character.
351351
</p>
352-
<table class="complex data"><thead><tr><th>Entity</th><th>Set</th><th>Description</th><th colspan="3">Unicode Character</th></tr></thead><tbody><tr class="combine"><td>fjlig</td><td>isopub</td><td>small fj ligature</td><td rowspan="1">U+0066 U+006A</td><td rowspan="1"><img height="32" width="32" src="glyphs/000/U00066-0006A.png" alt="U00066-0006A"></td><td rowspan="1">fj ligature</td></tr><tr class="combine"><td>ThickSpace</td><td>mmlextra</td><td>space of width 5/18 em</td><td rowspan="1">U+205F U+200A</td><td rowspan="1"><img height="32" width="32" src="glyphs/020/U0205F-0200A.png" alt="U0205F-0200A"></td><td rowspan="1">space of width 5/18 em</td></tr><tr class="combine"><td>race</td><td>isoamsb</td><td>reverse most positive, line below</td><td rowspan="1">U+223D U+0331</td><td rowspan="1"><img height="32" width="32" src="glyphs/022/U0223D-00331.png" alt="U0223D-00331"></td><td rowspan="1">REVERSED TILDE with underline</td></tr><tr class="combine"><td>acE</td><td>isoamsb</td><td>most positive, two lines below</td><td rowspan="1">U+223E U+0333</td><td rowspan="1"><img height="32" width="32" src="glyphs/022/U0223E-00333.png" alt="U0223E-00333"></td><td rowspan="1">INVERTED LAZY S with double underline</td></tr><tr class="combine"><td>DownBreve</td><td>mmlextra</td><td>breve, inverted (non-spacing)</td><td rowspan="1">U+0020 U+0311</td><td rowspan="1"><img height="32" width="32" src="glyphs/003/U00311.png" alt="U00311"></td><td rowspan="1">COMBINING INVERTED BREVE</td></tr><tr class="combine"><td>tdot</td><td>isotech</td><td>three dots above</td><td rowspan="2">U+0020 U+20DB</td><td rowspan="2"><img height="32" width="32" src="glyphs/020/U020DB.png" alt="U020DB"></td><td rowspan="2">COMBINING THREE DOTS ABOVE</td></tr><tr class="combine"><td>TripleDot</td><td>mmlalias</td><td>alias ISOTECH tdot</td></tr><tr class="combine"><td>DotDot</td><td>isotech</td><td>four dots above</td><td rowspan="1">U+0020 U+20DC</td><td rowspan="1"><img height="32" width="32" src="glyphs/020/U020DC.png" alt="U020DC"></td><td rowspan="1">COMBINING FOUR DOTS ABOVE</td></tr></tbody></table>
352+
<table class="complex data"><thead><tr><th>Entity</th><th>Set</th><th>Description</th><th colspan="3">Unicode Character</th></tr></thead><tbody><tr class="combine"><td>fjlig</td><td>isopub</td><td>small fj ligature</td><td rowspan="1">U+0066 U+006A</td><td rowspan="1"><img height="32" width="32" src="glyphs/000/U00066-0006A.png" alt="U00066-0006A"></td><td rowspan="1">fj ligature</td></tr><tr class="combine"><td>ThickSpace</td><td>mmlextra</td><td>space of width 5/18 em</td><td rowspan="1">U+205F U+200A</td><td rowspan="1"><img height="32" width="32" src="glyphs/020/U0205F-0200A.png" alt="U0205F-0200A"></td><td rowspan="1">space of width 5/18 em</td></tr><tr class="combine"><td>race</td><td>isoamsb</td><td>reverse most positive, line below</td><td rowspan="1">U+223D U+0331</td><td rowspan="1"><img height="32" width="32" src="glyphs/022/U0223D-00331.png" alt="U0223D-00331"></td><td rowspan="1">REVERSED TILDE with underline</td></tr><tr class="combine"><td>acE</td><td>isoamsb</td><td>most positive, two lines below</td><td rowspan="1">U+223E U+0333</td><td rowspan="1"><img height="32" width="32" src="glyphs/022/U0223E-00333.png" alt="U0223E-00333"></td><td rowspan="1">INVERTED LAZY S with double underline</td></tr></tbody></table>
353353
<p>Unicode does not have an fj character, although the other common f ligatures
354354
such as fi (U+FB01) are contained in the Alphabetic Presentation Forms block.
355355
The <b>fjlig</b> entity is mapped to the pair of characters "fj";
@@ -373,9 +373,7 @@ <h3><a id="chars_math-combining-tables"></a>A.4 Entities Defined to be a Combini
373373
The following table lists the entity replacement texts that
374374
consist of a combining character.
375375
</p>
376-
377-
<p id="combining-start"></p>
378-
376+
<table class="complex data"><thead><tr><th>Entity</th><th>Set</th><th>Description</th><th colspan="3">Unicode Character</th></tr></thead><tbody><tr class="combine"><td>DownBreve</td><td>mmlextra</td><td>breve, inverted (non-spacing)</td><td rowspan="1">U+0311</td><td rowspan="1"><img height="32" width="32" src="glyphs/003/U00311.png" alt="U00311"></td><td rowspan="1">COMBINING INVERTED BREVE</td></tr><tr class="combine"><td>tdot</td><td>isotech</td><td>three dots above</td><td rowspan="2">U+20DB</td><td rowspan="2"><img height="32" width="32" src="glyphs/020/U020DB.png" alt="U020DB"></td><td rowspan="2">COMBINING THREE DOTS ABOVE</td></tr><tr class="combine"><td>TripleDot</td><td>mmlalias</td><td>alias ISOTECH tdot</td></tr><tr class="combine"><td>DotDot</td><td>isotech</td><td>four dots above</td><td rowspan="1">U+20DC</td><td rowspan="1"><img height="32" width="32" src="glyphs/020/U020DC.png" alt="U020DC"></td><td rowspan="1">COMBINING FOUR DOTS ABOVE</td></tr></tbody></table>
379377
<p>For reasons explained further in <a href="#Charmod-norm">[Charmod-norm]</a>, it is
380378
not advisable to start the replacement text of an entity with a
381379
combining character, as then potentially different results may be

0 commit comments

Comments
 (0)