Skip to content

Support for curly quotes, em/en dashes and ellipsis for the Quaint markup language.

Notifications You must be signed in to change notification settings

breuleux/quaint-smartypants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quaint-smartypants

Quotes, em/en dashes and ellipsis.

Install

In your Quaint project directory, run the command:

quaint --setup smartypants

Sample configuration

"smartypants": {
  "locale": "en"
}

Features

Replace certain characters and sequences of characters by tidier equivalents:

  • -- becomes the en dash character: –
  • --- becomes the em dash character: —
  • ... becomes the ellipsis character: …
  • *** becomes the asterism character: ⁂
  • Single quotes '' become curly quotes: ‘’
  • Specific to en locale:
    • "..." or <<...>> becomes curly quotes: “...”
  • Specific to fr locale:
    • "..." or <<...>> becomes guillemets: « ... »
    • Insert non-breaking space before !, ? and :.
    • oe -> œ and Oe -> Œ

In order to determine whether a quote is opening or closing, quaint-smartypants checks whether it has a space before (in which case it is an opening quote), or a space or punctuation after (in which case it is a closing quote). Alternatively, can quote with angle brackets like this: <<...>>, which will cause no ambiguities.

Options

locale: either en (english, default) or fr (french), at least for the moment. Locale changes quotation mark type and adds a few language-specific rules. See the features section above.

About

Support for curly quotes, em/en dashes and ellipsis for the Quaint markup language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published