TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Typeset.js – A ty­po­graphic pre-proces­sor for HTML

143 pointsby dmerfieldalmost 10 years ago

4 comments

doomroboalmost 10 years ago
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.
评论 #10076847 未加载
juriansluimanalmost 10 years ago
I have used a similar tool [1] some time ago in PHP. The project hasn&#x27;t been kept updated, but the idea of processing text&#x2F;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&#x27;s to here’s was enough for me back then.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;scoates&#x2F;lexentity" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;scoates&#x2F;lexentity</a>
评论 #10080906 未加载
chrisfosterellialmost 10 years ago
This is great! I wish there was an easy way to incorporate this into Jekyll blogs.
评论 #10077652 未加载
snurkalmost 10 years ago
Sweet. I&#x27;ve been doing this in Rails helpers, and it&#x27;s a pain.<p>Now, how would I add this to my Rails asset pipeline? I&#x27;m thinking either:<p>* Port to Ruby, or<p>* Use this as a microservice.<p>??
评论 #10076795 未加载
评论 #10076749 未加载
评论 #10076848 未加载