TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

143 点作者 dmerfield将近 10 年前

4 条评论

doomrobo将近 10 年前
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 未加载
juriansluiman将近 10 年前
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 未加载
chrisfosterelli将近 10 年前
This is great! I wish there was an easy way to incorporate this into Jekyll blogs.
评论 #10077652 未加载
snurk将近 10 年前
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 未加载