3 ms·
You could include the formulae as jpg's, not html.
by WalterBright 2y ago
You could include the formulae as jpg's, not html.
- tagawa 2y agoThe downside of that is screenreaders can't read them out.
- pohuing 2y agoAlt texts are a thing on epubs. I would hope Amazon's format can do them as well.
- WalterBright 2y agoProblem solved!
- _Algernon_ 2y agoDoesn't work well with theming.
- Skeime 2y agoI have not once seen a formulae-as-images solution that I would consider acceptable, aesthetically. Common problems are: - It almost impossible to align the baseline of the formula to the baseline of the surrounding text. - Often, images are only used for "complex" formulae, while simple ones are implemented using normal typesetting. This resolves the baseline issue for simple formulae, but now the fonts between simple and complex formulae don't match. (This requires extra concentration for the reader, as in other contexts, different font styles are frequently used meaningfully.) - The images often have sub-par resolution.
- spookie 2y agoFurthermore, you would need to express them in text anyways for accessibility.
- nosianu 2y agoOne advantage of ereaders is that the fonts an be set to any size convenient for device and the person reading it. A fixed pixel size image of something you want to read does not go well together with rendered text at all. It's okay for photos, but very definitely not for formulas, which are basically mostly text. I'm not even talking about the aesthetics, different fonts because they too can be set by the user, and layout, since what's inside the image is fixed and untouchable by the renderer that handles all the rest of the text.
- WalterBright 2y agoOn my tablet I can use two fingers to zoom. But I pretty much never need to do that with a full size tablet. That's why I bought one with the retina display.
- nosianu 2y agoBut zooming scales the fonts only. For pixel images you have the pixels that are in it and that's it. Scaling those either up or down does not produce good text. Now I'm just waiting for the inevitable "AI image scaler" that handles text inside images.
- TeMPOraL 2y ago> Now I'm just waiting for the inevitable "AI image scaler" that handles text inside images. I'm surprised this isn't a thing already, as it seems doable with what people called "AI" 20 years ago. I mean, unless some unusual/non-default font was used, upscaling text on an image should be almost trivial. Ligatures notwithstanding, "printed letters" have a fixed shape, so: 1. Identify the typeface, size, weight, etc. by looking at the pixels of the text; 2. OCR the text (which should be 100% reliable); 3. Blank out the original text pixels; re-render the content (from step 2.) at a larger size (using parameters from step 1.). I'm hedging here; it feels to me that OCR-ing normal text that never left the digital realm should be 100% reliable, but I'm not a specialist in that subfield so I surely must be missing something...
- auggierose 2y agoThat attitude leads to the shitty epubs we currently have. You either do a fixed-size PDF layout, or you have a proper dynamic solution. For technical/mathematical content, I am not interested in anything in between, given that PDF just works for me, and is easily achieved with tools today.
- rjmunro 2y agoJPEG is the absolute worst possible solution here. If MathML or similar is not supported, use an SVG or PDF so that it's zoomable and not made of pixels. It's also slightly readable by screen readers (although you probably want some sort of alt-text for those anyway). If no vector formats are supported, use PNG, or another "lossless" format not JPEG. JPEG's compression is designed for photos where the probability of 2 neighbouring pixels being the same is tiny. Note that PNG doesn't have to be lossless - if you want to shrink the file size you can reduce the resolution or the colour space. Even GIF is a much better choice than JPEG for a diagram, mathematical formula or logo with hard edges and a small number of colours. SVG is usually the right choice, (but don't do what one designer did for me and embed a JPEG in an SVG instead of giving me an SVG direct from Illustrator or Inkscape).