![]() |
#16 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2015
Device: Kobo Aura H20
|
Quote:
The HTML is not entirely straightforward, so I'll give a snippet of the HTML, then show how it displays. Code:
<p class="noindent">The third axiom states that the belief assigned to any set of events is the sum of the beliefs assigned to its nonintersecting components. Because any event <i>A</i> can be written as the union of the joint events (<i>A</i> <img alt="image" src="images/And.jpg"/> <i>B</i>) and (<i>A</i> <img alt="image" src="images/And.jpg"/> <img alt="Image" src="images/arrow.jpg" style="vertical-align:2px;"/><i>B</i>), their associated probabilities are given by<a href="#fn1" id="fn1a"><sup>1</sup></a></p> <p class="eqimage"><a id="eq0104"/><img alt="Image" src="images/eq01_04.jpg"/></p> <p class="noindent">where <i>P</i>(<i>A</i>, <i>B</i>) is short for <i>P</i>(<i>A</i> <img alt="image" src="images/And.jpg"/> <i>B</i>). Images have different classes in the CSS file. Equations that are centered are in the class "eqimage." However, there are also some math symbols that are inserted inline with no class as you can see in the snippet above. I can manipulate them a little using nested CSS referencing (I tried .noindent img and .indent img and it seemed to work okay on my computer, but not on the H20). And then there are figure classes as well that display okay, so I probably won't be touching them. The CSS sheet has the following style for "eqclass": Code:
.eqimage {margin-top:1em; margin-bottom: 1em; text-align: left; text-indent: 1.25em;} |
|
![]() |
![]() |
![]() |
#17 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2015
Device: Kobo Aura H20
|
Quote:
|
|
![]() |
![]() |
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Code:
p.noindent img {height:1em;width:auto;} p.eqimage img {height:auto;width:80%;} Edit: Since the eqimages are actually text, they should really be proportional to the font size, so ideally you would set the height for a one-line equation to height:1em;width:auto; and set the height of multi-line equations to a multiple of 1em; then set an appropriate font-size in the parent paragraph (say font-size:1.5em; ) In this case you might also need to set the max-height and max-width to make sure the image still fits on the screen at large font sizes. Edit2: You might not think this worth the time, but you could replace the inline images of individual symbols with actual glyphs from a font, which would look much better (it is what the publisher should have done in th first place.) Just embed a font SymFont that has all the symbols you need with @font-face, create a class like .syms {font-family:SymFont;} and then replace each <img alt="image" src="images/And.jpg"/> with <span class="syms">∧</span> etc. I do this for fiction books where the publisher has used a (usually extremely low resolution) bitmap of a letter instead of embedding a font that includes that letter. The display equations would take a lot more work though. Edit3: Thinking a bit more about fixing up the image size used for bitmaps of equations without using SVG: The ideal is that the euation should change size proportional to the selected font size, but should not become so big that it no longer fits on the screen. The solution is to set the width proportional to the font size, but also set the max-width proportional to screen size. For example, if the size of the bitmap was 100 pixels high and 800 pixels wide, (assuming a one-line euation) then something like this would do the job: Code:
p.eqimage img {height:auto; width:8em; max-width:80%;} Last edited by GeoffR; 10-30-2015 at 10:35 PM. Reason: Edit3 |
|
![]() |
![]() |
![]() |
#19 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The command line looked something like this: Code:
for %f in (*.jpg) do "imagew.exe -w x1.8 -grayscale -depthgray 4 -cc 16 -gsf s -dither none %f.jpg ./holder/%f.jpg" pause Last edited by DNSB; 10-18-2015 at 01:31 PM. Reason: corrected sizing error -- was set for iPad not H2O |
|
![]() |
![]() |
![]() |
#20 |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2015
Device: Kobo Aura H20
|
Thanks, JeffR. I played around a little more and got it to work (I mistook the .eqimage class for images themselves. Modifying it in the way you listed, using p.equimage img worked). However, I found out that the publisher's formatting is really inconsistent; some images for equations are just given the class ".image" and some are given IDs using the a tag, so I also had to create instances for these as well in the CSS sheet. I'm sure there are more idiosyncrasies I missed, but I have the basics down.
Perhaps I will try DNSB's (thanks, too, DNSB!) and your suggestion if I have more time to either resize the images or replace the inline images with fonts. |
![]() |
![]() |
![]() |
#21 |
hub
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Does anyone who have opened their Aura HD know what's part number for the eInk screen? (for instance it's ED060XG1 for Kobo Glo).
|
![]() |
![]() |
![]() |
#22 |
Member
![]() Posts: 19
Karma: 10
Join Date: Dec 2011
Device: Kobo Touch
|
I have reported mathematical equations being too small to read on Kobo e-readers to Kobo Support. They tell me its not a bug!!! As its not a bug its odd that equations are displayed properly on both the PC Kobo tool and the IPAD Kobo App withut any need to change the source.
|
![]() |
![]() |
![]() |
#23 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#24 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
One thing to note when comparing a book on a high-pixel-density device with the same book on a PC, is that the PC viewing window is likely to be lower resolution. E.g. when I open a book in Calibre the viewer window is 800x600.
The fundemental problem with the way many publishers display images in their ebooks is that they are sized for a low-resolution device, usually 800x600. They might look fine in Calibre, or in the Kobo app on a PC, or on an old Kobo Touch, but the images will be too small for a high-dpi device like a H2O or GloHD. There are ways to make the images resize automatically, but it is never going to look good on a H2O or GloHD if the resolution of the underlying bitmap was created to suit an 800x600 device. The only real solution is for publishers to either use much much higher resolution bitmaps, or to create proper scalable vector graphics images (or simply to embed fonts if the images are of text). There is just nothing the device or firmware can do to make the images both look clear and display at the right size if the publisher has only provided low-resolution bitmaps. |
![]() |
![]() |
![]() |
#25 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75
Karma: 77598
Join Date: Apr 2010
Device: Sony PRS-650, Hanvon h516, Kobo Aura HD
|
I updated my Aura HD to 3.18.0 today and the help that popped up, in the 'Reading Menu', had an entry 'Zoom in and out of Images'. I'd not noticed that before.
Great I thought I can read that book with the tiny illustrations without squinting. But no - I can't get the menu option to appear. Anyone have any ideas why not? |
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#27 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75
Karma: 77598
Join Date: Apr 2010
Device: Sony PRS-650, Hanvon h516, Kobo Aura HD
|
Ah. Oh well back to squinting I suppose.
Thanks. |
![]() |
![]() |
![]() |
#28 | |
Member
![]() Posts: 19
Karma: 10
Join Date: Dec 2011
Device: Kobo Touch
|
Quote:
Like another contributor in this thread I see no sign of any Zoom in and out of images option - though this shouldnt be necessary. |
|
![]() |
![]() |
![]() |
#29 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
But, if you have a book downloaded directly from the Kobo shop that looks different the ereader to the desktop application or other Kobo app, there might be a bug. Or, it might be differences in implementation because of the different hardware. To know, we need to look at the book. Can you point to the book? Maybe we can look at the sample and see what is going on. |
|||
![]() |
![]() |
![]() |
#30 | |
Member
![]() Posts: 19
Karma: 10
Join Date: Dec 2011
Device: Kobo Touch
|
Quote:
For example look at a preview of "The Irrationals" by Julian Havil, a few pages in from the start of Chapter 1 (page 12 of 86 with my font size) there is a timeline diagram (Figure 1.1). On an IPAD this diagram occupies the full width of the displayed page. On the Aura it takes up about 2/3 of the page width. So its 2/3X2/3 =4/9 the size, which makes it total unreadable. Another example - "Infinite series" by James Hyslop. Around page 3 or 4 of chapter 1 there is the formula for a function (its a picture). The IPAD version is much larger on the page (its actually too large to fit) whereas the Aura version is less than half a page wide. Hope that helps. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is the right size for images in epub? | Kasper Hviid | ePub | 4 | 06-03-2013 02:07 PM |
XGA Images - size just right? | trevorburdon | ePub | 7 | 05-06-2012 04:13 AM |
Double tap doesn't zoom images full screen | nonsequito | Apple Devices | 0 | 01-15-2011 05:03 PM |
double cover images | garbanzo | Calibre | 7 | 03-19-2010 08:25 PM |
Images for different size readers | JSWolf | ePub | 2 | 12-31-2009 11:29 AM |