FIMFiction - Unify Typography Style

Replaces all standard quotation marks, apostrophes, ellipsis, and line breaks with typographically “proper” variations

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Selbi
日安装量
0
总安装量
16
评分
0 0 0
版本
1.4
创建于
2020-09-21
更新于
2020-10-22
大小
2.6 KB
许可证
暂无
适用于

This one goes out to all the OCD heads.

Many writers have their own writing style, which is good in itself. However, I personally draw the line at typography, because those are clearly defined rules and once you've learned about curly brackets, any " just looks out of place and can't be unseen.

This script tries as best as possible to unify the typography of all stories and also fix some typos:

  • Curly quotation marks, single and double ("Hello!" -> “Hello!”)
  • Curly single quotation marks on cut-off words (lookin' good -> lookin’ good)
  • Curly apostrophes (it's -> it’s)
  • Unicode ellipsis for regular ellipsis and spaced ellipsis (. . . -> …)
  • Missing spaces after punctuation ("he said.Then" -> "he said. Then")
  • Remove excess spacing and line breaks ( ____ -> _ )

And lastly, unify all hand-written page breaks (*****, -----, =====) with the proper CSS page breaker:

This thing is essentially just one ugly chain of RegEx replacements, so I hope it doesn't have too much of a performance impact.

Note: I've realized that curly quotation marks are nearly invisible in sans-serif fonts. Since I assume most people read with serifs anyway, rest assured they are absolutely noticeable: