Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2019, 01:01 AM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I'm not aware of any plans to modularize the codebase, but the biggest size cost is really the bundled python, Qt5, and ICU libraries. The whole "calibre" python module is 23 MB out of 170 MB. (The resources data is an additional 40MB, nearly half of which is just localization strings.)
The "ebooks" module containing format reading code is actually the largest code component!

(A couple observations on the connectedness of things: the ebook conversion pipeline is a dependency of the GUI library, because that's a central GUI component, it is a dependency of the viewer, because the viewer reads a ton of formats due to internally converting them all into calibre's common denominator OEB representation, and it is joined at the hip to the news collator because news recipes are just a specialized ebook format source. The server component is an alternative interface to the GUI, so both depend on the database management. The viewer and editor could theoretically be divorced from the library, but all three share a lot of common utility code anyway that isn't worth disentangling. There's very little savings to be had.)

So basically the main difference for users (at least on Linux distros with good packaging) when calibre 4.x comes around, will be that the download is "roughly the same size", but it will depend on qt5-webengine instead of qt5-webkit, and in practice sigil already depended on webengine but now webkit can be uninstalled.

I have actually pondered the thought of one day trying to split out the format code into a standalone module as it's the most obviously useful to other projects. But I'm rather busy at the moment. Someday...

...

BTW regarding python3, my secret was that I waited for someone else to ask, where "ask" involved submitting a giant Pull Request to make much of the python code syntax-compatible with python3 and get the C extensions to compile. I've then spent a ton of time building on that. So, much of the credit goes to @flaviut on Github... he took the first steps, I followed after and polished it up, taking advantage of the fact that I had a semi-viable codebase to actually try to run.

The moral of the story is more or less "in typical open source fashion, the best way to convince someone to change something is to write the code -- or at least a majority of it -- yourself". So I rarely if ever waste time asking Kovid to change how calibre is internally designed. Instead, I look at things which bother me, I ask "how can I fix this", and then I fix it and ask him if he agrees with my proposed solution. Kovid is a reasonable person and appreciates when people help make his job easier.

This is for example how I got calibre to build with system versions of mathjax, html2text, markdown, and feedparser, and how I got calibre ported *from* an internal fork of beautifulsoup3 to a system version of bog-standard bs4. (All these now use calibre's standard module freezing code instead of trying to merge bundled code into the source tree.) It's how I implemented a series of build system changes that mean I don't need to hack around DESTDIR installs (which every distro reinvents separately, usually incorrectly). It's also how I'm getting calibre slowly but surely ported to python3.

I will actually never understand why I am practically the only person who ever tried that, but it works. Instead, people try to "sway his opinion" by asking him to do a lot of work that doesn't help him, and, usually, by insulting him and (I'm mind boggled, but some people actually feel this way) telling him that the world is a worse place because calibre exists and prevents anyone else from being motivated to "do ebooks right".
eschwartz is offline   Reply With Quote
Old 09-04-2019, 03:30 AM   #17
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 437
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by eschwartz
Does Sigil need to develop its own competitive ereader as well?
Probably. I haven't found any really worthy leaders.

Quote:
Originally Posted by eschwartz
Something to keep in mind is that calibre's ebook-viewer is in the middle of drastic changes.
Oh, crap. I look forward to seeing that.

But like KevinH, I hope it will be possible to install the ereader independently (or at least use it).
Personally, I am more in favour of creating several software that can be used independently, but that has a strong synergy between them, even if it means having to group them together in a single installer because they use a common code base (a software suite in short, like LibreOffice), rather than a big monster that makes all in one.
If Calibre points to this and separates each of its features, it will become even more perfect than it already has (but this is not the right forum for that )

BTW : The new feature of PageEdit is not especially intuitive to open in ereader mode and there is still a window/panels for the TOC missing, but navigation and reading is so much easier than in Sigil
un_pogaz is offline   Reply With Quote
Old 09-04-2019, 04:46 AM   #18
Springbok
Enthusiast
Springbok began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Jan 2018
Device: Kindle Touch
Looking at the current state of the PageEdit application and the fact that you guys already spent time and effort to migrate to new QtWebEngine platform making cross-platform epub reader would be in my opinion a natural thing to do.

