wp-Typography

外掛說明

Improve your web typography with:

  • Hyphenation — over 70 languages supported

  • Space control, including:

    • widow protection
    • gluing values to units
    • forced internal wrapping of long URLs & email addresses
  • Intelligent character replacement, including smart handling of:

    • quote marks
    • dashes
    • ellipses
    • trademarks, copyright & service marks
    • math symbols
    • fractions
    • ordinal suffixes
  • CSS hooks for styling:

    • ampersands,
    • uppercase words,
    • numbers,
    • initial quotes & guillemets.

螢幕擷圖

  • wp-Typography “General” settings page.
  • wp-Typography “Hyphenation” settings page.
  • wp-Typography “Intelligent Character Replacement” settings page.
  • wp-Typography “Space Control” settings page.
  • wp-Typography “Add CSS Hooks” settings page.

安裝方式

Requirements

wp-Typography has the following requirements:

  • The host server must run PHP 7.4.0 or later,
  • your installation of PHP must include the following PHP extensions (most do):
  • text must be encoded in UTF‐8.

常見問題集

FAQs are maintained on the wp-Typography website.

Three questions come up so frequently, we will republish their answers here:

Will this plu­gin slow my page load­ing times?

Maybe. For best performance, use a persistent object cache plugin like WP Redis.

This plugin breaks post title links. What gives?

More likely than not, your WordPress theme is using an improper function to set the title attribute of your heading’s link. It is probably using the the_title() function, which delivers the post title after filtering. It should be using the_title_attribute() which delivers the post title before filtering. Change out this function throughout your theme when it is used inside of an HTML tag, and the problem should go away.

If you are uncomfortable editing your theme’s code, you may alternatively go to the wp-Typography settings page in your admin panel and add h1 and h2 to the “Do not process the content of these HTML elements:” field. This will disable typographic processing within improperly designed page title links and page titles.

What are the privacy implications of using the plugin?

wp-Typography does not store, transmit or otherwise process personal data as such. It does cache the content of the site’s posts. If necessary, you can clear this cache from the plugin’s settings page.

Remember, many more FAQs are are addressed the wp-Typography website.

使用者評論

2025 年 2 月 24 日
Thanks for providing this awesome typographic assistant – using it on a number of sites…! Well documented & actively maintained. Much appreciated 🙌
2024 年 6 月 4 日
Sehr nützlich, funktioniert gut! Danke! Very useful, works well! Thank you!
2025 年 2 月 18 日
Essential, especially for French.A must! I hope it will be supported for a long time
2022 年 11 月 7 日 1 則留言
For a long time I wondered which plugin was consuming too much RAM on my WP installation. Through the Code Profiler I found out that THIS plugin is responsible for it. After disabling it, I suddenly had 40-50 MB more space in RAM. This is unacceptable, unfortunately! Too bad, this PlugIn is otherwise really good and does a great job. I have now solved the hyphenation by CSS and deleted this PlugIn.
2022 年 11 月 3 日 1 則留言
This has saved us a ton of trouble on our Swedish-language website. It’s simply amazing, and works great!
閱讀全部 69 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈wp-Typography〉的開發相關工作。

參與者

〈wp-Typography〉外掛目前已有 8 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈wp-Typography〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

5.11.0 – February 23, 2025

  • Bugfix: Don’t crash when a runtime requirement is not met.

5.10.1 – December 16, 2024

  • Bugfix: A debug message intended for local use accidentally got into the build of 5.10.0.

5.10.0 – December 15, 2024

  • Bugfix: Default styles were always loaded, even when Include styling for CSS hooks was unchecked.
  • Bugfix: No more Function _load_textdomain_just_in_time was called incorrectly. (present since WordPress 6.7).
  • Bugfix: Block Editor blocks and the sidebar extension have been split into separate assets to prevent issues with the widget editor (and customizer preview).
  • Bugfix: Passing a null value to WP_Typography::process will no longer result in a TypeError when processing has been disabled for the post.
  • Change: WordPress minimum version increased to 6.6.

5.9.1 – January 22, 2023

  • Bugfix: Only apply filters to ACF fields returning strings to preserve type expectations for downstream code.

5.9.0 – January 21, 2023

  • Feature: wp-Typography is now compatible with PHP 8.1.
  • Feature: Improved Advanced Custom Fields support:
    • wp-Typography is now compatible with Advanced Custom Fields 6.
    • The return type array is now supported for most fields.
  • Change: PHP minimum version increased to 7.4.
  • Change: Prevent widows is now disabled by default.

5.8.1 – January 25, 2022

  • Bugfix: Whitescreen in Requirements class due to error in build process fixed.