Acest modul nu a fost testat cu ultimele 3 versiuni importante ale WordPress. S-ar putea să nu mai fie întreținut sau susținut și ar putea avea probleme de compatibilitate când este folosit cu versiuni recente ale WordPress.

Consistency – corector tipografic pentru Gutenberg

Descriere

Scopul acestui modul este de a oferi un instrument care să permită administratorilor să definească reguli tipografice pentru a menține consistența tipografică în conținutul text introdus în editor.
Corecțiile sunt automate și se fac în timpul introducerii, precum și la copiere și plasare.
Corectarea automată poate fi activată/dezactivată de către orice utilizator.
Corectarea automată este disponibilă în pagini, articole și tipuri personalizate de articole (dacă permit în configurarea lor utilizarea REST API).

Currently, the AutoCorrects offered are as follows:

For the English language

  • „Straight quote”: Replaces straight quotes with curved quotes
  • „Ellipsis”: Replaces 3 dots with ellipsis
  • „Two hyphens”: Replaces 2 hyphens with em dash
  • „Ordinal number suffix”: Add HTML tag sup to ordinal number suffix
  • „Regular quotes to curly”: Replaces regular quotes with curly quotes
  • „No breaking space after”: Adds a breaking space after a character from this list (, … ) ]) when followed with another character
  • „Space before”: Remove any space preceding a character from this list (? ! : ; %)
  • „First sentence letter not capitalized”: Capitalize the first letter of a sentence

For the French language

  • „Straight quote”: Replaces straight quotes with curved quotes
  • „Ellipsis”: Replaces 3 dots with ellipsis
  • „Two hyphens”: Replaces 2 hyphens with em dash
  • „Ordinal number suffix”: Add HTML tag sup to ordinal number suffix
  • „Regular quotes to French”: Replaces regular quotes with French quotes
  • „Breaking space”: Replaces a breaking space followed by a character from this list (? ! : ; » € $ £ ¥ ₽ 元 %) with a non-breaking space
  • „No space before”: Adds a non-breaking space before a character from this list (? ! : ; » € $ £ ¥ ₽ 元 %) having no space before
  • „No breaking space after”: Adds a breaking space after a character from this list (, … ) ]) when followed with another character
  • „No non-breaking space after”: Adds a non-breaking space after open french quote having no space after
  • „First sentence letter not capitalized”: Capitalize the first letter of a sentence

Ctrl+Z or Cmd+Z right after a correction disables the correction for the next keystroke

Din punct de vedere tehnic, regulile sunt salvate în tabelul wp_options, în timp ce stările active/inactive sunt salvate ca metadate ale utilizatorului.
Aceste date sunt șterse atunci când modulul este dezinstalat.

Setările sunt într-o bară laterală a modulului în editorul de blocuri: fără căutări ale unei pagină de opțiuni – întotdeauna disponibilă și discretă.

Capturi ecran

  • Rules specific to the English language and correction of a copy-pasted text.
  • Rules specific to the French language and correction on the fly.

Instalare

  1. Instalează modulul și activează-l.
  2. Configurează regulile din editor.

Recenzii

16 februarie 2024
This extension is a must-have if you're concerned about the consistency of your typography. In French, having non-breaking spaces automatically before characters that require them is a real time-saver! No more exclamation marks ending a line below the title
2 aprilie 2023 1 răspuns
Excellent ! As useful in english than in FrenchEt en plus si vous vous retrouvez dans une situation qui le nécessite, la modification est débrayable. Depuis le temps que je me prenais la tête avec les insécables et les guillemets ouverts et fermés.Petit reproche sur les ordinaux, seul le premier caractère passe en sup. (ou je m' 'y prend comme un manche ce qui est loin d'être impossible)Exemple : 1+e = 1e, mais 1+e+r = 1er Excellent quoiqu'il en soitUn grand merci Monsieur Antignac !
Citește toate cele 2 recenzii

Contributori și dezvoltatori

„Consistency – corector tipografic pentru Gutenberg” este un software open-source. La acest modul au contribuit următoarele persoane.

Contributori

„Consistency – corector tipografic pentru Gutenberg” a fost tradus în 2 locale. Mulțumim traducătorilor pentru contribuția lor.

Tradu „Consistency – corector tipografic pentru Gutenberg” în limba ta.

Te interesează dezvoltarea?

Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.

Istoric modificări

1.4.5

  • Fix a regex parsing bug on link insertion because the fetched content had changed and contained the HTML tags
  • Fix the processing of capital letters at the beginning of a sentence which did not take into account question marks, exclamation marks and ellipsis
  • Removes CODE, PRE, KBD tags and their content from scanned content

1.4.4

  • Fix composer package check

1.4.3

  • Fix version number

1.4.2

  • Plugin requires PHP: 7.4 or higher

1.4.1

  • Plugin stops supporting an End of life version of PHP: Requires PHP: 8.0 or higher

1.4.0

  • Code goes to OOP

1.3.1

  • Spelling corrections

1.3.0

  • New correction added: „First sentence letter not capitalized”
  • Cancellation management: Ctrl+Z or Cmd+Z right after a correction disables the correction for the next keystroke
  • Code improvements

1.2.2

  • Replace multiple components with one

1.2.1

  • Fix: remove concat from getAllInnersFromParents

1.2.0

  • New corrections added: „Two hyphens”, „Ordinal number suffix”, „No breaking space after”, „No non-breaking space after”, „No breaking space after”
  • Autocorrect is now also done on innerBlocks like list items, on the fly as well as copy-paste

1.1.1

  • Remove special characters from readme since they are transformed on wp org

1.1.0

  • Locales management: English and French for now. Rules are automatically selected but can be modified by an admin
  • Replacement of notices with self-hiding snackbars
  • Code improvements
  • Replacement of screenshots with animated gifs to show the process even if it is discreet.

1.0.4

  • Finally fixed the translation bug: it was an extra slash to plugin_dir_path

1.0.3

  • Next try to fix translations by adding wp_set_script_translations

1.0.2

  • Fixed translation problem and replace get_locale with current active locale

1.0.1

  • Implementarea pregătirii pentru administrarea diferitelor locale
  • A adăugat mai multe monede la regex
  • A modificat cerințele minime PHP la PHP 7.3 sau o versiune ulterioară și a deschis în mod implicit ambele panouri cu setări
  • Texte îmbunătățite cu ajutorul lui Vlad Timotei @vlad-timotei – Baby Yoda
  • A îmbunătățit bannerul și a corectat mesajul de ajutor greșit pentru controlul comutatorului spațiilor cu/fără întrerupere

1.0.0

  • Comitul inițial al modulului. Voi scrie =^.^=