Key feature here would be a reading progress sync feature across different platforms (Windows, OSx and Unix).

Under Windows there are not that many good epub reader programs. Calibre Viewer simply is not designed as a cross platform standalone application. I see it more like an extension to the Calibre Library Management function. Also Calibre viewer does not have sync function.

So, it does not look as your idea would a duplication effort.
Springbok is offline   Reply With Quote
Old 09-04-2019, 05:09 AM   #19
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: 21,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by un_pogaz View Post
If Calibre points to this and separates each of its features, it will become even more perfect than it already has (but this is not the right forum for that
FTR: some of calibre's major features are shipped as separate executables, e.g. the viewer, the ePub/AZW3 editor, and library server, and the library manager of course, see ==>> The Command Line Interface

And some calibre optional plugins can be used independently via the calibre-debug command.

Added: So, from a usage perspective it's not monolithic, even though its shipped as a single install.

BR

Last edited by BetterRed; 09-04-2019 at 05:14 AM.
BetterRed is offline   Reply With Quote
Old 09-04-2019, 09:32 AM   #20
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by BetterRed View Post
FTR: some of calibre's major features are shipped as separate executables, e.g. the viewer, the ePub/AZW3 editor, and library server, and the library manager of course, see ==>> The Command Line Interface
It's nothing to do with the command-line interface, though...

Quote:
Originally Posted by un_pogaz View Post
But like KevinH, I hope it will be possible to install the ereader independently (or at least use it).
Personally, I am more in favour of creating several software that can be used independently, but that has a strong synergy between them, even if it means having to group them together in a single installer because they use a common code base (a software suite in short, like LibreOffice), rather than a big monster that makes all in one.
If Calibre points to this and separates each of its features, it will become even more perfect than it already has (but this is not the right forum for that )
Just like LibreOffice, calibre is a suite of software with several programs that share a common codebase, and thus synergy... what this means is that, like LibreOffice, the calibre installer will install several application launchers to the Start Menu (or desktop files on Linux).

If I remember correctly, Apple's technology for distributing applications on the macOS platform does not permit developers to provide multiple entry points for a single .dmg installer. Something about being "simple and easy to use". Therefore macOS is the odd operating system out when it comes to advertising that calibre has multiple GUI programs available. But even so, I think you should be able to start the E-Book Viewer or the Editor from within calibre, and then pin the icons to the dock.

Other alternatives would be to use a professional operating system meant for real users with real needs... oh sorry, did I say that out loud?
*ducks and runs*
eschwartz is offline   Reply With Quote
Old 09-04-2019, 10:58 AM   #21
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: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The calibre e-book viewer is useable as a standalone program on all operating systems, including macOS (there is a separate ebook viewer bundle inside the main calibre bundle).

For instance, if you want to open a book using it from anther program you would do

Code:
open -a /Applications/calibre.app/Contents/ebook-viewer.app file.epub
Or if you dont want to use open
Code:
/Applications/calibre.app/Contents/ebook-viewer.app/Contents/MacOS/ebook-viewer file.epub

On other OSes, just do:

Code:
ebook-viewer file.epub

@Springbok: the calibre viewer most defintely syncs both reading position and bookmarks across operating systems. In fact, by default when reading epub files it stores this data inside the file, so to sync across OSes all you need to do is sync the EPUB file itself.
kovidgoyal is offline   Reply With Quote
Old 09-04-2019, 11:01 AM   #22
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: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As for EPUB 3 features, I dont know what you have in mind, but calibre already supports all the actually useful ones, with the possible exception of page number maps and fixed layout books.
kovidgoyal is offline   Reply With Quote
Old 09-04-2019, 11:13 AM   #23
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,300
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Hi Kovid - thanks for the clarification!

I know Calibre Reader has the ability to have custom CSS via the settings, but is there an option to use the publisher's included CSS?? If we are trying to use it for editing/design functions then using default CSS doesn't help.
Turtle91 is offline   Reply With Quote
Old 09-04-2019, 11:16 AM   #24
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: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The viewer always uses the CSS in the book. As with browsers, CSS cascade starts at the lowest level with the user agent styles, then the styles in the actual document, and finally any user specified styles.
kovidgoyal is offline   Reply With Quote
Old 09-04-2019, 12:22 PM   #25
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,300
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Awesome! I guess I was confused (easily done) when I had the cover image lose its set ratio and fill the display screen using an SVG. Glad to see that it does indeed work!
Turtle91 is offline   Reply With Quote
Old 09-04-2019, 06:36 PM   #26
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: 21,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
FTR: some of calibre's major features are shipped as separate executables, e.g. the viewer, the ePub/AZW3 editor, and library server, and the library manager of course, see ==>> The Command Line Interface
Quote:
Originally Posted by eschwartz View Post
It's nothing to do with the command-line interface, though...
Even calibre's GUI components have optional command line arguments - as documented in the The Command Line Interface section of the manual. If I want to start the library manager with no optional plugins I type calibre --ignore-plugins at the command line…

You know that, I know that, but we're probably not a representative sample of the One-Click generation

BR
BetterRed is offline   Reply With Quote
Old 09-04-2019, 08:56 PM   #27
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: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Hey, we even read the Manual, checked the FAQ before calling on 'support'
theducks is offline   Reply With Quote
Old 09-04-2019, 11:10 PM   #28
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,792
Karma: 6758980
Join Date: Mar 2015
Device: Kindle, iOS
On macOS: Calibre > Show Package Contents > make alias of ebook-viewer or ebook-edit > drop alias in Applications folder (or wherever) and it functions as a standalone app, which can be kept in Dock, launched via Launchpad, or used to open ebooks using right-click, etc.
odamizu is offline   Reply With Quote
Old 11-19-2019, 08:48 PM   #29
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
Posts: 440
Karma: 77256
Join Date: Sep 2011
Device: none
Perhaps no conclusion has been reached and the question remains opened. Some benefits: better performance due to using C++, some greater refinement such as native macOS scrolling that I'm unsure will make it into calibre someday, maybe a more native-looking app that Sigil itself might someday attempt, possible other features such as AppleScript that I'd guess might not never make it to calibre but since it seems one Sigil dev uses macOS, might be possible someday, and so forth.
democrite is offline   Reply With Quote
Old 11-20-2019, 01:20 PM   #30
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
"Sigil needs its own ebook editor because Calibre doesn't use C++" is not a convincing argument. And I haven't generally heard complaints about Calibre being too slow... many performance-critical parts are already implemented in Calibre as C/C++ extensions, anyway. The main slowdown in calibre's ebook-viewer is that for non-EPUB formats the viewer internally runs a format conversion first. And the latest version of Calibre will anyways fully cache the results of this conversion when opening in the viewer, so opening a book for the second time is almost instantaneous if it hasn't changed.

Native macOS scrolling... I don't know what this is, but have you tried asking Kovid to implement it? Native-looking apps sounds like something only macOS users would care about and something that would actively prevent me from using any new program developed by the Sigil developers (assuming it were inflicted on me with no option to disable it). AppleScript is another obvious macOS exclusive which I don't have any knowledge of, but again, why do you think it can or be implemented in Calibre? Can you explain what it would do and why one might wish to implement it?

Overall this seems to primarily be about some perception that Calibre is crippled on macOS due to lacking macOS specific features that macOS users care about. It seems like the easiest answer is to ask that they be implemented.

Not sure how this ties into "we need a fully independent from-scratch implementation of an ebook viewer written by the Sigil developers who we already trust.

Last edited by eschwartz; 11-20-2019 at 01:25 PM.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Reading Component Update Blossom Kindle Fire 36 01-02-2018 12:38 PM
Request for a Sigil (Lite) EPUB Reader Red Wolf Sigil 5 05-18-2017 08:06 AM
Help moving my Calibre library and the server component ReiskaC Calibre 3 03-31-2014 03:18 AM
Epub crashes on Sigil for Mac, OK on Sigil for PC crystamichelle Sigil 6 08-14-2013 02:52 PM
Fix browser crashes by updating android component vldmr enTourage eDGe 0 10-31-2011 03:05 PM


All times are GMT -4. The time now is 04:18 PM.


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