Live data from Hacker News

Show HN: Gutenberg – Modern CSS framework to print the web correctly

github.com

41–50 of 62 posts

Re: Show HN: Gutenberg – Modern CSS framework to print the web correctly

#41
post #31
post #19

Earlier quoted context omitted.

There's a lot of nice things you can do in CSS for printing. I worked on a project to make web articles printable. The last version focused more on doing the printing via the browser using CSS for creating columns. Here's a video demo: https://www.youtube.com/watch?v=854Csokl3QA and some notes in our blog: http://blog.fivefilters.org/post/75603097111/pdf-newspaper-2... The software itself is free to try at http://fiv…

Columns are tricky. Once I tried to convert a paper in ACM style into HTML [0]. It seems to work today. A few years ago, Chrome broke columns in printing mode. What I still cannot do is the copyright notice, which for ACM style must be at the bottom of the first column (see example [1]). This would require something like absolute positioning relative to a printed page. [0] http://pp.ipd.kit.edu/~zwinkau/acm_html/test…

I didn't find a way to fix something at the bottom of each printed page with CSS either. Not sure if there's a solution today. I looked into it last in 2014.

And yes, Chrome had removed multi-column printing. It's supported again now. There's a bug report last updated in March 2016: https://bugs.chromium.org/p/chromium/issues/detail?id=99358

Re: Show HN: Gutenberg – Modern CSS framework to print the web correctly

#45
post #24

Earlier quoted context omitted.

The problem with those, the last time i checked, was that most html to pdf solutions don't support them. The only one I could find was Prince ( https://www.princexml.com/ ) , which is commercial and rather pricey.

webkittopdf supported them just fine. And so does phantomjs when printing pdfs IIRC.

It's too bad webkittopdf is macOS only.

Re: Show HN: Gutenberg – Modern CSS framework to print the web correctly

#46
post #4

Wow, today I learned (via this) about: page-break-before: page-break-after: Did not know these were in CSS3 ! It's always worth poking around in others peoples code...

The problem with those, the last time i checked, was that most html to pdf solutions don't support them. The only one I could find was Prince ( https://www.princexml.com/ ) , which is commercial and rather pricey.

Printfriendly PDF API supports it. https://www.printfriendly.com/api

Re: Show HN: Gutenberg – Modern CSS framework to print the web correctly

#47
post #4

Wow, today I learned (via this) about: page-break-before: page-break-after: Did not know these were in CSS3 ! It's always worth poking around in others peoples code...

The problem with those, the last time i checked, was that most html to pdf solutions don't support them. The only one I could find was Prince ( https://www.princexml.com/ ) , which is commercial and rather pricey.

I am using wkhtmltopdf for turning HTML orders to PDF for my company, I have no page break problems and printing is working like charm.

Re: Show HN: Gutenberg – Modern CSS framework to print the web correctly

#48
post #38
post #28

Earlier quoted context omitted.

Unfortunately, `hyphens: auto;` is still not supported on Chrome Windows. I still recommend using it, as it brings nicer layout to the ones you can see it ( http://caniuse.com/#search=hyphens ) and does not break the layout for others. CSS Text 4 drafts might bring massive improvements for text handling and will give more fine grained controls over hyphenation, such as `hyphenate-limit-lines` ( https://drafts.csswg.o…

I find it sad that what has been holding this back for years is "how will we download dictionaries": https://bugs.chromium.org/p/chromium/issues/detail?id=605840 Especially considering LaTeX had this right for decades - and it is one of the major issues for good and pleasant readability... sigh.

I don't even understand their logic here:

> Linux and Windows don't have built-in dictionaries.

Every Linux distribution I've ever been on has had a dictionary. I'm not sure what package it's in, but the point is that packages exist, and can be depended on (or, although I dislike this, vendored in).

(Is it perhaps that they need a dictionary with the syllabic breakdown of the word? IDK if the normal dictionaries will give you that, or if it can be computed or heuristically determined?)

(Edit: e.g., on Ubuntu, the "text" category includes a number of dictionaries in various languages … http://packages.ubuntu.com/xenial/text/ )

Re: Show HN: Gutenberg – Modern CSS framework to print the web correctly

#50
post #19

Earlier quoted context omitted.

There's a lot of nice things you can do in CSS for printing. I worked on a project to make web articles printable. The last version focused more on doing the printing via the browser using CSS for creating columns. Here's a video demo: https://www.youtube.com/watch?v=854Csokl3QA and some notes in our blog: http://blog.fivefilters.org/post/75603097111/pdf-newspaper-2... The software itself is free to try at http://fiv…

What is it useful for? I saw someone on medium saying they would pay for software that turns his posts into a book but more than that?

[deleted]
Post reply on HN