[WordPress] 外掛分享: UNFC Nörmalize

首頁外掛目錄 › UNFC Nörmalize
WordPress 外掛 UNFC Nörmalize 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(2 則評價)
3370 天前
最後更新
問題解決
WordPress 3.9.13+ v1.0.6 上架:2016-08-01

內容簡介

這是一個強化版的 Normalizer 插件,由 Torsten Landsiedel 所開發。

它添加了 WP 的過濾器,將進入系統的 UTF-8 數據規範化為事實上的 Web 標準規範化形式C。有關詳細的 Unicode 協會報告,請參閱 Unicode 正規化形式

回填

為達到最佳性能,如果有可能,請安裝 PHP 國際化擴展(如果可能),它包括 PHP 類 Normalizer。

不過,即使未安裝 PHP Intl擴展,該插件也能正常運行,因為它使用的是(修改過的版本)Symfony Normalizer 回填。

同樣,大多數輸入的文本會立即使用 JavaScript normalize() 方法 正規化。對於不支援正規化的瀏覽器,使用 unorm 回填。

背景

欲了解更多信息,請參閱 WP Trac 的票 #30130 Normalize characters with combining marks to precomposed characters,以及此 Make WP Core 評論。

該插件還解決了 WP Trac 的票 #22363 Accents in attachment filenames should be sanitized 提到的 Safari 特定問題。

掃描器

對於現有的數據,該插件包含一個管理工具,可進行掃描和規範化數據庫。重要提示:在使用此工具進行規範化之前,請 備份您的數據庫。如果您的數據庫包含非正規化序列化數據,這尤為重要,因為該插件使用與 interconnect/it 的 Database Search and Replace Script in PHP 相同的 suck-and-see 技術處理序列化數據且不是萬無一失的。

還有

提供了一個簡易的 google-cheating 學生法語翻譯。

該插件應可在 PHP 5.2.17 到 7.1,以及 WP 3.9.13 到 4.7.1 上運行。

項目在 Github 上。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「UNFC Nörmalize」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This is a souped-up version of the Normalizer plugin by Torsten Landsiedel.
It adds WP filters to normalize UTF-8 data coming into the system to the de facto web standard Normalization Form C. The Unicode Consortium report is at Unicode Normalization Forms.
Polyfills
For best performance install (if possible) the PHP Internationalization extension Intl, which includes the PHP class Normalizer.
However the plugin works without the PHP Intl extension being installed, as it uses (a modified version of) the Symfony Normalizer polyfill.
Also text pasted into (most) inputs is normalized immediately using the JavaScript normalize() method. For browsers without normalization support, the unorm polyfill is used.
Background
For further info, see the WP Trac ticket #30130 Normalize characters with combining marks to precomposed characters and this Make WP Core comment.
The plugin also works around the Safari-specific issues raised by the WP Trac ticket #22363 Accents in attachment filenames should be sanitized.
Scanner
For existing data, the plugin includes an administration tool to scan and normalize the database. Important: before using this tool to normalize, please backup your database. This is especially important if your database contains non-normalized serialized data, as this plugin uses the same suck-and-see technique as interconnect/it’s Database Search and Replace Script in PHP to deal with serialized data, and is fallible.
And
A google-cheating schoolboy French translation is supplied.
The plugin should run on PHP 5.2.17 to 7.1, and on WP 3.9.13 to 4.7.1.
The project is on github.

延伸相關外掛

文章
Filter
Mastodon