[WordPress] 外掛分享: Consistency – Typography Corrector for Gutenberg

WordPress 外掛 Consistency – Typography Corrector for Gutenberg 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Consistency – Typography Corrector for Gutenberg」是 2022-12-16 上架。
  • 目前有 70 個安裝啟用數。
  • 上一次更新是 2025-04-19,距離現在已有 15 天。
  • 外掛最低要求 WordPress 6.1 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

webaxones |

外掛標籤

gutenberg | typography | punctuation | block-editor |

內容簡介

此外掛的目的是提供一個工具,讓管理員能夠定義排版規則,以保持編輯器中輸入的文字內容的排版一致性。
更正是自動完成的,並在輸入時以及複製貼上時進行。
任何使用者都可以啟用/停用自動更正規則。
自動更正功能適用於頁面、文章和自訂文章類型(如果它們的配置允許使用 Rest API)。

目前自動更正可提供以下功能:

對於英語:

“直引號”更正:將直引號替換為曲引號
“省略號”更正:將3個點替換為省略符號
“兩個破折號”更正:將2個破折號替換為em dash
“序數字尾碼”更正:給序數字尾碼添加HTML標籤上標
“常規引號替換為捲口引號”更正:將常規引號替換為捲曲引號
“之後沒有斷開空格”更正:在以下列表中的字符後面添加斷開空格(,...)] ),後面跟另一個字符
“之前沒有空格”更正:刪除以下列表中的字符之前的任何空格(?!:;%)
“第一個句子字母不大寫”更正:將句子的第一個字母大寫

對於法語:

“直引號”更正:將直引號替換為曲引號
“省略號”更正:將3個點替換為省略符號
“兩個破折號”更正:將2個破折號替換為em dash
“序數字尾碼”更正:給序數字尾碼添加HTML標籤上標
“常規引號替換為法語引號”更正:將常規引號替換為法語引號
“斷開空格”更正:將以?!:;»€$£¥₽元%結尾的斷開空格替換為不斷開空格
“之前沒有空格”更正:在不具有空格的以下列表中的字符之前添加不斷開空格(?!:;»€$£¥₽元%)
“之後沒有斷開空格”更正:在以下列表中的字符後面添加斷開空格(,...)] ),後面跟另一個字符
“之後沒有不斷開空格”更正:在沒有空格的開放法語引號後面添加不斷開空格
“第一個句子字母不大寫”更正:將句子的第一個字母大寫

在更正后按 Ctrl+Z 或 Cmd+Z 可以停用下一個按鍵的更正功能。

從技術上講,規則保存在 wp_options 表中,而啟用/停用狀態則保存為用戶元數據。
該數據在卸載插件時刪除。

設置直接在插件側邊欄下的區塊編輯器中:不再尋找選項頁,始終可用且低調。

原文外掛簡介

Have you seen the typographic corrector in your word processor that formats what you type in real time? Well, it’s the same idea but with Gutenberg.
This WordPress plugin ensures consistent typography and punctuation on your site.
Corrections are applied automatically both during text entry and when pasting text.
All users can choose to enable or disable corrections, but only administrators can configure the correction rules.
Autocorrect is available for pages, posts, and custom post types (if they are configured to use the Rest API).
The available automatic corrections are listed on the plugin repository on github and are categorized as follows: Apostrophes, Quotation Marks, Dashes, Suffixes, Spaces, Case, Ellipsis, Symbols.
Pressing Ctrl+Z or Cmd+Z immediately after a correction disables the correction for the next keystroke.
Technical Informations
Data Storage: Rules are saved in the wp_options table, while active/inactive states are saved as user meta data.
This data is deleted when the plugin is uninstalled.
Settings Location: Settings are directly in a plugin sidebar under the Block Editor: no more searching for an options page, always available and discreet.
Supported Locales: The locales supported by this plugin are:
fr_FR, fr_BE, en_US, en_AU, en_CA, en_NZ, en_ZA, en_GB, de_DE, de_AT, de_CH, ro_RO
If your locale is not supported by Consistency but you still want to access all available rules, you can disable the localization of rules via a filter. Add this to your theme’s functions.php file:
add_filter( 'Consistency\only_show_locale_correction_rules', '__return_false' );

All correction rules will then appear, with automatic management of rule incompatibilities (if rule A is enabled and it is incompatible with rule B, rule B will be grayed out).

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Consistency – Typography Corrector for Gutenberg」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.1.0 | 1.1.1 | 1.2.0 | 1.2.1 | 1.3.0 | 1.3.1 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | 1.5.0 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.5.6 | 1.5.7 | 1.5.8 | 1.5.9 | 1.6.1 | 1.6.2 | 1.6.3 | 1.6.4 | 1.6.5 | 1.7.0 | 1.7.1 | 1.8.0 | 1.8.1 | 1.8.2 | 1.8.3 | trunk |

延伸相關外掛(你可能也想知道)

  • JSM Non-Breaking Space (nbsp) for French Content 》此外掛將內容、摘要、評論、文字小工具和 WooCommerce 簡短描述中的空格轉換為 HTML 的不換行空格實體 (即  ),符合法語標點符號規則的要求。, 如果...。
  • Text Beautify 》此外掛可自動處理每篇文章和/或評論的內容,查找大小寫錯誤以及其他常見的語法/美感錯誤,例如粗糙的標點符號。它還會使博客文章標題全部大寫,除了某些特定...。
  • Hairspaces Around Dashes 》短橫線是常見的標點符號,其中長橫線 (—) 稱為 em dash,而短橫線 (–) 稱為 en dash。, 此外掛將環繞橫線的任何空格轉換為更小的 hairspaces,產生更優雅的排...。

文章
Filter
Apply Filters
Mastodon