Lurker News

Comments (122) 57 threads

Earlier comments
excalibur2 replies#
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.
thesephist1 reply#
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.
thesephist#
Ah yes, now we come full circle.
andrei_says_4 replies#
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.

rcar10461 reply#
CSS word wrap
steve_adams_86#
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.
steve_adams_862 replies#
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.
steve_adams_86#
Wow, I should know better. That’s pretty awful support.
userbinator#
but it only supports certain languages

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.

dfabulich2 replies#
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, 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.)

sergeykish#
And if you don't see hyphenation in Chrome, probably you use Linux (or another unsupported platform). To feel how it should insert ­

    var Hyphenopoly = {
      require: {
        "en-us": "Supercalifragilisticexpialidocious"
      },
      setup: {
        selectors: {
            ".story": {}
        },
        CORScredentials: "omit"
      }
    }
    script = document.createElement('script')
    script.src = 'https://unpkg.com/hyphenopoly@4.5.0/min/Hyphenopoly_Loader.js'
    document.body.append(script)
dheera#
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.

sixstringtheory1 reply#
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.

zxter#
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.

Load more comments