Is small cap conversion done for every word that's written in all capitals? The convention that I'm familiar with (I think from The Elements of Typographical Style) is to only set acronyms - that is, pronounceable initialisms like "NASA" or "PETA" - in small caps. All other initialisms like FBI or USA are set as normal-sized caps. I think the reasoning is that small caps are there to preserve the capitals but not disturb the flow of the text, since it's read as a word just like the words around it. Full caps do disturb the flow of the text because they are not words and not pronounced as words either.
I have used a similar tool [1] some time ago in PHP. The project hasn't been kept updated, but the idea of processing text/HTML and converting the right entities is pretty neat. At least the readability improves massively.<p>This project Typeset.js is slightly different as it adds additional markup and styles. For me, converting here's to here’s was enough for me back then.<p>[1]: <a href="https://github.com/scoates/lexentity" rel="nofollow">https://github.com/scoates/lexentity</a>
Sweet. I've been doing this in Rails helpers, and it's a pain.<p>Now, how would I add this to my Rails asset pipeline? I'm thinking either:<p>* Port to Ruby, or<p>* Use this as a microservice.<p>??