Skip to content

Commit

Permalink
extend Roman numeral example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Nov 10, 2024
1 parent 6dc87c9 commit a9720a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions intent-examples/addmathcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ def ApplyMathCAT (i,mml,firstln):
i=i+1
if(i % 3 == 2):
print("<tr>")
print("<td n=2>")
print("<td>")
print(mmltd)
print("</td>")
if(i % 3 == 2 or i % 3 == 0):
print("<td n=30>")
print("<td>")
mmls=re.split(r'(<math\b.*?</math>)',str(mmltd), flags=re.DOTALL)
j=0
for mml in mmls:
Expand Down
20 changes: 10 additions & 10 deletions intent-examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,37 +256,37 @@ <h1>Intent Examples</h1><h2>MathCAT Version: 0.6.6</h2>
<td>

<math display='block'>
<mi>X</mi><mo>,</mo><mi>XVI</mi>
<mn>X</mn><mo>,</mo><mn>XVI</mn>
</math>

</td>
<td>
<pre id='id-1-7413a88abe565cf2535dfc7d5a5bc59e'><a class='self' href='#id-1-7413a88abe565cf2535dfc7d5a5bc59e'>&#xa7;</a>
<pre id='id-1-639b0692de31aae1e316b0bec089777a'><a class='self' href='#id-1-639b0692de31aae1e316b0bec089777a'>&#xa7;</a>
&lt;math display='block'>
&lt;mi>X&lt;/mi>&lt;mo>,&lt;/mo>&lt;mi>XVI&lt;/mi>
&lt;mn>X&lt;/mn>&lt;mo>,&lt;/mo>&lt;mn>XVI&lt;/mn>
&lt;/math>
</pre>

<div class="mathcat">x comma 16</div>
<pre id='id-2-3c05d89bf748434cb3263c1b3826d177'><a class='self' href='#id-2-3c05d89bf748434cb3263c1b3826d177'>&#xa7;</a>
<div class="mathcat">10 comma 16</div>
<pre id='id-2-b9b9abd4310e8587811ae535fe17494a'><a class='self' href='#id-2-b9b9abd4310e8587811ae535fe17494a'>&#xa7;</a>
&lt;math <b>intent=':common'</b> display='block'>
</pre>

<div class="mathcat">x comma 16</div>
<pre id='id-2-2e325c736f5a50831e770dd3a7b661f2'><a class='self' href='#id-2-2e325c736f5a50831e770dd3a7b661f2'>&#xa7;</a>
<div class="mathcat">10 comma 16</div>
<pre id='id-2-f57dc81e48f141e80e2a0fa34276e218'><a class='self' href='#id-2-f57dc81e48f141e80e2a0fa34276e218'>&#xa7;</a>
&lt;math <b>intent=':literal'</b> display='block'>
</pre>

<div class="mathcat">x comma XVI</div>
</td>
<td>
<pre id='id-0-65a233adb9157279924973244c3f2f15'><a class='self' href='#id-0-65a233adb9157279924973244c3f2f15'>&#xa7;</a>
<pre id='id-0-9eeede7a51439026c3a2b620d1e6e724'><a class='self' href='#id-0-9eeede7a51439026c3a2b620d1e6e724'>&#xa7;</a>
&lt;math display='block'>
&lt;mi <b>intent=':roman-numeral'</b>>X&lt;/mi>&lt;mo>,&lt;/mo>&lt;mi <b>intent=':roman-numeral'</b>>XVI&lt;/mi>
&lt;mn <b>intent=':roman-numeral'</b>>X&lt;/mn>&lt;mo>,&lt;/mo>&lt;mn <b>intent=':roman-numeral'</b>>XVI&lt;/mn>
&lt;/math>
</pre>

<div class="mathcat">x comma 16</div>
<div class="mathcat">10 comma 16</div>
</td>

<td>\text{XVI}</td>
Expand Down

0 comments on commit a9720a0

Please sign in to comment.