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

首頁外掛目錄 › Consistency – Typography Corrector for Gutenberg
WordPress 外掛 Consistency – Typography Corrector for Gutenberg 的封面圖片
60+
安裝啟用
★★★★★
5/5 分(2 則評價)
83 天前
最後更新
問題解決
WordPress 6.1+ PHP 7.4+ v1.8.7 上架:2022-12-16

內容簡介

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

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

對於英語:

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

對於法語:

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

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

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

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.8.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Consistency – Typography Corrector for Gutenberg」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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).

延伸相關外掛

文章
Filter
Mastodon