Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2023, 05:26 AM   #1
toni-trus
Junior Member
toni-trus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2023
Device: Calibre Portable 6.11
Fixed layout epub3

My fixed layout epub3 is not displaying as intended.
The cover is correct but calibre shows it small from page 2. I am having trouble because there is no difference in the .xhtml of each page. How do you think I should correct the epub.
Attached Thumbnails
Click image for larger version

Name:	calibre-001.png
Views:	68
Size:	61.6 KB
ID:	199201   Click image for larger version

Name:	calibre-002.png
Views:	66
Size:	9.3 KB
ID:	199202   Click image for larger version

Name:	page23.png
Views:	68
Size:	21.6 KB
ID:	199203  
Attached Files
File Type: epub Fixed layout.epub (266.9 KB, 56 views)
toni-trus is offline   Reply With Quote
Old 01-23-2023, 08:32 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does not support fixed layout books.
kovidgoyal is offline   Reply With Quote
Old 01-23-2023, 04:30 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I use Azardi to read FXL epubs.

I've configured Windows to open .epubfixed files with Azardi.

After adding the epub to calibre, I open the book folder, copy the epub to book.epubfixed, drop that file onto the book details panel, delete book.epubfixed, close book folder.

If a book has an EPUBFIXED format I attach an 'magazine' icon to the Title.

BR
BetterRed is offline   Reply With Quote
Old 01-23-2023, 07:45 PM   #4
Foozle
Connoisseur
Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.Foozle ought to be getting tired of karma fortunes by now.
 
Posts: 59
Karma: 221034
Join Date: May 2021
Device: None
This is due to the styles.css sheet having an improper line of everything being 0. Open the file in the editor, go into the styles.css, delete the everything 0 line, and that should fix it.
Foozle is offline   Reply With Quote
Old 01-23-2023, 11:44 PM   #5
toni-trus
Junior Member
toni-trus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2023
Device: Calibre Portable 6.11
I found that if the styles.css sheet has a font-size: 0, the calculation here doesn't give the expected 'ans'.
@kovidgoyal How about this idea? Do not calculationif 'fs' is 0.

paged_mode.pyj
def cps_by_em_size():
ans = cps_by_em_size.ans
fs = window.getComputedStyle(document.body).fontSize
if not ans or cps_by_em_size.at_font_size is not fs:
d = document.createElement('span')
d.style.position = 'absolute'
d.style.visibility = 'hidden'
d.style.width = '1rem'
d.style.fontSize = '1rem'
d.style.paddingTop = d.style.paddingBottom = d.style.paddingLeft = d.style.paddingRight = '0'
d.style.marginTop = d.style.marginBottom = d.style.marginLeft = d.style.marginRight = '0'
d.style.borderStyle = 'none'
document.body.appendChild(d)
w = d.clientWidth
document.body.removeChild(d)
ans = cps_by_em_size.ans = max(2, w)
cps_by_em_size.at_font_size = fs
return ans
toni-trus is offline   Reply With Quote
Old 01-23-2023, 11:50 PM   #6
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: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Oddly, I checked the stylesheet for Harry Potter: A Journey Through a History of Magic. If I go through and delete the postitioning and viewport sizing bits, it does render better as a reflowable ebook though it is very ugly compared to the original displayed with an epub3 renderer.

If we look at a sample <p>...</p> block, the styles applied to every letter are positioning them within the viewport, controlling the width, etc.

Code:
  <div class="liw nw c18DD c7" style="font-size:0;top:1506px;min-width:99px;line-height:22px;z-index:293">
    <span class="w c160 f16" style="width:98px"><span class="c160 c10B c" style="width:12px"> B</span><span style="font-size:12px" class="c160"><span class="c c160 c163">L</span><span class="c c160 c1F">O</span><span class="c c160 c1F">O</span><span class="c c160" style="width:13px">M</span><span class="c c160" style="width:7px">S</span><span class="c c160 c163">B</span><span class="c c160 c1F">U</span><span class="c c160" style="width:9px">R</span><span class="c c160 cD">Y </span></span></span>
  </div>
All this to place BLOOMBURY on the page.

In another sample sample <p>...</p> block, the positioning codes are applied to words.

