show & tell - the mighty hyphen

16

Upload: dan-dineen

Post on 22-Jan-2018

213 views

Category:

Design


0 download

TRANSCRIPT

Page 1: Show & tell - The mighty hyphen
Page 2: Show & tell - The mighty hyphen

Hyphen

Page 3: Show & tell - The mighty hyphen

Hyphen

Minus

n dash

m dash

Page 4: Show & tell - The mighty hyphen

Hyphen

‑

Used to join words to indicate they have a combined meaning, to indicate the division of a word at the end of a line or to indicate a missing element.

Comes in two ‘flavours’ - Breaking and non-breaking

Hyphen-minus

-

Minus

− or −

Usually longer than a hyphen but shorter than an m dash.

A mathematical operator used to represent the notion of negative and subtraction.

Page 5: Show & tell - The mighty hyphen

mnn dash

– or –

Traditionally derived from the width of a lower-case n.

Indicates a closed range of values. Can also be used to contrast two values or illustrate a relationship between two things.

m dash

— or —

Traditionally derived from the height of a lower-case m. 1em wide, a length that varies with the size of the font.

Can be used in place of parentheses or a colon.

Usually shows an abrupt change in thought where a full stop is too strong and a comma to weak.

Page 6: Show & tell - The mighty hyphen

So — your point is?

Page 7: Show & tell - The mighty hyphen

Long titles + small screens. We’ve got a bit of a problem.

Page 8: Show & tell - The mighty hyphen

UnbreakableDefault — Do nothing at all. The word is larger than its containing area. The container is extended so the word can remain unbroken on a single line.

Page 9: Show & tell - The mighty hyphen

Unbreaka bleWord wrap — The ‘invisible’ hyphen.Word wrap breaks a word at the last character before the limit of its constraining area.

Page 10: Show & tell - The mighty hyphen

Unbreak- ableHard hyphens — An automatic line break after a hyphen Hyphenates the word after the last character before the limit of the constraining area.

Page 11: Show & tell - The mighty hyphen

Unbreakable

Font size change — Reduce the size of the font at smaller screen sizes This is useful but not as flexible as it could be. There is almost always a longer word out there. How small are you willing to go?

Nano-technology

Page 12: Show & tell - The mighty hyphen

That’s that sorted then. Of course not…

Page 13: Show & tell - The mighty hyphen

I’ll hyphenate anything including already hyphenated words like ‘nano-technology’

nano-tec- hnology

architec- ture

I don’t auto-hyphenate anything as I prefer to word break instead. I will word break on a soft-hyphen if one is present.

nano- technology

architec ture

I’ll hyphenate anything including already hyphenated words like ‘nano-technology’.

nano-tec- hnology

architec- ture

I’ll hyphenate anything but err towards breaking on soft hyphens if one is present.

nano-technology

architec- ture

Page 14: Show & tell - The mighty hyphen

// Type hyphenation @mixin type-hyphenation { overflow-wrap: break-word; word-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }

Page 15: Show & tell - The mighty hyphen

We add this only for smaller device sizes. Otherwise things can go a bit nuts.

Page 16: Show & tell - The mighty hyphen