|
43 | 43 | ------
|
44 | 44 |
|
45 | 45 | </xsl:value-of>
|
46 |
| - <xsl:for-each select="$u//unicodedata[@mathclass]"> |
| 46 | + <xsl:for-each select="$u//character[unicodedata[@mathclass] or mathlatex[@set='unicode-math']]"> |
47 | 47 | <xsl:choose>
|
48 |
| - <xsl:when test="../mathlatex[@set='unicode-math']"> |
| 48 | + <xsl:when test="mathlatex[@set='unicode-math']"> |
49 | 49 | <xsl:variable name="cs" select="
|
50 |
| - if(contains(../description,'GREEK')) |
| 50 | + if(contains(description,'GREEK')) |
51 | 51 | then
|
52 |
| - replace(../mathlatex[@set='unicode-math'],'\\','\\m?') |
| 52 | + replace(mathlatex[@set='unicode-math'],'\\','\\m?') |
53 | 53 | else
|
54 |
| - replace(../mathlatex[@set='unicode-math'],' ','space') |
| 54 | + replace(mathlatex[@set='unicode-math'],' ','space') |
55 | 55 | "/>
|
56 | 56 | <xsl:variable name="re" select="concat('.*\',$cs,' *\}\{([^\{\}]*)\}.*')"/>
|
57 | 57 | <xsl:variable name="um" select="($umt[matches(.,$re)]!replace(.,$re,'$1'),'???')[1]"/>
|
58 |
| - <xsl:if test="not( |
| 58 | + <xsl:if test="unicodedata/not( |
59 | 59 | (@mathclass='R' and $um='\mathrel')
|
60 | 60 | or (@mathclass='B' and $um='\mathbin')
|
61 | 61 | or (@mathclass='V' and $um='\mathbin')
|
|
70 | 70 | or (@mathclass='L' and $um='\mathop')
|
71 | 71 | or (@mathclass='D' and $um='\mathaccent')
|
72 | 72 | )">
|
73 |
| - <xsl:value-of select="../@id, '|', $cs, '|', @mathclass,'|',$um,' '"/> |
| 73 | + <xsl:value-of select="@id, ' | ', |
| 74 | + $cs,substring($pad,string-length($cs)), ' | ', |
| 75 | + (unicodedata/@mathclass,'!')[1],' | ', |
| 76 | + $um,substring($pad2,string-length($um)), ' | ', |
| 77 | + description,' '" separator=""/> |
74 | 78 | </xsl:if>
|
75 | 79 | </xsl:when>
|
76 |
| - <xsl:when test="../@dec < 128"/> |
| 80 | + <xsl:when test="@dec < 128"/> |
77 | 81 | <xsl:otherwise>
|
78 |
| - <xsl:value-of select="../@id, '| *** |', @mathclass,'| ***',' '"/> |
| 82 | + <xsl:value-of select="@id, ' | *** | ', |
| 83 | + unicodedata/@mathclass, |
| 84 | + ' | *** | ', |
| 85 | + description,' '" separator=""/> |
79 | 86 | </xsl:otherwise>
|
80 | 87 | </xsl:choose>
|
81 | 88 | </xsl:for-each>
|
82 | 89 | </xsl:template>
|
| 90 | + |
| 91 | + <xsl:variable name="pad" select="' '"/> |
| 92 | + <xsl:variable name="pad2" select="' '"/> |
| 93 | + |
83 | 94 | </xsl:stylesheet>
|
84 | 95 |
|
85 | 96 |
|
|
0 commit comments