JUTypography is a plugin built on the PHP-Typography library, designed to enhance the typographic quality of articles by automatically applying formatting rules after saving content.
- Applies typography rules to articles upon saving.
- Removes redundant paragraphs.
- Strips
<strong>tags from H1-H6 headings. - Eliminates hyphens at the start of lines within
<li>tags.
Processed Content:
- Fields:
title,metadesc. - Article components:
$article->text,$article->introtext,$article->fulltext.
Typography Features:
- Hyphenation: Supports over 50 languages.
- Space Control:
- Prevents widows in text.
- Glues values to units (e.g., 10px).
- Forces internal wrapping for long URLs and email addresses.
- Intelligent Character Replacement:
- Smart handling of single (‘ ’) and double (“ ”) quote marks.
- Proper formatting of dashes (–).
- Correct rendering of ellipses (…).
- Accurate display of trademarks (™), copyright (©), and service marks.
- Support for math symbols (e.g., 5×5×5=5³).
- Proper formatting of fractions (e.g., 1⁄16).
- Automatic ordinal suffixes (e.g., 1st, 2nd).