View Single Post
Old 09-18-2020, 03:52 AM   #1
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
enlarge the math?

i have a textbook in epub - calculus in 5 hours
it is readable on my large PC monitor but on anything smaller- tablet, Kobo... I struggle to make out the equations.

each is coded like so:
<p class="formula_block"><img alt="formula" class="fs38" src="../Images/svgimg0379.svg"/></p>

there are 485 .svg definitions in the epub , within images. but each appears in sigil as a long bunch of numbers so it does not look easy to mess with those

there are 60 similar fs... classes, they all have different heights and have width auto. see examples below.

I am wondering if there is any simple way to regex in a scaling factor which will blow up every .svg equation image by a set percent ?
can i do that be changing only the formula block p class , or will anything there be overridden by the img class fs...

code extracts:

.formula_block {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
text-align: center;
text-indent: 0
}
.fs {
display: inline;
height: 1.25125em;
vertical-align: -0.296888em;
width: auto
}
.fs1 {
display: inline;
height: 1.02375em;
vertical-align: 0;
width: auto
}
.fs2 {
display: inline;
height: 1.1375em;
vertical-align: -0.076213em;
width: auto
stumped is offline   Reply With Quote