wp-Typography

Описание

Улучшьте web-типографику вашего сайта, используя:

  • Переносы – словари переносов для более 70 языков

  • настройки обработки пробелов, в том числе:

    • контроль висячих знаков
    • удержание размерностей с величинами
    • перенос длинных URL и адресов E-mail
  • умную автозамену, в том числе обработку:

    • кавычек
    • тире
    • многоточий
    • символов обслуживания
    • математических знаков
    • дробей
    • наращений
  • CSS-классов для оформления:

    • амперсандов
    • аббревиатур
    • чисел
    • начальных кавычек

Скриншоты

  • 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:

  • установленный на сервере интерпретатор PHP 5.4.0 и новее
  • интерпретатор PHP 5.4.0+ должен включать расширение mbstring (есть в большинстве установок)
  • текст должен быть закодирован в UTF-8

Часто задаваемые вопросы

FAQs are maintained on the wp-Typography website.

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

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

Yes. Use WP Super Cache.

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.

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

I’m using Advanced Custom Fields and don’t want my custom fields to be hyphenated! How can I disable that behavior?

Please install the wp-Typography Disable ACF Integration plugin by @sarukku.

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.

Отзывы

This little fella saved me! Great plugin!

I had a weird problem, wp suddenly replaced all (and only!) my left straight quotation marks with angle quotation marks. I tried EVERYTHING but I just couldn’t solve it.
I installed this plugin and boom! Everything was running smoothly again, plus it has many great features!! I recommend it to everyone, whether you’re facing any issues or not!

Awesome Plugin, Awesome Support

Highly recommended above any other typography plugin. Not only does it work exactly as intended, but the author is super-responsive and does a great job maintaining the plugin.

Absolut control over typography

Works right out of the box and with all the languages you can control a wide range of customer pages. Thx you for the long time you provide support and love for this plugin.

VERBESSERUNGS-VORSCHLAG

das Plug-In ist soweit ganz gut aber was mir dringend fehlt ist die Option, dass man nicht mehrere Trennungen untereinander am Ende der Zeile hat. So wäre es sehr schön, wenn vielleicht nicht mehr als 2 Zeilen untereinander an Trennungen stattfinden würden. Vielleicht kann diese Option ja noch programmiert werden (oder habe ich diese Einstellung tatsächlich irgendwo übersehen) Vielleicht kann mir hier jemand Auskunft darüber geben, das wäre sehr hilfreich.

Посмотреть все 39 отзывов

Участники и разработчики

«wp-Typography» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«wp-Typography» переведён на 4 языка. Благодарим переводчиков за их работу.

Перевести «wp-Typography» на ваш язык.

Заинтересованы в разработке?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Журнал изменений

5.4.2 — September 30, 2018

  • Bugfix: Advanced Custom Fields 5 now uses the correct default values for text, textarea and wysiwyg field types.

5.4.1 — September 15, 2018

  • Bugfix: Comply with new WordPress Coding Standards 1.1.
  • Bugfix: Work around GlotPress issue preventing language pack generation.

5.4.0 — September 9, 2018

  • Feature: New hooks for implementing your own typography fixes:
    • typo_custom_characters_node_fix,
    • typo_custom_spacing_pre_node_fix,
    • typo_custom_spacing_post_node_fix,
    • typo_custom_html_insertion_node_fix,
    • typo_custom_mixed_words_token_fix,
    • typo_custom_compound_words_token_fix,
    • typo_custom_words_token_fix,
    • typo_custom_other_token_fix.
  • Feature: A privacy statement has been added on WordPress 4.9.6+.
  • Feature: A narrow no-break space is now inserted between adjacent primary and secondary quotes.
  • Change: The Unicode hyphen character () is now used instead of the hyphen-minus (-).
  • Change: Significantly updated hyphenation patterns for:
    • Bulgarian,
    • German,
    • German (Traditional),
    • German (Swiss Traditional),
    • Latin (Liturgical), and
    • Thai.
  • Bugfix: The comma is now recognized as a decimal separator (e.g. 1,5, in addition to 1.5).
  • Bugfix: Smart maths properly handles 2-digit years in dates.
  • Bugfix: Smart diacritics won’t try to «correct» the spelling of Uber anymore.
  • Bugfix: French punctuation is now correctly applied to quotes preceeded or followed by round and square brackets.
  • Bugfix: Smart quotes replacement could result in invalid unicode sequences in rare cases.

5.3.5 — May 10, 2018

  • Bugfix: 50/50 (and x/x except 1/1) are not treated as fractions anymore.
  • Bugfix: The French spacing rules were not applied to closing guillemets followed by a comma.

5.3.4 — April 22, 2018

  • Bugfix: Update used libraries to the latest versions.

5.3.3 — April 08, 2018

  • Bugfix: Correctly match smart fractions even if the are followed by a comma (i.e. 1/4,).

5.3.2 — March 24, 2018

  • Bugfix: Prevent future conflicts with other plugins by updating included libraries.

5.3.1 — March 15, 2018

  • Bugfix: Always clear the cache after updates to prevent frontend whitescreens under certain circumstances.

5.3.0 — March 13, 2018

  • Feature: True integration with Advanced Custom Fields 5, making the filters adjustable for each field via the settings UI.
  • Feature: The script to remove soft hyphens from clipboard selections has been refactored to reduce the number of loaded resources.
  • Change: Some API methods have been deprecated and will be removed in 6.0.0:
    • The static methods WP_Typography::filter* should be replaced by static calls to the existing process* method family.
    • In general, all instance methods of the new class WP_Typography\Implementation can now be called statically on the singleton via the WP_Typography superclass.
  • Bugfix: In rare cases, UTF-8 characters like Å caused all content within the same tag to disappear.