FIMFiction - Unify Typography Style

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

Autor
Selbi
Instalaciones diarias
0
Instalaciones totales
16
Calificaciones
0 0 0
Versión
1.4
Creado
21/09/2020
Actualizado
22/10/2020
Licencia
Desconocida
Funciona en

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: