Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-05-2022, 01:34 PM   #31
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
Yes the IDPF use the word "obsolete" to describe epub2, but "deprecated" is more correct since it is still used by older readers.

https://idpf.org/epub/201
KevinH is online now   Reply With Quote
Old 09-05-2022, 01:44 PM   #32
philm
Member
philm began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
Quote:
Originally Posted by RbnJrg View Post
Readium, Bibi and EpubJS.
Nnoe of them work on Ubuntu 22:
Code:
ImportError: cannot import name 'QtWebEngineCore' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py)
Despite installing QTWebEngineCore (only avail package is python3-pyside2.qtwebenginecore)
philm is offline   Reply With Quote
Advert
Old 09-05-2022, 01:56 PM   #33
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
You are missing pieces. You need to install pyqt5.

Here is a link I found by a websearch that explains how to get the qtwebengine piece of pyqt5. And something similar should work on the main pyqt5 itself.

https://installati.one/ubuntu/22.04/...5.qtwebengine/

There are probably better links but that was the first I found.

Update:

Try the following:

sudo apt-get install python3-pyqt5
sudo apt-get install python3-pyqt5.qtwebengine

Both macOS and Windows builds of Sigil come with these installed. I truly have no idea why various Linux distributions treat these packages as "optional" when full plugin support is part of Sigil, has been for a long time, and will continue to be.

Last edited by KevinH; 09-05-2022 at 02:27 PM.
KevinH is online now   Reply With Quote
Old 09-05-2022, 03:26 PM   #34
philm
Member
philm began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
Thank you @KevinH
Weird because synaptic said it was installed and apt-install still installed it. Maybe I needed a force re-install.
Never mind, they are working now but not displaying my epub, and Foliate too.
I'll check format and content tomorrow.
philm is offline   Reply With Quote
Old 09-06-2022, 07:13 AM   #35
philm
Member
philm began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
Okay,
So far, I found that:
- <img> doesn't work in Sigil readers (Bibi, EPUBJS, Readium), but embedding it in <svg> works. Very surprising
- tables and SVG are not implemented in SumatraPDF, others?
- height in <svg> looks like it means "visible height of the image relative to its width". A 1920x1080 at 100% for width and height will be a white square with the image in the center, while height="56%" (1080/1920) is enough to fully display it. It's not like HTML.

Is there any other mine I should be aware of?
philm is offline   Reply With Quote
Advert
Old 09-06-2022, 10:08 AM   #36
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,776
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by philm View Post
Okay,
So far, I found that:
- <img> doesn't work in Sigil readers (Bibi, EPUBJS, Readium), but embedding it in <svg> works. Very surprising
You must be doing something wrong. Watch the newEpub3.epub I attach where I employ the <img> tag to display the svg image. In the first page you can see the image not centered vertically and in the second page you'll see the image vertically center to mimic a svg wrapper. And the epub is perfectly displayed on Readium, Bibi and EpubJS (in fact, is correctly displayed everywhere if the ereader supports epub3).

Quote:
- tables and SVG are not implemented in SumatraPDF, others?
SumatraPDF? But you had said us that you were working under Linux and Sumatra is a Windows pdf reader. And Sumatra is not the best option to display epub.

Quote:
- height in <svg> looks like it means "visible height of the image relative to its width". A 1920x1080 at 100% for width and height will be a white square with the image in the center, while height="56%" (1080/1920) is enough to fully display it. It's not like HTML.
Well, well, well. This is not a place to explain in deep how the "viewbox" property works. If you want to learn a bit about svg, you should read the following page:

https://jenkov.com/tutorials/svg/index.html

And regarding the viewbox property, read:

https://jenkov.com/tutorials/svg/svg...-view-box.html
Attached Files
File Type: epub newEpub3.epub (4.2 KB, 90 views)
RbnJrg is online now   Reply With Quote
Old 09-06-2022, 10:24 AM   #37
philm
Member
philm began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jul 2022
Location: France
Device: Kobo Clara
Thanks for following up, your doc and links RbnJrg!

SumatraPDF works under Linux with Wine, it's even a snap package: https://snapcraft.io/sumatrapdf
It's the only one I found that automatically reload the epub file when I save in Sigil so it can sit there while I work on Sigil.

I forgot to say, I'm working on epub 2 now, just to check what is working for old e-readers.
I expect my result to work in epub3
philm is offline   Reply With Quote
Old 09-06-2022, 02:15 PM   #38
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,776
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by philm View Post
I forgot to say, I'm working on epub 2 now, just to check what is working for old e-readers.
It also must work under epub2. Open the epub2 I attach in Readium, Bibi and EpubJS; the svg should display ok also in your linux.
Attached Files
File Type: epub newEpub2.epub (3.7 KB, 101 views)
RbnJrg is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can epub file images be centered using Sigil provlima Workshop 2 04-23-2022 08:34 AM
Sigil can't open my Epub file Siegfried Sigil 2 05-27-2020 06:36 AM
error from Sigil when loading particular epub file JohnNC Sigil 15 08-08-2017 04:52 AM
Vexing error in EPUB file created in Sigil pstjmack ePub 7 08-02-2016 12:47 PM
sigil doesn't open epub file cyberbaffled Sigil 8 11-10-2009 03:28 PM


All times are GMT -4. The time now is 03:26 PM.


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