Conversation
- Ajout de juliobox à la liste des contributeurs dans readme.txt - Julio Potier est un développeur WordPress reconnu et créateur de SecuPress
- README.md : simplification et condensation du contenu (241→96 lignes) * Focus sur l'essentiel et suppression des redondances * Amélioration de l'accessibilité de la documentation * Sections française et anglaise plus concises - TODO.md : refactoring complet vers un format français pratique * Passage d'un format technique verbeux à des idées concises * Organisation claire des fonctionnalités futures par priorité * Format plus cohérent avec l'esprit du projet - docs/test-post-content.md : nouveau fichier de test structuré * Cas de test prêts à copier-coller dans WordPress * Couverture des différents blocs Gutenberg * Outil précieux pour valider le comportement du plugin
Track `<style>` and `<script>` spans in the `wp_html_split` loop so narrow non-breaking spaces are not injected into embedded CSS/JSON/JS (fixes Elementor inline SVG icons). Remove obsolete TODO.md, document changes in CHANGELOG and readme, bump stable tag and constant, and ignore local `_local/` / `_todo/`.
Align consecutive assignments in narrow_space / wp_html_split block per WordPress.Arrays.MultipleStatementAlignment for CI.
- Add stack helpers for script/style/pre/code (Verse vs Code class) - Skip NBSP and (c)/(r) inside raw regions; fix static cache key - CI: ignore tests/ for PHPCS; update changelog and FAQ
# Conflicts: # TODO.md
- Note README + test-post-content manual QA; credit Julio Potier - Fix French FAQ typo in README (modifie-t-elle)
- Extend raw boundaries to textarea; docblocks and readme/changelog - Add (tm)/(TM) → ™ with special-characters option; refresh french-typo.pot - Add tests/ with WP stubs and french_typo_replace() scenarios (SVG style, pre/code, Verse, textarea) - CI: run replace tests; i18n job verifies POT matches source
- README (FR/EN): optional NBSP until settings saved; Yoast/Rank Math/SEOPress - Architecture, configuration, API, installation, FAQ, dev index tweaks
- Drop static cache and stray sanitized key from french_typo_options_validate() - Posts and pages section; help for raw markup, NBSP until save, RSS/REST toggles - Update configuration, FAQ, architecture, readme.txt, root README, CHANGELOG - Add languages/french-typo-fr_FR.po and refresh french-typo.pot - Document language build in docs/development.md
Add GitHub, Support, Ko-fi, documentation, and 5-star review links to the plugin list row via plugin_row_meta. Regenerate POT, update fr_FR translations, and document WP-CLI i18n commands in development.md. Changelog and readme.txt aligned with 1.2.0.
…URI) Regenerated french-typo.pot with wp i18n make-pot and updated french-typo-fr_FR.po with wp i18n update-po so CI i18n-pot matches.
…ts, i18n - Add french_typo_apply_ordinal_abbreviations() and ordinal_abbreviations option (default on when unsaved; cache key + early return with narrow/special off) - Settings section, POT/fr_FR, docs, readme credits (beryldlg) - Tests: ordinal off/only + extended replace tests; CI runs all three scripts - Closes #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release 1.2.0 hardens French typography so narrow spaces, special-character replacements, and optional ordinal abbreviations never run inside raw/non-prose HTML, while Gutenberg Verse still gets typography (unless Code shares the same
<pre>). Addstextareato the raw stack,(tm)/(TM)→ ™,french_typo_apply_ordinal_abbreviations()(issue #3), a correct static cache key (narrow space + special chars + ordinal toggle), cleaner options validation, automated replace tests (including ordinal on/off/only), POT / i18n CI, French (fr_FR) strings, plugin row meta links on the Plugins screen, and documentation aligned with settings and SEO plugin behavior.Closes #3.
Ordinal abbreviations (#3)
wp_html_split+ empty raw stack as NBSP /(c)); shortcodes skipped.1ère→1re(case variants);Nème→Nefor N ≥ 2 (1–3 digits);n-ième/x-ième(hyphen / NB hyphen / en dash) →nième/xième.ordinal_abbreviations: default on when missing from saved options; documented in settings.1st/2ndand non-standard1èmeleft unchanged.Typographie & HTML
wp_html_split()segments:script,style,pre,code,textarea(nested, strict LIFO closes).<pre class="… wp-block-verse …">stays typographic unlesswp-block-codeis also on the same<pre>.(c)/(r)/(tm)/(TM), and no ordinal rules inside those raw regions (covers inline SVG<style>, Elementor-style assets, code blocks, etc.).(tm)/(TM)→ ™ (same Replace special characters option as © / ®).Admin & settings
plugin_row_meta): GitHub, WordPress.org Support, Ko-fi, documentation (docs/on GitHub), 5-star review link with Dashicons.french_typo_options_validate()no longer persists a straysanitizedkey or short-circuits via a static cache.Tests & CI
tests/: bootstrap + WordPresswp_html_splitstub;french_typo_replace()scenarios (SVG+<style>,<pre><code>, Verse,textarea, ordinals, HTML/code).php -l+php tests/french-typo-replace-test.php+ ordinal off/only scripts; i18n job ensureslanguages/french-typo.potmatcheswp i18n make-pot(timestamps normalized in diff).i18n & locales
french-typo.pot;french-typo-fr_FR.pofor admin, meta links, ordinal settings.docs/development.md:wp i18n make-pot/update-po(and localmake-mo).Documentation & packaging
CHANGELOG.md,readme.txt: 1.2.0 entries; contributors include beryldlg; Tested up to WordPress 7.0.docs/: configuration (ordinal subsection), architecture, FAQ as applicable; root README.md where updated.Housekeeping
TODO.md; local_local//_todo/gitignored.Merge / ship checklist
<style>; Verse block; Ordinal abbreviations toggle; settings savev1.2.0/ WordPress.org release when ready