Show HN: Epub.to – ePub to pdf, mobi, Kindle, and an API
epub.to
epub.to
I have no problems using Calibre or PanDoc for this task though. Obviously the problem emerges when you want to do the job without installing anything.
There are all kinds of potential use cases for users of differing levels of technical sophistication.
Why wouldn't you provide an option to convert to .pdf?
I prefer epubs too, but apparently readers really like PDFs...
Which is also its downside when formatting is not critical. I want to be able to change the font size and have the text reflow correctly. With PDFs you end up with broken layouts if you don't view it exactly as formatted.
Reflowable books also do a poor job reflowing content.
Case in point, the free AWS ebooks on kindle are a god-awful mess whenever they add code snippets, no matter how small.
Given the choice, a good fixed format layout beats a bad reflowable layout.
On the contrary! Why would you ever keep an epub file around? If somehow an epub file finds its way into my computer, the first thing that I need to do is to convert it to pdf to be able to read it with a reasonable viewer (or print it!). After the convesion, I delete the epub file; I really dislike this format and the associated software.
Why prefer an epub...
They have flowed text, and ebook readers let you customize font and font size so that the book's text adapts to you rather than you adapting to a particular combination of publisher quirks and zoom necessary to fit in a particular device's or app's viewable size.
They're generally smaller files.
And if there's something about the epub you don't like, you can actually fix it.
If a book is available in both PDF and epub formats, it's a reader's prerogative to pick the one they want, and there are specific types of books where PDFs might be preferable. However, if there's no original pdf, what is the objective of converting an epub to pdf in order to read it on a computer? Whatever you think you're accomplishing, I think you're mistaken. You end up with a pdf that looks exactly like how a typical ereader would display the epub. Minus the flowed text and font customizability, and probably with poorer navigation as well.
Does epub support proper proper math notation typesetting?
Moreover, text in a webview doesn't flow as nice as vanilla TeX, and can look outright atrocious.
Also, modern unicode fonts have good coverage of math symbols, so a lot of abstract math can be written inline without even resorting to mathjax. Algebra, set theory, and things like that.
I think the delay there is the many older ebook readers and apps that have quirks that require workarounds to get mathjax to work. Why bother, when publishers could just render equations to images or SVG and hardcode them? Mathjax just takes that rendering step out of the publishing pipeline.
Text flow... are you talking about inter-word spacing and rivers? My take on that is: full text justification was always a bad idea, only promoted for aesthetic reasons and to show off fancy layout engines that reduced rivers and other bad artifacts. It seems some publishers are doing away with it in new books. Poetry and plays rarely used it.
I would say that mathematicians are extremely picky about the quality of their displayed formulas. Most of what can be produced by mathjax is not of acceptable quality. I speak about fine-tuning of kerning, alignement, etc. Having "reflowable" text is a nightmare for typography-inclined people: the flow is an essential part of the content and you do not want to lose it!
Back to the main points:
Epub is a better format for everything except niche uses (textbooks, especially math, papers, etc) where there's an argument for pdf. It's rather weak, but I understand the argument and I don't throw a fit when such material is only available in pdf. Most regular books aren't even published in pdf format anymore, for good reason.
There's no reason to convert epub to pdf except to print it — and why the hell would you do that? buy a used print copy — or to send to someone who doesn't have an epub reader — in which case you're better off giving them the name of an epub app to search for and install, so that they can read epubs in the future, rather than converting every epub you want them to read into poor quality pdfs.
Meanwhile, mathjax will only improve, along with publishers' general css competence.
a) EPUB supports Math notations
b) you don't even have EPUB files where it's an issue.
I've tried to like them, customize them, fix their problems, etc but to no avail.
For example, my girlfriend is an avid ebook reader but couldn’t be less interested in it. “I can see why that could be useful but... no thanks.”
We like the smell of our own farts too much sometimes. In this case, in the form of “why don’t people want to use more software to do what you were already doing without it?”
Yes, that's a good point. I originally had "Why would you want to go without Calibre when it's so multi-functional?", but changed it to "Who knows why you'd want …" in an aim to sound less confrontational. I seem instead to have gone the other way!
I can't run calibre from my mobile. I can rename .epub to .png and email that from my mobile.
Yes, I can host calibre somewhere else. No, my technologically savvy friends and family cannot. I also don't want them to depend on me to be able to convert an epub for their kindle when there's a trivial solution that doesn't require additional dependencies.
There's a "less" missing in there, oops.
> The current Kindle formats (AZW3, KF8, and KFX) are based on MOBI and is a proprietary format exclusively used on Kindle devices. And, in fact, you can still open files with the MOBI format directly on your Kindle
https://www.howtogeek.com/360419/what-is-a-mobi-file/
If you want to write a Kindle book, checkout my book, Publish Your eBook by Joel Dare.
https://www.amazon.com/Publish-Kindle-write-ebook-software-e...
I’m somewhat tech literate, but pretty ignorant about e-book file types.
If you wanted to do that, I'd just use Calibre, which has really comprehensive format conversion abilities: https://calibre-ebook.com
Most Kindle ebooks have DRM as well, which I think is currently hard to remove -- there's a plugin for calibre that you could try. Some publishers don't apply it, though, so maybe.
There is also a plugin for Calibre, although I haven't tested this myself. I'm not sure if it requires a device ID or not. [1]
[0]: https://alexwlchan.net/2019/08/removing-the-drm-from-my-kind...
[1]: https://github.com/apprenticeharper/DeDRM_tools/wiki/Exactly...
https://github.com/kevinhendricks/KindleUnpack
This is a fantastic way to read books published by Tor on multiple devices. Now if only Tor would sell the ePub files on their website. (Tor eBooks are not DRMed.)
At the Publisher's request, this title is being sold without Digital Rights Management Software (DRM) applied.
(see https://play.google.com/store/books/details/John_Scalzi_Old_... for an example)And indeed once you purchased his books you can download a DRM-free epub or pdf file of the book you purchased and use any tool you like to read it.
I don't see similar note on the listings of his books on Kindle store, so my _guess_ would be that Amazon is unwilling do fulfill this request from the author, but I could be wrong (I never owned any kindle device anyways).
There are methods to strip it using old versions of the desktop kindle app that have exploits, but it's not overly easy to do if you're not familiar with stuff like that.
If you strip the DRM, with tools which are common to find on the net, you can then use Calibre to convert them to EPUB, which is a very common format.
What do you get with KFX? It's hard for me to imagine any goodies I'd rather have than a file that I own and can read at my leisure.
https://kdp.amazon.com/en_US/help/topic/G202087570
The writing is on the wall though - DRM is getting better and the easy to crack formats will probably fade away soon.
The solution isn't technical (ie better cracks), it's legislative. Books are special and most e-books shouldn't be DRM'd. Purchasers of ebooks should have the right to resell, to gift, to bequeath, to trade, and do all the other things that have been part of book culture for the past few hundred years.
https://www.epubor.com/ultimate.html
eBook DRM Removal functions
Support eBooks purchased from: Amazon Kindle, Barnes & Noble Nook, Sony, Kobo, Google Play, Lulu, Smashwords, Fictionwise, and more... Input formats: KFX, EPUB, PDF, AZW, AZW1, AZW3, AZW4, Mobi, PRC, TPZ, Topaz, TXT, and HTML. Output formats: EPUB, Mobi, AZW3, TXT and PDF.
https://www.geoffstratton.com/remove-drm-amazon-kindle-books
https://github.com/apprenticeharper/DeDRM_tools
The README says this:
> Note that DRM can only be removed from KFX format files downloaded with Kindle for PC/Mac 1.26 or earlier. Amazon changes the DRM for KFX files in Kindle for PC/Mac 1.27 and later.
KFX is different from older versions in that the file is tailored to the device it is downloaded on. If you download with the Kindle for PC, the file is optimized for your big, high resolution screen and isn't going to be great on an eink device.
There are no cracks that work with the KFX files extracted from the Kindle reader.
FYI, (at least in my document) quotes and apostrophes and em-dashes don't work properly.
A book is not a file. It never will be.
I know half the unixy nutcases won't agree with anything normal but in reality the world will continue to buy dead-tree books because no real consumer believes or wants these stupid files. Or will pay for it. Meh, the trash.
> no real consumer believes or wants these stupid files
Both markets will continue to exist for a long time for different reasons and readers.
Yeah, that’s why people moved away from cassettes to Youtube. I have a lot of friends who gave their Kindles away and are back into paperbacks and/or the iPads.