github.com/pnevyk/tipograph

A little javascript library and command line tool that makes your written content more typographically correct.

Open this visualization on its own page →

Contributors

4

Lines of Code

344

From

2014-03-08

To

2020-09-05

About pnevyk/tipograph

Tipograph is a JavaScript library and command-line tool that automatically improves the typographic correctness of written content. It applies a comprehensive set of transformation rules to replace keyboard-friendly characters with their proper typographic equivalents, such as converting straight quotes to curly quotes, hyphens to en dashes and em dashes, and simple characters to proper mathematical and special symbols.

The tool operates through a modular preset system covering hyphens, quotes, mathematical symbols, spaces, and special characters, with support for over a dozen languages that include language-specific typography rules and quote conventions. Users can customize which presets to apply, define their own rules, and choose from format preprocessors that preserve the structure of HTML, LaTeX, or plain text documents while applying typography transformations only to the relevant content.

While the library is in passive maintenance, it provides useful features for writers and content creators who want to improve readability and visual presentation without requiring manual knowledge of special character codes. The tool includes a browser demo, npm installation for Node.js environments, and a CLI interface for batch processing files, along with the ability to track what changes were made to text during transformation.

Share this video