137 points · by edweis · 2y ago · 159 comments
EPUB lacks annotation, which is not at all trivial; I don't know how well it handles precise layout and pagination, and long-term preservation (will I be able to read it in 20 or 50 or 100 years?). But, again, I wonder why they don't improve on EPUB or at least use it as a starting point, and not seem to reinvent the wheel? (Sometimes, there's a good reason.)
https://en.wikipedia.org/wiki/EPUB
At a quick glance I don't see support for media formats like videos and such - in which case the obvious on-disk format is to hope the filesystem can compress text files and to layout a relative links only data-hive.
So the limitation is the limits of zip.
Features I need are being able to quickly open multiple documents side-by-side; a feature I actively don’t want is maintaining some sort of “library” for me.
Calibre's e-book viewer should cover your use-case just fine, and in KDE is quite easy to set that viewer as the default application for epub files.
I don’t want pagination for reference documents, for one thing – I want fast seamless scrolling.
Not sure if that’s still the case, but on macOS, it used to be hard to open more than one ePub file at a time using Calibre too – also an essential feature for research.
Finally, Calibre viewer edits each opened ePub by inserting a “last reading location” metadata file by default! It’s possible to deactivate in the settings, but I need to remember to do it for every new installation. It’s an absolute no-go as a default for a document viewer.
I don't quite understand: Highlight the desired files in the file manager and press enter? Tile the windows that open? I am missing something (obviously) ...
Microsoft uses that, of course. Why is it senseless? It seems much easier to work with. The portability of one file, instead of directories, is great.
I also love to get .pdf manuals of all the things I buy. I do not want to crawl through someone's website with chat popups and other engagement techniques to find out how to use or fix what I already purchased. Some of them are 40 years old, but as readable as new ones.
I also have lots of things like financial documents I've received that are identical and readable even 20 or more years later.
Although it isn't the cool-thing-of-the-day, I think pdf has its place.
It might be like phone/laptop users vs server users. Most people with a phone or laptop want the new best hot updated thing immediately. The server folks want nothing to change, ever.
> I make PDF files all the time with my scanner
In a hypothetical world without PDFs, wouldn't images work just as well for this? It's not like scanners are creating the same typographic layout etc. as a publisher needs to do when they send documents _to_ a printer?
I have some old ones, they were root document plus a directory full of loose gifs and jpegs.
I tried .webarchive but nothing can read it but the original browser.
Images of pages would be more of the same. You'd probably end up with a bunch of loose gif/jpg/png/tiff filee, one per page, or some semi-supported multi-image file.
Representing the pages as big images not only takes more space to store/archive, but also increases IO-time for loading the documents.
Then you can much more easily theme or site gen your PKB.
Not a huge thing, but enough to break the page layout.
epub I believe are essentially what we as programmers would come up with, xml, html, and style sheets
disclaimer: this is only partially informed speculation
I'm not quite sure what you are saying: PDFs of course provide "properly typeset digital documents" to consumers. Do you mean that consumers don't need or want those? I think they do - look how much effort is put into presentation in every format on every platform.
I think, more importantly, PDF also provides consumers with a high-quality document they know they can read every easily, anywhere - any platform, any time, etc. - with just a click. What other format comes close? Imagine not having it - do you have the app to open the document? will it look like the original? when someone refers to the diagram on page 54, is the pagination the same for your copy/platform/etc.?
Also there is annotation, long-term presrvation, authentication (signatures), etc. but I don't want to sound like a broken record.
Actually that's exactly what I feel like PDFs don't give me. When I come across a PDF report, I immediately know it'll be a massive pain to read on a phone, on my e-reader, etc. and I'll have to wait til I get on a desktop. And even once I do, I have little control over the reading experience (I often use reader mode for websites to strip out daft decisions by designers, or even just to normalise font sizes to something I'm comfortable with).
Page 54 from the original is also trivial to preserve with any reader's pagination, it's just a numeric separator
I suspect Fbreader might be OK - its earlier versions were but I have stopped using it after it added things.
Plus the basic unzip the file and just look at the files with a web browser.
These are just ones I have on my machine now.
> How do you do annotation?
Same as PDF - if you want that, get an app that has that feature.
> And how do you know you can read the document decades into the future?
Same as PDF, except that HTML is a simpler format.
> Also, for longer texts, isn't it harder to read without the high-quality readability enhancements, such as typefaces, layouts, etc.?
HTML has all these things? (With CSS, I mean.)
> Same as PDF - if you want that, get an app that has that feature.
In PDFs, annotation is a well-established part of the specification. I know my annotations on whatever app I use today will be fully functional in any app, on any colleagues or my computers, decades into the future. I could send you an annotated PDF document now and you could read it, annotate it yourself, and send it back.
>> And how do you know you can read the document decades into the future?
> Same as PDF, except that HTML is a simpler format.
PDF's spec prioritizes long-term preservation (or whatever term they use), especially in PDF/A format. HTML does not.
>> Also, for longer texts, isn't it harder to read without the high-quality readability enhancements, such as typefaces, layouts, etc.?
> HTML has all these things? (With CSS, I mean.)
PDFs look much better to me than HTML. I don't think HTML capabilities are on the same level, but I don't know the technical underpinnings of layout well enough to specify why. I know precise layout in HTML can be a challenge.
Also, you're missing out.
Documents are best when they're just documents and can't instantly infect your device just by opening them. The odds of this format being any less toxic than PDF is zero. It'd be pretty nice if we could have a document format that printed well, but didn't also allow for RCE attacks, violate your privacy, or require a locked down environment and ad blockers just to view safely.
It'd be much better to support a sane subset of features than to allow a document to do everything and anything leaving you to just hope that the sandbox holds up to protect the rest of your system against the inevitable vulnerabilities.
these things are features in a lot of contexts.
I’m trying to read documents on my screen 99% of the time, not print them, so I couldn’t care less about some hypothetical paper page size they’re tying me to.
Regarding videos: PDFs support these too, and more – including scripting and 3D models!
Outside of that, PDFs are "hard" to edit (unintentionally) so for a quote or invoice I know you're seeing what I sent you. I've never had a PDF "updated" by a manager on my side, or yours.
And yeah, ultimately, they're often printed if they're legal or accounting.
Relying on your business partners or colleagues not knowing how to do this seems risky: If you can’t trust them, I’d personally use PDF signatures or at least hashes of the entire file.
I can't remember a single non-fiction epub that was better than or even equal to the PDF.
But anything remotely technical with code snippets, diagrams, screenshots, tables, etc, PDF is going to be infinitely better.
Right now you can download a webpage on most web browsers. It saves the html file and an associated folder. It would be cool if the web browsers placed that file and associated folder into a zip folder with a special file extension, and then the browser could read it on a double click as if you opened the html file.
Yes, I know it's limited. But dead simple. The format could evolve and get more bells and whistles over time.
Others mentioned epub. I do wish more sites offered epub downloads alongside or instead of pdf. Maybe browsers can do this, and maybe it'd be better than the simpler solution I suggested, but there are pros and cons to weigh here.
This browser addon does that for example: https://addons.mozilla.org/en-US/firefox/addon/single-file/
The only downside I can see to what you propose is the file size overhead of base64 encoding the assets.
[1] https://gildas-lormeau.github.io/singlefile-updates/version-....
Fantastic extension by the way, thank you very much for your work.
I always like to mention that that Chromium currently allows saving to MTHML (a self-contained single HTML file, with attachments/images). In Vivaldi (Chromium based) the appropriate launch argument (`--save-page-as-mhtml`) is enabled by default.
Firefox used to support MHTML as well until 2017 via an addon. Now days on FF an alternative called SingleFile saves to a literally renamed zip, for a similar purpose.
It's also guaranteed to never go away because it uses the exact same way emails are encoded.
My kingdom for an open standard (HTML) that can also be print-perfect (PDF) with good document header/footer/footnote and page numbers
I've been waiting on browser vendors for what feels like ages for good print-pages (since at least 2005).
And +1 for PrinceXML (https://www.princexml.com/) but i need tools that work with my MIT and GPL released code.
Yes you can - just save them locally?
All DocuSign contracts I’ve ever interacted with were signed using the “click here to sign your name” flow, i.e. not making use of PDF signatures at all.
I’ve signed PDFs using a “qualified digital signature” myself a few times, but that was in the EU.
no, its really not. I have been using PDFs in a "real world business context" for many, many years. and out of thousands of PDFs sent and received, less than 1% (probably 0.1%) had a use for a digital signature. signatures are useful, but you seem to be inflating their importance for typical daily business use.
I switched to SinglePage since I prefer to just save pages as stand-alone files. It does waste some space, but I can move the saved files to wherever it makes sense in my hoard and use my filesystem for organizing files instead of HTML documents living in their own location.
I also use the Save Text to File add-on. Often only the text on a page is useful anyway. At least that compensates a bit for the space wasted when using SinglePage on other pages.
The whole point is that they are not dynamic.
Can you send me that as a "Pee-Double-You-Dee"?