club-1 / flarum-ext-french-typography
Enhanced typography for french writings, mainly around punctuation.
Fund package maintenance!
n-peugnet
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:flarum-extension
Requires
- flarum/core: ^1.2.0
README
A very simple Flarum extension. Enhanced typography for french writings, mainly around punctuation.
Features
- 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.
Installation
Install with composer:
composer require club-1/flarum-ext-french-typography
Recommendation
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.
Updating
composer update club-1/flarum-ext-french-typography php flarum cache:clear