typographic-guillemets

1.1.0 • Public • Published

typographic-guillemets Build Status Coverage Status

Micro module to fix a common typographic issue that is hard to fix with most keyboard layouts.

This is mainly meant for French typography, where respectively << and >> should be replaced by a left-pointing double angle quotation mark (en, en) and a right-pointing double angle quotation mark(en). The left-pointing mark should be followed by a narrow no-break space (en, fr) and the right-pointing mark should be preceded by a narrow no-break space.

Submit a PR to src/db.js to add support for your locale.

Install

npm:

npm install --save typographic-guillemets

Usage

var guillemets = require('typographic-guillemets')

guillemets(`<< here >>`, { locale: 'fr' })
// will be replaced by «NNBShereNNBS» where NNBS is a narrow no-break space.

This module can also be used through textr.

License

MIT © Zeste de Savoir

Readme

Keywords

Package Sidebar

Install

npm i typographic-guillemets

Weekly Downloads

29

Version

1.1.0

License

MIT

Unpacked Size

5.69 kB

Total Files

7

Last publish

Collaborators

  • situphen
  • talone