Socket
Book a DemoInstallSign in
Socket

@paroicms/formatting-plugin

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paroicms/formatting-plugin

French text formatting plugin for ParoiCMS

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
2
Created
Source

@paroicms/formatting-plugin

Formatting plugin for ParoiCMS.

This package is part of ParoiCMS.

This plugin automatically applies French typographical rules to text content when rendering pages in French language context.

License

Released under the MIT license.

French Formatting

The following rules are automatically applied to string-based fields when the content language is French (fr):

  • Quote formatting: Converts English quotes ("text") to French guillemets («\u202Ftext\u202F»)
  • Punctuation spacing: Adds non-breaking thin spaces (\u202F) before !, ?, ;, and :
  • Number formatting: Proper spacing for numbers with units (°, €, %, h, etc.)
  • Name formatting: Correct spacing for initials and titles (M., Mme., J.-P.)
  • Abbreviation formatting: Proper spacing for abbreviations and "etc."

Based on: https://www.lalanguefrancaise.com/articles/espace-insecable

Quote Formatting

  • "Hello"«\u202FHello\u202F»

Punctuation Spacing

  • Hello!Hello\u202F!
  • Comment?Comment\u202F?
  • Oui; nonOui\u202F; non
  • Note: importantNote\u202F: important

Number Formatting

  • 25 °C25\u202F°C
  • 5,5 %5,5\u202F%
  • 12 34512\u202F345 (thousands separator)

Name and Title Formatting

  • M. DupontM.\u202FDupont
  • J. P. MartinJ.\u202FP.\u202FMartin

Abbreviation Formatting

  • etc. etetc.\u202Fet
  • , etc.,\u202Fetc.

Keywords

paroicms

FAQs

Package last updated on 15 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts