News for hackers. Stuff that matters.
Re:Portable EPUBs by SilentM68 on Friday January 26, 2024 @12:01AM (#39139114)
One thing I dislike about PDFs is that dark themes usually don't render good, especially the embedded images, whereas the EPUB format seems to render them just fine. If a new EPUB format is created, I would suggest that they support pagination, since post secondary courses usually ask students to site chapters, pages, etc. Most EPUBs that I've come across don't have pages. The last thing I'd suggest is that the new standard, if created, should incorporated accessibility features, so that the file is readable by screen readers. PDFs are rarely designed with accessibility in mind. Making them accessible is also a gigantic pain to do. The technology behind any new EPUB document standard should have native accessibility support by default. People with print disabilities will thank you.
Re:Portable EPUBs by starkparker on Friday January 26, 2024 @12:54AM (#39139326)
> If a new EPUB format is created, I would suggest that they support pagination, since post secondary courses usually ask students to site chapters, pages, etc. Most EPUBs that I've come across don't have pages.

From the post:

> I think we just have to give up on citing content by pages. Instead, we should mandate a consistent numbering scheme for block elements within a document, and have people cite using that scheme.

The point of a citation is to specifically reference an assertion. Any method of specifically referencing an assertion works.

If anything, referencing by section and paragraph is more portable than referencing by page number. It's more consistent across different print formats of the same text (hardcover vs. paperback, and mainstream print editions vs. large-text or braille editions) as well as different digital formats.

Re:Portable EPUBs by jxdxbx on Friday January 26, 2024 @05:13AM (#39140877)
this is an issue in the legal world. court opinions accessed only online are cited according to their “page number” in some reporter or another. it’s better to cite paragraph numbers when possible but most American legal documents are un-numbered.
Re:Portable EPUBs by crabmusket on Friday January 26, 2024 @06:37AM (#39141509)
It sounds like the legal world can continue to use PDFs. That's fine!
Re:Portable EPUBs by dsr_ on Friday January 26, 2024 @09:52AM (#39143240)
Laws already have problems with HTML: numbered lists are specified in a way which is incompatible with many jurisdiction's numbering schemes, including the US Federal standard.
Re:Portable EPUBs by steve1977 on Friday January 26, 2024 @12:59AM (#39139356)
> dark themes usually don't render good

PDFs should not render dark themes at all. PDFs should like exactly like they were produced. So if they were produced with black on white text, that's what they should render, in any circumstance.

Re:Portable EPUBs by o11c on Friday January 26, 2024 @01:31AM (#39139506)
Or it can just invert the L component of all colors in the HSL colorspace at the very last stage of rendering, which only requires a couple subtractions to do in sRGB.

Unlike the unfortunately common "invert directly in sRGB", this preserves the colors changing only the brightness, and honestly it's pretty good. Colorspace nerds will no doubt complain that there are better colorspaces available, but in practice, most consumer devices implement "sRGB" perceptually such that this works better than fancier methods (which only work for carefully calibrated displays in carefully calibrated rooms).

Re:Portable EPUBs by steve1977 on Friday January 26, 2024 @02:52AM (#39139900)
I didn’t say PDF cannot do it, I said it should not. It defeats the purpose of PDF.
Re:Portable EPUBs by Vecr on Friday January 26, 2024 @01:20AM (#39139461)
Zathura[0] has a dark mode[1], it works pretty well.

[0]: https://pwmt.org/projects/zathura/

[1]: ^r Recolor (grayscale and invert colors)