Skip to content

Commit

Permalink
Merge pull request #7 from OmarIthawi/omar/common-html
Browse files Browse the repository at this point in the history
Add support for CommonHTML Jax output + Refactor
  • Loading branch information
OmarIthawi authored Jan 9, 2019
2 parents 360a4d5 + bc9ff76 commit 8928c5f
Show file tree
Hide file tree
Showing 17 changed files with 5,429 additions and 9,162 deletions.
2 changes: 2 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ The extension provides the following additional TeX commands to be typeset an Ar
* **Translate a TeX input** `\transx`
* **Translate a text input** `\transt` e.g. `\transt{\text{if}}{إذا}` for the Math piecewise equations.
* **Translate a TeX input with Arabic symbols** `\transs`: e.g. `\transs{A_b}{أ_ب}`
* **Translate Arabic numbers** `\transn`: e.g. `\transn{2000,000.195}`
* **Translate Mixed Fractions** `\tmfrac`: e.g. `\tmfrac{10}{1}{2}` to denote `10.5` as a mixed fraction

- Basic variable and function names translation:
* `A` --> `أ`
Expand Down
10 changes: 10 additions & 0 deletions dist/arabic.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/arabic.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 71 additions & 0 deletions dist/unpacked/arabic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/* CommonHTML Output Jax CSS */
.MathJax_CHTML .mfliph {
display: inline-block !important;
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-o-transform: scaleX(-1);
transform: scaleX(-1);
-ms-filter: fliph;
filter: fliph;
}

.MathJax_CHTML .mar {
font-style: normal !important;
}

.MathJax_CHTML .mar > span {
font-style: normal !important;
}

.mfliph > .mjx-char {
direction: rtl;
text-align: right;
}

.mfliph .MJXc-TeX-unknown-I, .mfliph.MJXc-TeX-unknown-I {
font-style: normal !important;
}

.mfliph.mar > .mjx-char.MJXc-TeX-unknown-I {
border: solid transparent;
border-width: 0.45em 0;
}

.mjx-mn > .mfliph.mar > .mjx-char.MJXc-TeX-unknown-I {
border-width: 0;
}

.mjx-stack > .mjx-sup > span > .mfliph.mar > .MJXc-TeX-unknown-I {
border-bottom-width: 0.85em;
}

.MJXc-stacked > .mjx-numerator > span > .mfliph.mar > .MJXc-TeX-unknown-R {
padding-top: 0.6em;
}

.MJXc-stacked > .mjx-denominator > span > .mfliph.mar > .MJXc-TeX-unknown-R {
padding-bottom: 0.6em;
}

.MJXc-stacked > .mjx-denominator > span > .mfliph > .mjx-char.MJXc-TeX-unknown-R {
padding-bottom: 0.6em;
}


/* HTML-CSS Output Jax CSS */
.MathJax .mfliph {
display: inline-block !important;
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-o-transform: scaleX(-1);
transform: scaleX(-1);
-ms-filter: fliph;
filter: fliph;
}

.MathJax .mar {
font-style: normal !important;
}
.MathJax .mar > span {
font-style: normal !important;
}
Loading

0 comments on commit 8928c5f

Please # to comment.