News for hackers. Stuff that matters.
Re:Algorithms, by Jeff Erickson by webmaven on Wednesday January 02, 2019 @09:32AM (#18806348)
Great resource, though I wish it was available as an EPUB (or MOBI, or AZW3).
Re:Algorithms, by Jeff Erickson by jefferickson on Wednesday January 02, 2019 @10:09PM (#18812511)
You can get an EPUB and MOBI versions from the Internet Archive (auto-converted from my uploaded pdf), but I can't vouch for its quality.

All the fonts are baked into the PDF, so it should be readable anywhere; if it isn't, please submit a bug report!

But if you're looking for a format that lets you reflow the text, by changing the margins or font or text size, you're out of luck. The only way to write something like that is to bake it in from the beginning. That's easy for pure text, but hard to impossible for technical documents with lots of displayed equations, big hard-formatted boxes of text (ie, algorithms), and the like.

(Boaz Barak managed it by writing his Modern Complexity Theory book entirely in Markdown. The mind boggles.)

Re:Algorithms, by Jeff Erickson by atombender on Thursday January 03, 2019 @11:31AM (#18816338)
I don't know what you use to typeset the book, as I can't find any source files, but isn't LaTeX really good at this?

I'm not sure what makes it hard to reflow. The text seems to be mostly paragraphs with figures, inline formulas and footnotes; pretty basic stuff, no?

(O'Reilly's books were famously typeset with Troff/Groff for many years, though I don't know how painful that was or how advanced their typesetting needs were.)

All I know is that I'd love a version that worked on smaller devices. I tried the Kindle version reformatted by archive.org, but it has lost most of the formatting, making it almost completely unreadable.

I'd especially like an HTML version of the book that was fully hyperlinked, with zoomable vector figures, footnotes hidden away in popups, etc.

Re:Algorithms, by Jeff Erickson by webmaven on Friday January 04, 2019 @12:04AM (#18822096)
> (O'Reilly's books were famously typeset with Troff/Groff for many years, though I don't know how painful that was or how advanced their typesetting needs were.)

I beleive that O'Reilly Media has used ASCIIDoc[0] as their preferred internal format for quite a few years. Formulas are supported through ASCIIMthML[1].

More recently, they seem to have transitioned to HTMLBook[2] as a preferred source format for systems like Atlas[3].

[0] ASCIIDoc is basically a Markdown-like (or ReStructuredText-like) format that is feature-equivalent to DocBook XML: http://asciidoc.org/

[1] http://asciidoc.org/asciimathml.html

[2] http://oreillymedia.github.io/HTMLBook/

[3] https://atlas.oreilly.com/

Re:Algorithms, by Jeff Erickson by webmaven on Friday January 04, 2019 @07:31AM (#18823533)
> I can't vouch for its quality

The quality of the EPUB is terrible, it looks like it was OCR'd from images of the pages, not just converted from PDF.

Can you make the source format for the book available?

Re:Algorithms, by Jeff Erickson by sharmi on Wednesday January 02, 2019 @10:27AM (#18806737)
I use moon reader pro on Android. It allows annotating and highlighting pdf text. I am not affiliated except as a long time user.
Re:Algorithms, by Jeff Erickson by rezeroed on Wednesday January 02, 2019 @12:09PM (#18807753)
It is. Follow the internet archive link.
Re:Algorithms, by Jeff Erickson by webmaven on Friday January 04, 2019 @07:18AM (#18823478)
An automatic conversion to EPUB from PDF or from a scan is not what I was asking for.
Re:Algorithms, by Jeff Erickson by qazpot on Wednesday January 02, 2019 @09:38AM (#18806388)
Why wish, when you can convert PDFs to EPUB very easily using online converters.
Re:Algorithms, by Jeff Erickson by znpy on Wednesday January 02, 2019 @09:48AM (#18806443)
Yes, but the resulting documents often are horrendous when rendered on ereaders and similar.
Re:Algorithms, by Jeff Erickson by piyush_soni on Wednesday January 02, 2019 @10:01AM (#18806545)
Yeah i tried doing that. The conversion is so bad with multiple random line breaks in a single line, and some unicode characters not getting converted etc. It was a bad experience.