mintchaos / typogrify

A set of Django template filters to make caring about typography on the web a bit easier.
http://static.mintchaos.com/projects/typogrify/
Other
168 stars 29 forks source link

Replace spaces after short first words with  . #25

Closed svenkreiss closed 10 years ago

svenkreiss commented 10 years ago

This is helpful when you have a floating image next to some text that starts with 'We are'. For some browser window sizes, 'We' will appear by itself next to the image and the rest of the text will continue under the image. This replaces 'We are' with 'We are'.

chrisdrackett commented 10 years ago

I've never heard of this being a problem, can you point us to a test page so we can understand?

svenkreiss commented 10 years ago

Sure, here is a demo page: http://www.svenkreiss.com/typogrify/ Resize the browser window and see how the text floats. Reduce the window size such that only 'We' or 'We are' is on the first line.

It came up when I tested my website in a mobile browser and it only showed "I" on the first line and then floated all the rest of the text under the photo.

chrisdrackett commented 10 years ago

Thanks for the demo. I'm not sure if I'm convinced this is a problem worth solving. The difference between we and we are in a super narrow column is pretty negligible IMO. I would think this problem is better solved by providing minimum widths for your body text so this case wouldn't even come up.