Skip to content

Commit ef08c28

Browse files
committed
extend Roman numeral example
1 parent 60c6e47 commit ef08c28

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

intent-examples/addmathcat.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ def ApplyMathCAT (i,mml,firstln):
110110
ApplyMathCAT(1,mml,True)
111111
mml=re.sub(r"<math intent=':common'",r"<math intent=':literal'",mml)
112112
ApplyMathCAT(1,mml,True)
113-
mml=re.sub(r"<math intent=':literal'",r"<math intent=':chemical-formula'",mml)
114-
ApplyMathCAT(1,mml,True)
115-
# print("</td>")
113+
# mml=re.sub(r"<math intent=':literal'",r"<math intent=':chemical-formula'",mml)
114+
# ApplyMathCAT(1,mml,True)
116115
print("</td>")
117116
else:
118117
mmltd=re.sub(r'<t(d|h)([^<>]*)>([^<>]*)</t[dh]>\s*</tr>',

intent-examples/examples.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ <h1>Intent Examples</h1>
134134
<tr>
135135
<td>
136136
<math display='block'>
137-
<mi>XVI</mi>
137+
<mi>X</mi><mo>,</mo><mi>XVI</mi>
138138
</math>
139139
</td>
140140
<td>
141141
<math display='block'>
142-
<mi intent=':roman-numeral'>XVI</mi>
142+
<mi intent=':roman-numeral'>X</mi><mo>,</mo><mi intent=':roman-numeral'>XVI</mi>
143143
</math>
144144
</td>
145145
<td>\text{XVI}</td>

0 commit comments

Comments
 (0)