-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmathml.html
More file actions
46 lines (46 loc) · 2.75 KB
/
mathml.html
File metadata and controls
46 lines (46 loc) · 2.75 KB
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
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>This tool joins mi, mo, and mn tags according to the multi-character variable/function list provided below. It also removes the extra text in mathml tags that Word generates, e.g. "mml:".</p>
<p>It may be helpful to use this tool in conjunction with the <a rel="external" href="https://github.com/CommWebTeam/vba#mathml-macro">vba script to extract mathml in a Word document</a>, and the <a rel="external" href="https://commwebteam.github.io/gen_dw_format/dreamweaver_paste_formatter/format_dw_paste.html">general Dreamweaver paste formatting tool</a> to convert the fake tags created by the vba script into actual math tags.</p>
<br />
<h4>HTML file</h4>
<input id="html_file" type="file" /> <br/>
<label for="html_file">This assumes proper source formatting (in Dreamweaver, Edit -> Code -> Apply Source Formatting) and consistent space encoding.</label>
<h4>Variable list</h4>
<p>Paste the list of multi-character variables/functions in the mathml here, each followed by a space and a character describing how to treat it, e.g.</p>
<p>value v <br />
max f <br />
xyz m <br />
ij c <br />
HTML a</p>
<p>The following are ways to treat the multi-character word:
<ul>
<li>v - the word represents a single multi-character variable.</li>
<li>f - the word represents a single multi-character function.</li>
<li>m - the word represents several variables to be multiplied together.</li>
<li>c - the word represents several variables listed side-by-side.</li>
<li>a - the word represents a single multi-character acronym (currently treated the same way as v).</li>
</ul>
Separate values by newline.</p>
<p>A detailed explanation of what this list is for can be found in the <a rel="external" href="https://commwebteam.github.io/mathml_formatter/">readme</a>.</p>
<textarea id="multichar" rows="10" cols="100"></textarea>
<br />
<h4>Other options</h4>
<input type="checkbox" id="rm_mathvariant" name="rm_mathvariant" checked>
<label for="rm_mathvariant">Remove mathvariant="normal"</label>
<br />
<input type="checkbox" id="correct_indent" name="correct_indent">
<label for="correct_indent">Attempt to format summations that have top/bottom values? (Requires the document to have proper indentation)</label>
<br />
<br />
<button onclick="format_mathml()">Fix mathml paste</button>
<p>More in-depth information can be found in the <a rel="external" href="https://commwebteam.github.io/mathml_formatter/">readme</a>.</p>
<script src="https://commwebteam.github.io/gen_dw_format/download.js"></script>
<script src="https://commwebteam.github.io/gen_dw_format/format_helpers.js"></script>
<script src="https://commwebteam.github.io/gen_dw_format/dreamweaver_paste_formatter/format_dw_paste_helpers.js"></script>
<script src="mathml_helpers.js"></script>
</body>
</html>