A very simple Flarum extension. Enhanced typography for french writings, mainly around punctuation.
- Convert spaces before a double punctuation mark (
?
,!
,:
,;
) to a non-breaking space (
). - Enable a custom version of TextFormatter's FancyPants plugin with the following differences:
- Double quotes are replaced with « guillemets », separated from the text by non-breaking spaces.
- Disable
Guillemets
from upstream passes.
Install with composer:
composer require club-1/flarum-ext-french-typography
This extension alone does not apply the formatting changes to previously posted comments. I you want to reparse all the comments posts of the database it is recommended to install and enable the club-1/flarum-ext-chore-commands
extension and use its chore:reparse
command.
composer update club-1/flarum-ext-french-typography
php flarum cache:clear