scanner / typogrify

Automatically exported from code.google.com/p/typogrify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Small-caps/multiple capitals enhancement #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Typogrify is excellent, but perhaps the handling of multiple capitals could be 
even better.

As well as a rule for wrapping multiple adjacent capital letters in 
class="caps", how about 
another that only works on runs of four or more adjacent capitals, and then 
applies styling to 
leave the first letter at normal size, and reduce only the the others?

Something like:

<span class="caps fourpluscaps">SPECTRE</span>

.caps {font-size:.92em;}
.fourpluscaps:firstletter {font-size: 1em;}

This would make the output follow typographic conventions even more closely.

Original issue reported on code.google.com by dani...@vurt.org on 16 Jun 2009 at 11:20