https://github.com/chambln/curly-quotes
Converts 'straight' "quotes" to ‘curly’ “quotes”
https://github.com/chambln/curly-quotes
curly-quotes
Last synced: about 1 year ago
JSON representation
Converts 'straight' "quotes" to ‘curly’ “quotes”
- Host: GitHub
- URL: https://github.com/chambln/curly-quotes
- Owner: chambln
- License: mit
- Created: 2020-01-18T20:01:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T16:49:11.000Z (about 6 years ago)
- Last Synced: 2025-02-14T11:26:51.088Z (over 1 year ago)
- Topics: curly-quotes
- Language: Haskell
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* 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.
#+BEGIN_SRC sh
make
sudo make install
#+END_SRC
** Usage
Text is read from standard input, and the same text is written to
standard output, but with straight quotes converted to curly quotes.
#+BEGIN_SRC
$ cat example
"It'll never work," she said.
What's this 'emergency balloon' for?
#+END_SRC
#+BEGIN_SRC
$ curly-quotes < example
“It’ll never work,” she said.
What’s this ‘emergency balloon’ for?
#+END_SRC
** 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).