News for hackers. Stuff that matters.
Re:Bookworm: A Simple, Focused eBook Reader by dewey on Tuesday February 19, 2019 @02:22AM (#19197255)
I’m not sure why people compare it to Calibre here. Calibre is an insanely full featured management, editing and metadata filling software for ebooks and not build as a minimal reader. I guess the main use case is to send ebooks to your reader device from Calibre (Like a Kindle) and it’s doing that very well especially if you invest time in setting it up and using the right plugins for your use case.

You also don’t use Photoshop for browsing your images, it’s possible but it’s not what it’s made for.

Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @03:19AM (#19197443)
My first reaction was also the same: "That's a nice reader, but I use Calibre, and can read my eBooks from it too". If I didn't have an eReader and didn't manage it with Calibre, I'd build and it use it happily.

While Calibre has a full management, editing and authoring suite, it also has a nice internal reader with reading features.

It's not like the Photoshop, but rather the ACDSee suite, which comes with a full fledged image browser and viewer.

Re:Bookworm: A Simple, Focused eBook Reader by qwerty456127 on Tuesday February 19, 2019 @03:33AM (#19197496)
Yet Calibre is full of quirks, seemingly lacks some reasonable features (like importing metadata from book files themselves) and stuck with Python 2. I wish there were alternatives...
Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @03:39AM (#19197517)
When I add books to Calibre, it reads and lists all the metadata correctly. I never added metadata to a book manually if the book has it. Strange.

I can't comment on the Python2.x dependencies though.

Re:Bookworm: A Simple, Focused eBook Reader by ascii_only on Tuesday February 19, 2019 @04:36AM (#19197775)
Calibre author have said that despite python2 eol he will not transition to python3 and that he is "perfectly capable of maintaining python2 himself"
Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @04:58AM (#19197875)
However it seems that people are slowly migrating Calibre to Python 3.

Also looks like any Python3 patch doesn't break the current Calibre build is welcome indeed.

Re:Bookworm: A Simple, Focused eBook Reader by ascii_only on Tuesday February 19, 2019 @06:40AM (#19198242)
Yes. I should have been more clear. He is not against python3 but thinks that it is less work to maintain python2 than port calibre to newer version.
Re:Bookworm: A Simple, Focused eBook Reader by qwerty456127 on Tuesday February 19, 2019 @07:04AM (#19198334)
This sounds like Calibre codebase is a mess that needs to be refactored.
Re:Bookworm: A Simple, Focused eBook Reader by darkpuma on Tuesday February 19, 2019 @07:11AM (#19198370)
To be honest the best part of Calibre, the `ebook-convert` tool, is already broken out from the rest of it. It's similar to pandoc though in my opinion often does a nicer job.
Re:Bookworm: A Simple, Focused eBook Reader by PurpleRamen on Tuesday February 19, 2019 @07:55AM (#19198579)
Even the best codebase can't effortless be ported. Calibre seems to have something around 25 MB of python-code, several external plugins, some C-code and other languages. Transition of this would take quite some time.

Additionally, there is the problem of compability. Configuration in Calibre is python-code, and on several corners the user can mod stuff. Any transition would need to make sure to not brake things to hard.

Re:Bookworm: A Simple, Focused eBook Reader by megablast on Tuesday February 19, 2019 @07:12PM (#19204374)
Oh. Like every single codebase ever then?
Re:Bookworm: A Simple, Focused eBook Reader by rat9988 on Tuesday February 19, 2019 @06:46AM (#19198264)
To be honest, I don't see why would you port it to python 3. Isn't it already working? Are there any python 2 bug hampering its development?
Re:Bookworm: A Simple, Focused eBook Reader by PurpleRamen on Tuesday February 19, 2019 @07:37AM (#19198491)
Python2 will be at end of support next year. That means slowly it will become harder and harder to make calibre runable on modern systems. 3rd-party librays will decline and receive no updates. Python2-interpreter will not be installable out-of-the-box. There will be no security-updates or new features.

Python2 as a platform will slowly die and any application depending on it will die with it. Though, this won't become a serious problem in the next years, but more like 5-10+ years.

It's sad, but the reality now.

Re:Bookworm: A Simple, Focused eBook Reader by qwerty456127 on Tuesday February 19, 2019 @09:46AM (#19199227)
To be honest, I doubt corporations will give Python 2 up easily. Currently Python 2 codebase in use in production is probably fairly huge and is just working. Look at how hard it is to convince enterprises to give up Internet Explorer even though Microsoft itself says they should really end using it. Someone like Red Hat will probably keep maintaining Python 2 for at least some years more.
Re:Bookworm: A Simple, Focused eBook Reader by PurpleRamen on Tuesday February 19, 2019 @10:49AM (#19199722)
Indeed, but companies have full control over their software and used OS-Versions. They can virtualize, package or even compile themself, and fix problems in their own space.

But calibre is desktop-software, it depends on the OS, the GUI-Framework and whats more... Though, it's actually only a bigger deal for linux, beacuse on Windows and Mac OS is custom to deliver compiled versions from the Project itself. Also there is not wayland-situation on windows and Mac OS, which might break GUI-Libs. But as Calibre has so many different gears it's depending on, there is a good chance that something will break after a certain point.

> Someone like Red Hat will probably keep maintaining Python 2 for at least some years more.

Actually, Red Hat is already dropping python2 for their next enterprise-version as I read. They will probably still have a somewhat maintainend version available somehow, but it's obvious that python2 is slowly phasing out now. And many remaining companies are now starting transition too as EOL is near.

At this point you can already can predict that python2 will have reached minimal levels of usage in 5 years.

Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @07:05AM (#19198339)
Because Python2's end of life is announced. There'll be no Python 2.8, 2.9 or future. It may get some security fixes, but it'll be abandoned then.
Re:Bookworm: A Simple, Focused eBook Reader by jiva on Tuesday February 19, 2019 @04:14PM (#19202857)
"there will be no updates, not even source-only security patches" from the man himself: https://mail.python.org/pipermail/python-dev/2018-March/1523...
Re:Bookworm: A Simple, Focused eBook Reader by qwerty456127 on Tuesday February 19, 2019 @04:48AM (#19197828)
Every time I drag a book file (whatever a format, whatever a source) to Calibre it can only guess the title and the author from the file name (although ebook formats like fb2, epub and mobi usually have this data embedded inside them). It can't even extract the cover (something CoolReader on Android does easily). Then I have to copy-paste ISBN manually and click "download metadata". I have always suspected the feature is there (it seems unreasonable to be missing from such a tool) but doesn't work for some weird reason. I use Calibre 3.39.1 from AUR on Manjaro.
Re:Bookworm: A Simple, Focused eBook Reader by jsn on Tuesday February 19, 2019 @07:59AM (#19198598)
I use calibre from community packages on archlinux, it has absolutely no problems reading metadata (authors, titles and covers, and tags etc when present) from epub / mobi / pdf / etc.
Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @04:51AM (#19197836)
I'm using Calibre 3.35 on Debian Testing and I have all authors, tags, categories, series, everything automatically imported to my library for many books from many sources. Maybe there's a library dependency missing somewhere? Any debug logs?

I'm not at my main workstation at home, so I cannot compare now, but it's a very strange situation.

Re:Bookworm: A Simple, Focused eBook Reader by qwerty456127 on Tuesday February 19, 2019 @05:48AM (#19198046)
Perhaps you mean you use Calibre to download books from particular sources so Calibre exchanges metadata with the source server directly? I add files manually by dragging them to the Calibre window and expect it to extract metadata (like the book autor, title, ISBN and cover picture) from the file.
Re:Bookworm: A Simple, Focused eBook Reader by PurpleRamen on Tuesday February 19, 2019 @08:04AM (#19198623)
I usually buy ebooks through Humble Bundle, download all formats and then import them into calibre. For 2 of 3 formats the metadata will be extracted without problems.

Only one is usually lacking. I think it's mobi or epub, but never bother to pin it down because I just combine then in one entry anyway, and then the metadata will be merged together.

Calibre has usually no problem with extracting metadata from files, independant from the source.

Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @08:30AM (#19198787)
It's possibly .mobi. Calibre reads all metadata from my HumbleBundle ePubs just fine. :)
Re:Bookworm: A Simple, Focused eBook Reader by superhuzza on Tuesday February 19, 2019 @03:08PM (#19202309)
I download my epub and mobi files from my browser and IRC, and Calibre has always picked up the cover and metadata just fine.

In the import/add books settings, there is an option to use the filename instead of the metadata. Try changing that?

Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @06:30AM (#19198213)
No, I download books with my browser, and drag them into the Calibre. It harvests the metadata embedded in the file automatically.
Re:Bookworm: A Simple, Focused eBook Reader by calcifer on Wednesday February 20, 2019 @03:20AM (#19206453)
How does Calibre's use of Python 2 effect your use of the application?
Re:Bookworm: A Simple, Focused eBook Reader by eeZah7Ux on Tuesday February 19, 2019 @07:09AM (#19198357)
...and it needs a huge amount of dependencies. And RAM.
Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Tuesday February 19, 2019 @10:21AM (#19199511)
It's a convoluted piece of software, which does a lot of things, but with ~160MB of RAM usage, I wouldn't call it a heavyweight.

Its RAM requirement is more than the capacity of my first hard drive, but it's not in the league of Chrome, Slack or Atom. There are many wasteful applications out there doing much much less with much more resources.

Re:Bookworm: A Simple, Focused eBook Reader by eeZah7Ux on Wednesday February 20, 2019 @05:16AM (#19206882)
You are cherry-picking memory hogs like "Chrome, Slack or Atom" as comparisons and ignoring bookworm and other more reasonable applications.

Also, I had to drop Calibre due to the large number of Python 2 and imagemagik dependencies that have a maintenance cost when it comes to pulling updated packages & so on.

Making Calibre modular would have helped greatly but the author never cared.

Re:Bookworm: A Simple, Focused eBook Reader by bayindirh on Wednesday February 20, 2019 @05:53AM (#19207012)
> You are cherry-picking memory hogs like "Chrome, Slack or Atom"...

Huge amount of RAM usage is subjective term. For me, Chrome, Slack and Atom are memory hogs. While I do not find the RAM usage of Calibre optimal, I think its RAM usage is reasonable with that feature set for me. Eclipse is also using ~1.1GB of RAM, but it's not a memory hog from my perspective, because I get what I give as productivity and features that I actually use and benefit.

>... ignoring bookworm and other more reasonable applications.

No, I'm not. Above, here [0], I said that Bookworm is a nice application, but my needs are different. Also, I compared Atom with another functionally-similar text application and said that similar applications (like BBEdit) use ~60MB, but Atom uses 660MB out of the box.

Similarly, since Bookworm doesn't provide the features that I need, installing it would be moot, since it'll sit unused on my disk, actually wasting disk space from my point of view. However, this doesn't make Bookworm a bad application. If it provides the functionality one needs, then I'm happy for them. Also its user interface is elegant and minimal, this another plus for Bookworm.

> Also, I had to drop Calibre due to the large number of Python 2 and imagemagik dependencies that have a maintenance cost when it comes to pulling updated packages & so on.

I don't know your OS and setup, and can't comment on that. However, major distros are doing the required maintenance, so many people are just installing it on their systems.

> Making Calibre modular would have helped greatly but the author never cared.

I don't know internal architecture of Calibre, so I can't say anything about this issue. However modularity has its own set of benefits and problems.

[0]: https://news.ycombinator.com/item?id=19197443

Re:Bookworm: A Simple, Focused eBook Reader by jplayer01 on Tuesday February 19, 2019 @03:39AM (#19197518)
You can entirely ignore the main Calibre program. Associate epubs with the Calibre reader and it only opens that. You never need to interact with the management suite.
Re:Bookworm: A Simple, Focused eBook Reader by skillachie on Tuesday February 19, 2019 @05:11PM (#19203374)
Agreed that Calibre is a full featured management app that does it's function well but it requires readers to then use multiple apps to maintain their eBook collection.

Would be happy if you could take BookFusion for a spin. BookFusion allows you to easily upload and organize your eBooks while being able to read on iOS, Android and Desktop(via Web)

https://www.bookfusion.com/reading/cloud-library

There is also a Calibre plugin that will allow you to easily sync your Calibre eBook collection.

https://www.bookfusion.com/reading/calibre