Skip to content

Commit

Permalink
update prune-mathjax script
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Jul 12, 2016
1 parent 31c28f0 commit ba5c181
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tools/prune-mathjax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ rm -f $MATHJAX_DIR/.gitignore
rm -f $MATHJAX_DIR/bower.json
rm -f $MATHJAX_DIR/README.md
rm -f $MATHJAX_DIR/README-branch.txt
rm -f $MATHJAX_DIR/CONTRIBUTING.md
rm -f $MATHJAX_DIR/.travis.yml
rm -f $MATHJAX_DIR/composer.json
rm -f $MATHJAX_DIR/package.json

rm -rf $MATHJAX_DIR/docs
rm -rf $MATHJAX_DIR/test
rm -rf $MATHJAX_DIR/unpacked


rm -f $MATHJAX_DIR/config/Accessible-full.js
rm -f $MATHJAX_DIR/config/Accessible.js
rm -f $MATHJAX_DIR/config/AM_HTMLorMML-full.js
Expand Down Expand Up @@ -64,9 +70,9 @@ rm -rf $MATHJAX_DIR/jax/output/HTML-CSS/fonts/STIX-Web
# renderer as follows: If Qt 4.8.x is rendering the page and the font requested
# is a variant, always treat the font as successfully loaded even if its
# character metrics don't match those expected.
#
#
# Without this change, MathJax will wait a considerable time for the font to
# load before timing out and rendering math without the font.
# load before timing out and rendering math without the font.

sed -i -e "s/this.div.style.fontSize=r;return(q===s)/this.div.style.fontSize=r;if(window.navigator.userAgent.indexOf(' Qt\/4.8.')>0\&\&(m.weight||m.style)){return true}else{return(q===s)}/" $MATHJAX_DIR/jax/output/HTML-CSS/jax.js

0 comments on commit ba5c181

Please sign in to comment.