Live data from Hacker News

Show HN: A Reddit reader that looks like the frontpage of a print newspaper

unim.press

71–80 of 129 posts

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#71
Very cool -- looks like the dev (@thesephist) is using Torus, a minimalist front-end framework they themselves are also developing:

https://github.com/thesephist/torus

Nice showcase of the tech! Now I want to tinker with the Torus framework as well.

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#73
Very cool idea, since this is a niche product why not adding a small qr code for the articles? By this way this could totally be printable. You read articles from paper while commuting etc. Mark the ones you find interesting. At the end of the day you could visit them via you phone if you really want to see them live.

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#74

The hyphenation on the center-spread column doesn't look great, leaving big whitespace gaps in justified text. In my experience, "hyphens: auto" in browsers doesn't work well at widths smaller than 80ch. The "center-spread" column is currently set to width: 600px, approximately 67ch. Changing it to width: 80ch looks much, much better, in my opinion. I also suggest adding the Safari variant, "-webkit-hyphens: auto", a…

My understanding is that "hyphens:auto" should not be doing anything in the absence of a lang attribute: the browser is not supposed to do automatic hyphenation if the content language is unknown.

https://drafts.csswg.org/css-text-3/#hyphenation

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#75
post #74

The hyphenation on the center-spread column doesn't look great, leaving big whitespace gaps in justified text. In my experience, "hyphens: auto" in browsers doesn't work well at widths smaller than 80ch. The "center-spread" column is currently set to width: 600px, approximately 67ch. Changing it to width: 80ch looks much, much better, in my opinion. I also suggest adding the Safari variant, "-webkit-hyphens: auto", a…

My understanding is that "hyphens:auto" should not be doing anything in the absence of a lang attribute: the browser is not supposed to do automatic hyphenation if the content language is unknown. https://drafts.csswg.org/css-text-3/#hyphenation

I was going to file a bug against Chrome, but it turns out this was reported several years ago already:

https://bugs.chromium.org/p/chromium/issues/detail?id=676270

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#76

Very cool -- looks like the dev (@thesephist) is using Torus, a minimalist front-end framework they themselves are also developing: https://github.com/thesephist/torus Nice showcase of the tech! Now I want to tinker with the Torus framework as well.

Yep! It was one of my main side projects earlier last year and these days I consider the library itself "done", using it for most of my side projects if I need something more robust than vanilla JS. Just drop in a tag and go for modern browsers -- makes it easy to prototype really quickly. It's not superlative at anything (except maybe prototyping speed) but I know it inside and out, and its no-build/no-config nature makes it well suited for weekend hacks like this.

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#77

Please do not use justified formatting for text unless you can hyphenate it. Otherwise you end up with large chunks of white space between the words, especially in narrower (then 6070 characters) columns. Browsers don’t hyphenate, so avoid justified text on the web.

Browsers do hyphenate, and this page enables it, with the "hyphens: auto" CSS rule. https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens In Google Chrome, you'll see that it hyphenates "profes-sional" in the second story of the center column. It's still not enough, though, because it still leaves huge gaps in the justified text; it works best when you use width: 80ch. The page is currently using width: 600px, whi…

And if you do see hyphenation in Chrome, that's a Chrome bug (https://bugs.chromium.org/p/chromium/issues/detail?id=676270), because the spec says the browser must only do this if the content language is known.

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#78
My print newspaper doesn't say "Loading stories"...

How about doing the page generation on the server-side? That way a static page could be served.

... actually, in that case, maybe a _PDF_ could be served, and that's really more like print :-)

Post reply on HN