前言介紹
- 這款 WordPress 外掛「UNFC Nörmalize」是 2016-08-01 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2017-01-19,距離現在已有 3027 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.9.13 以上版本才可以安裝。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
gitlost | zodiac1978 |
外掛標籤
Form C | unicode | normalize | Normalization | Unicode Normalization Form C |
內容簡介
這是一個強化版的 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 上。
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「UNFC Nörmalize」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | trunk |
延伸相關外掛(你可能也想知道)
Normalizer 》對於每個從W3C驗證器收到此警告的人:「文字未處於Unicode規範C的正規化形式中。」, 參見:http://www.w3.org/International/docs/charmod-norm/#choice-of-n...。