Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thjbdvlt/pandoc-french-typography

pandoc lua filter for french typography
https://github.com/thjbdvlt/pandoc-french-typography

french markdown pandoc pandoc-filter

Last synced: 14 days ago
JSON representation

pandoc lua filter for french typography

Awesome Lists containing this project

README

        

a mini [pandoc](https://pandoc.org/index.html) [lua filter](https://pandoc.org/lua-filters.html) that add [thin space](https://en.wikipedia.org/wiki/Thin_space) (narrow non-breaking space) after some punctuations (`?!:;`) according to french typographic rules, replace `"` quotes by french quotes (`«`, `»` with non-breaking space) and add `œ` ligatures (in some words).

- there is no __magic__ at all. it only add thin spaces in `Inline` elements. if there is already a space, it add a thin space anyway.
- yet only tested for PDF produced with typst

usage
=====

```bash
pandoc input-files.md -o out.pdf \
--lua-filter pandoc-french-typography.lua
```