Skip to content

Commit

Permalink
ElementMinimizer removes mathvariant attribute with default value now…
Browse files Browse the repository at this point in the history
…, provisional solution for #19
  • Loading branch information
formanek committed Oct 18, 2014
1 parent ee39dc3 commit 12e13a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<property name="remove_all">mphantom merror</property>

<!-- keep attributes that bear semantics -->
<property name="keepAttributes">mathvariant encoding</property>
<property name="keepAttributes">mathvariant=bold mathvariant=italic mathvariant=bold-italic mathvariant=double-struck mathvariant=bold-fraktur mathvariant=script mathvariant=bold-script mathvariant=fraktur mathvariant=sans-serif mathvariant=bold-sans-serif mathvariant=sans-serif-italic mathvariant=sans-serif-bold-italic mathvariant=monospace mathvariant=initial mathvariant=tailed mathvariant=looped mathvariant=stretched encoding</property>
<property name="keepAttributes.mfrac">linethickness=0</property>
<property name="keepAttributes.cn">base type</property>
<property name="keepAttributes.ci">type</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class ElementMinimizerTest extends AbstractModuleTest {
public static void setUpBeforeClass() {
DEFAULT_INSTANCE.setProperty("remove", "mspace maligngroup malignmark mstyle mpadded menclose maction");
DEFAULT_INSTANCE.setProperty("remove_all", "mphantom merror");
DEFAULT_INSTANCE.setProperty("keepAttributes", "mathvariant encoding");
DEFAULT_INSTANCE.setProperty("keepAttributes", "mathvariant=bold encoding");
DEFAULT_INSTANCE.setProperty("keepAttributes.mfrac", "linethickness=0");
DEFAULT_INSTANCE.setProperty("keepAttributes.cn", "base type");
DEFAULT_INSTANCE.setProperty("keepAttributes.ci", "type");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mfrac linethickness="1">
<mfrac linethickness="1" mathvariant="normal">
<mi dummy="foo"> a </mi>
<mi> b </mi>
</mfrac>
Expand Down

0 comments on commit 12e13a6

Please sign in to comment.