Would be cool if there was one of these for the front page of HN. Pretty challenging to parse though. Headlines and comments should be simple enough, articles and images not so much.
My thoughts too! Hacker News was actually in a prototype of this and you can try it by going to https://unim.press/#hn -- but indeed, it didn't look great without pictures. Might be able to scrape linked articles and such, but I didn't get that far in an afternoon hack.
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.
Right, there’s also overflow-wrap though it’s intended more for preventing layout breakage in a language-agnostic way. Maybe it could be useful if you’re working with a language that isn’t supported by browsers.
That’s not entirely true is it? Browsers can hyphenate (using the hyphen property in CSS) but it only supports certain languages, which need to be specified in the lang attribute of the html tag.
Probably because hyphenation is itself a rabbit-hole of complexity; some languages may require a complete dictionary to determine where words can be hyphenated, and sometimes it could depend on what style guide you follow, etc.
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, which is approximately 67ch. (If you don't see hyphenation in Safari, that's because the developer didn't enable -webkit-hyphens. If you don't see hyphenation in Firefox, that's because the page's tag doesn't have a lang="en" attribute.)
Real newspapers do justify text, and they do end up with large chunks of white space between words. I think OP was going for the newspaper look so that part is quite authentic even though I agree it may not be the best design choice for "normal" web pages.
I know real newspapers do hyphenate, but the site would probably look a lot less like a newspaper without justified text.
This is amazing! Like the newspapers in harry potter. You’ve closed the loop on automating a dynamic, crowdsourced, curated front page. The meta paper.
Now do hackers news. It’ll be like the WSJ, a nice counterpart to this, which is a little more like US Weekly.
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.
Comments (122) 57 threads
Earlier commentsAs one example, the front page of the Wall Street Journal in 1987 was predominantly text. [1]
[1]: https://wsjshop.com/products/framed-reprint-crash-of-1987-st... "Black Monday Crash of 1987"
Browsers don’t hyphenate, so avoid justified text on the web.
> Only supported on Android & Mac platforms (and only the "auto" value) for now.
Even where the property is supported, the supported language matrix [2] tells a depressing story.
[1] https://caniuse.com/#feat=css-hyphens
[2] https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens#Bro...
Probably because hyphenation is itself a rabbit-hole of complexity; some languages may require a complete dictionary to determine where words can be hyphenated, and sometimes it could depend on what style guide you follow, etc.
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, which is approximately 67ch.
(If you don't see hyphenation in Safari, that's because the developer didn't enable -webkit-hyphens. If you don't see hyphenation in Firefox, that's because the page's tag doesn't have a lang="en" attribute.)
I know real newspapers do hyphenate, but the site would probably look a lot less like a newspaper without justified text.
Now do hackers news. It’ll be like the WSJ, a nice counterpart to this, which is a little more like US Weekly.
https://unim.press/#hn
All comments shown.
Couldn't load more comments. Check your connection and try again.