typographic-question-mark
v1.0.17
Published
Micro module to fix a common typographic issue that is hard to fix with most keyboard layouts.
Downloads
77
Readme
typographic-question-mark
Micro module to fix a common typographic issue that is hard to fix with most keyboard layouts.
This is mainly meant for French typography, it replaces the space preceding an interrogation point by a narrow no-break space (en, fr).
Submit a PR to src/db.js
to add support for your locale.
Install
npm:
npm install --save typographic-question-mark
Usage
var interrogation = require('typographic-question-mark')
interrogation(`Exemple ? voici.`, { locale: 'fr' })
// this char ^ will be replaced by a narrow no-break space
This module can also be used through textr.