All products

Fix French text spacing with AI

Check French punctuation, non-breaking spaces and apostrophes against project rules, using a local file helper or a separately chosen optional MCP connection.

Fix French text spacing with AI before punctuation or part of a price lands on the wrong line. The french-typography skill explains spacing conventions and supplies a local checker and fixer for French copy. It covers typography rather than translation or comprehensive language editing.

Its house default uses a full non-breaking space before several punctuation marks. That is a project choice, not a universal standard. Agree the intended convention first and adapt the rule and helper together if needed. Automatic fixes normalise existing spaces; they do not insert every missing space or create absent digit grouping.

What it does

  • Standardise existing non-breaking spaces in French copy
  • Review spacing inside French quotation marks
  • Replace eligible straight apostrophes with curly ones
  • Check JSON message values without rewriting keys
  • Inspect existing spacing around prices and percentages
  • Keep a repeatable report for selected translation files

Install and use

  1. Give the complete folder and authorised French files to a file-capable agent. The local helper requires Node20 or later, but no new account, key or MCP connection. Keep a recoverable copy before allowing writes.
  2. Specify the house convention and scope. For example: “Check this shop’s French JSON messages and Markdown guide against our agreed spacing rules. Preserve code, keys and placeholders.” Request findings before fixes.
  3. Review and authorise changes only in the selected files. The helper skips Markdown code sections, certain build folders and files over2MB; those exclusions do not constitute successful checks.
  4. Compare the diff and fresh report, then read the rendered copy. Manually resolve missing spaces, remaining dash edits and layout problems rather than treating an empty report as complete editorial approval.

FAQ

Source

Made by Stanislas Molveau. Original skill: french-typography, published on GitHub under the MIT licence.

View on GitHub