Code:
  <div class="liw c7 c6E c70 c6F c44 c45 c46 c47 c48 cAC cAD cAE cAF cB0 cC9D" style="top:820px">
    <span class="w cC96 f22 c71" style="width:170px"> different. </span><span class="w f22 c71" style="width:160px;letter-spacing:.58px">Gnomes, </span><span class="w c14A c141 f22 c71">or </span><span class="w f32 c71 c78" style="width:181px;letter-spacing:1.12px">Gernumbli </span><span class="w c21 cC96 c16E f32 c71 c78">gardensi</span>
  </div>
All this to place: "Gnomes, or Gernumbli gardensi" on the page.

I ran a simple regex that deleted everything with 0 from the css files. It made for an unreadable page on any renderer.

Last edited by DNSB; 01-23-2023 at 11:57 PM.
DNSB is offline   Reply With Quote
Old 01-24-2023, 01:27 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@toni-trus: I can certainly special case columns per screen when body font size is zero, but that is not going to magically make FXL work.

https://github.com/kovidgoyal/calibr...827abdfb7c7a3d
kovidgoyal is offline   Reply With Quote
Old 01-24-2023, 06:55 AM   #8
toni-trus
Junior Member
toni-trus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2023
Device: Calibre Portable 6.11
Quote:
Originally Posted by kovidgoyal View Post
@toni-trus: I can certainly special case columns per screen when body font size is zero, but that is not going to magically make FXL work.

https://github.com/kovidgoyal/calibr...827abdfb7c7a3d
Thanks, add.

Regards
toni-trus is offline   Reply With Quote
Old 01-24-2023, 11:22 AM   #9
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,157
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I won't buy either PDFs, fixed layout Kindle or fixed layout epub3. I don't regard those as real ebooks. Most won't work on most ereaders.
Quoth is offline   Reply With Quote
Old 01-24-2023, 12:16 PM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Quoth View Post
I won't buy either PDFs, fixed layout Kindle or fixed layout epub3. I don't regard those as real ebooks. Most won't work on most ereaders.
They have their place (like Maps and diagrams), but for my portable reads? Nope.

Thinking back (waaaaaaaaaaaY back) to the children's books my Mom read to me. The Pictures were all that I noticed. Not the exact placement on a page.

What is all the fuss over making every book must be fixed layout . More time, more effort (and more chance to belly up)
theducks is online now   Reply With Quote
Old 01-24-2023, 12:40 PM   #11
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,157
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by theducks View Post
They have their place (like Maps and diagrams), but for my portable reads? Nope.
I have thousands of technical PDFs and 100s of scans of ancient books & magazines. The books just about work on a Sage. Some magasines work on Elipsa or Sage. Tech PDFs are fine on Elipsa (too small for my old eyes on Sage), but all of that is free and unavailable on paper now.

The 23″ 4K HDR LG screen has made a big difference for PDFs. Almost like well lit coloured paper. Brightness at about 8%!

I've a lot of real maps. Irish & UK Ordinance survey, also some road maps, which are far better than Satnav.

I've a load of large illustrated books, like Pre-Raphaelite art, Herbs & Herbalism, various Fairies, History of BBC, Ireland, Castles, Tolkien's art, specialist Atlases, travel, history etc. Issues with the idea of electronic versions:
1) There are not enough variety of shapes of tablets. Only 4:3, 16:9, 16:10.
2) A 10" tablet isn't big enough and a decent 14" approx is more expensive than a laptop.
3) Most tablets have too shiny screen.
4) No current known eink technology is ever going to be good enough.
5) Power consumption

I'll stick to having those kinds of books (large, illustrated, photographic) on paper.

But I sometimes now buy fiction ebooks of paper editions I already have it the price is right. Easier to read than tiny (maybe smudged) print on cheap wood pulp paper!

Last edited by Quoth; 01-24-2023 at 12:53 PM.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub3 Fixed Layout Gunivortus Conversion 1 04-11-2019 10:48 AM
Ibooks, Epub3 and fixed layout overflow? fdeandao ePub 5 05-15-2014 11:30 PM
Start page on fixed layout epub3 brunobruno ePub 12 03-30-2013 01:50 AM
Creating Fixed Layout ePub3 from InDesign flipick ePub 12 03-14-2013 09:22 AM
epub3 Sigil Poetry(fixed layout) Giggleton Sigil 7 04-04-2011 12:58 PM


All times are GMT -4. The time now is 08:22 AM.


MobileRead.com is a privately owned, operated and funded community.