[WordPress] 外掛分享: JS Ligature Replacement

首頁外掛目錄 › JS Ligature Replacement
10+
安裝啟用
尚無評分
4713 天前
最後更新
問題解決
WordPress 3.0+ v1.0.1 上架:2011-06-07

內容簡介

注意:此外掛已失去其實用性。如果您需要支援舊版瀏覽器,您可以使用此外掛;但現代網站應該在其 CSS 中使用 text-rendering: optimizeLegibility; 宣告,以鼓勵文本舒適敏捷地插入字距和連字。

Wyatt Allen 的 Ligature.js 庫是一個自動在合適位置插入連字的工具。連字是把兩個字母形態結合成一個字形形成的,原因有時是為了美觀或易讀。

預設情況下,此腳本取代那些常見的使用於 web 字型之中的字母組合:

ffl
ffi
fl
fi
ff
ij
IJ

「擴展」模式可以使用,其會取代以下其他的字母組合:

ae
AE
oe
OE
ue
st

配置屏幕允許您使用 CSS 選擇器選擇您網站上需要使用連字的文本,並且還有一個勾選框,以啟用「擴展」連字。使用此外掛可增強您網站上的標題和其它文本的易讀性。

外掛標籤

開發者團隊

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

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

原文外掛簡介

NOTE: This plugin has outlived its usefulness. You can use it if you need to support legacy browsers, but modern web sites should be using the text-rendering: optimizeLegibility; declaration in their CSS to encourage context-sensitive kerning and the use of ligatures.
Wyatt Allen’s Ligature.js library is a tool for automatically inserting ligatures in content where appropriate. Ligatures are glyphs that combine two letter forms into one for stylistic and legibility reasons.
By default, this script replaces letter combinations which commonly have ligatures defined in web fonts:

ffl
ffi
fl
fi
ff
ij
IJ

An “extended” mode is available, which replaces these additional combinations:

ae
AE
oe
OE
ue
st

The configuration screen lets you pick which text on your site gets ligatures using CSS selectors, and has a checkbox for enabling the “extended” ligatures. Use this plugin to enhance readability in headlines and flavor text on your site.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon