smartypants
A Dart package that implements SmartyPants text formatting. This package helps convert plain text into a more typographically correct format by replacing certain characters and symbols with their "smart" counterparts.
Features
- Replaces straight quotes with smart quotes.
- Converts double and triple hyphens into en dash and em dash, respectively.
- Replaces straight apostrophes with smart apostrophes.
- Collapses multiple spaces into a single space.
- Converts ellipses into a single ellipsis character.
- Replaces mathematical symbols with their typographically correct versions.
- Converts arrows into their respective symbols.
- Supports CJK typography: normalizes CJK ellipsis (。。。 → …) and converts angle bracket citations (<
Libraries
- smartypants
- The smartypants library.