View Single Post
Old 12-02-2024, 02:04 AM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,343
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by tomsem View Post
Well even easier than screenshots (should have mentioned this first), is to export the images using calibre's Edit Book: find Images folder in listing on left, right click and Select all Images files, then right click on the selection and Export all nnn files.

In my experience, usually the text is rendered in the images while XHTML gives position and actual text values for readers that let you select it (like Thorium reader). It is similar to PDFs in that respect, where text can be rendered with vector graphics and text objects are there to provide locations for highlights and dictionary lookup, etc.

So similar that I want to investigate writing a script to convert between FXL ePub and PDF. At least PDF is more popular and better supported, and there might be other cases where FXL ePub might be preferred.
Sorry but you are rather wrong. A fixed layout ePub is not image based. Here's an example of the code for a single sentence from the FLO ePub:

Quote:
<div class="liw c1D7 c7" style="font-size:0;top:386px;min-width:418px;line-height:31px;z-index:292">
<span class="w c1A4 f1" style="width:63px"><span class="c1A4 c118 c c1C"> H</span><span class="c1A4 c119"><span class="c c1A4 c1F">A</span><span class="c c1A4 c16">R</span><span class="c c1A4 c163">R</span><span class="c c1A4 cD">Y </span></span></span><span class="w c1A4 f1" style="width:77px"><span class="c1A4 c118 c c33">P</span><span class="c1A4 c119"><span class="c c1A4 c32">O</span><span class="c c1A4 c1F">T</span><span class="c c1A4 c32">T</span><span class="c c1A4 c16">E</span><span class="c c1A4 cD">R </span></span></span><span class="w c116 c11A c1A4 f1 c119"><span class="c c1A4 c32">A</span><span class="c c1A4 c33">N</span><span class="c c1A4 cD">D </span></span><span class="w c11A c1A4 f1 c119" style="width:40px"><span class="c c1A4 c32">T</span><span class="c c1A4 c32">H</span><span class="c c1A4 cD">E </span></span><span class="w c1A4 f1" style="width:133px"><span class="c1A4 c118 c c33">P</span><span class="c1A4 c119"><span class="c c1A4 c32">H</span><span class="c c1A4" style="width:6px">I</span><span class="c c1A4 c2A">L</span><span class="c c1A4 c32">O</span><span class="c c1A4 c163">S</span><span class="c c1A4 c1F">O</span><span class="c c1A4 c163">P</span><span class="c c1A4 c32">H</span><span class="c c1A4 c16">E</span><span class="c c1A4 c32">R</span></span><span class="c1A4 c118 c" style="width:5px">'</span><span class="c1A4 c119 c cD">S </span></span><span class="w c1A4 f1" style="width:59px"><span class="c1A4 c118 c c32">S</span><span class="c1A4 c119"><span class="c c1A4 c1F">T</span><span class="c c1A4 c1F">O</span><span class="c c1A4 c33">N</span><span class="c c1A4 cD">E </span></span></span>
</div>
As can be seen, pretty much every bleeping letter given an absolute position on the page just to spell " HARRY POTTER AND THE PHILOSOPHER'S STONE ". This FLO ePub has 50 embedded fonts and 215 background images. Each page is rendered in a viewport that is 1216 by 1849 pixels.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-12-01 231230.png
Views:	187
Size:	715.4 KB
ID:	212324  

Last edited by DNSB; 12-02-2024 at 02:15 AM. Reason: Added screenshot of the page from Thorium.
DNSB is offline   Reply With Quote