Minoru / blog.tty8.org

Source code for my blog
https://blog.tty8.org
9 stars 1 forks source link

Add hyphenation #1

Open Minoru opened 9 years ago

Minoru commented 9 years ago
Minoru commented 9 years ago

Someone went ahead and created a library for Hakyll that does just what I need: https://hackage.haskell.org/package/hakyll-contrib-hyphenation

Minoru commented 8 years ago

hakyll-contrib-hyphenation requires hyphenation 0.4.*, but builds just fine with 0.6.

Browsers aren't yet up to my standards on hyphenation; the text looks ugly and stretched.

Let's wait for another year or so.

Minoru commented 8 years ago

Hyphenation might still help on smaller screens even if text-align is set to left.

Minoru commented 1 year ago

Hyphenation is currently supported by all browsers (except IE 11), but:

ForNeVeR commented 1 year ago

Firefox uses en_US dictionary for English, which is meh because I write in British English

Could you please elaborate? It sounds fascinating. Are the hyphenation rules, of all things, notably different between en-us and en-gb?

Minoru commented 1 year ago

I haven't looked further into it, but the existence of that caniuse.com note implies there are separate en_US and en_GB dictionaries, which in turn implies there are differences in hyphenation between American and British English. I couldn't quickly think up of a word that would be hyphenated differently though.