richtypo-rules-fr
TypeScript icon, indicating that this package has built-in type declarations

5.1.3 • Public • Published

Richtypo French typography rules

The French typography rules for Richtypo.

Installation

npm install --save richtypo-rules-fr

The rules

The rules of this package include the spaces, abbr, emdash, amp, ellipsis rules that are directly imported from the richtypo-rules-common package.

_For better readability, the non-breaking space symbol   is replaced with two underscores __ and the narrow non-breaking space symbol   with a single underscore __

Rule Description Input Output
quotes transforms straight double quotes into double angle quotes texte entre "guillemets" texte entre «guillemets»
numberOrdinals put ordinals within <sup> tags 1er 2nd 3èmes <sup>er</sup> 2<sup>nd</sup> 3<sup>èmes
numberSeparators adds thousands separators to large numbers 10000,123 10__000,123
punctuationMarks adds narrow non-breaking space before or after punctuation as it is the rule in French typography Ceci ? est: un «texte» avec de la ponctuation! Ceci_? est_: un «_texte_» avec de la ponctuation_!
recommended runs all rules except numberOrdinals and numberSeparators

Readme

Keywords

none

Package Sidebar

Install

npm i richtypo-rules-fr

Weekly Downloads

15

Version

5.1.3

License

MIT

Unpacked Size

5.48 kB

Total Files

5

Last publish

Collaborators

  • sapegin