Skip to content

Converts 'straight' "quotes" to ‘curly’ “quotes”

License

Notifications You must be signed in to change notification settings

chambln/curly-quotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curly-quotes

Curly-quotes is a simple utility that converts 'straight' "quotes" to typographically pleasing ‘curly’ “quotes”.

Installation

You will need GHC to compile this.

make
sudo make install

Usage

Text is read from standard input, and the same text is written to standard output, but with straight quotes converted to curly quotes.

$ cat example
"It'll never work," she said.

What's this 'emergency balloon' for?
$ curly-quotes < example
“It’ll never work,” she said.

What’s this ‘emergency balloon’ for?

Bugs and notes

The program’s ability to infer the correct character is not perfect. In particular, an apostrophe at the start of a word contraction will be erroneously converted to an opening quote; for example fish 'n' chips becomes fish ‘n’ chips (incorrect) instead of fish ’n’ chips (correct).

About

Converts 'straight' "quotes" to ‘curly’ “quotes”

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published