Releases: mundschenk-at/php-typography
Releases · mundschenk-at/php-typography
PHP-Typography 6.7.0
- Change: Significantly updated hyphenation patterns for:
- German
- German (Traditional)
- German (Swiss Traditional)
- Change: Minimum PHP version increased to 7.4.0.
- Change: The following public methods have been deprecated:
Strings::mb_str_split
Strings::uchr
- Bugfix: No more deprecation warnings when running on PHP 8.1.
- Bugfix: The ASCII string functions actually get used on pure ASCII fragments (instead of falling back to the slower
mb_*
functions).
PHP-Typography 6.6.0
- Feature: Use native
mb_str_split
on PHP 7.4 and above. - Change: Significantly updated hyphenation patterns for:
- Amharic
- Chinese pinyin (Latin)
- German
- German (Traditional)
- German (Swiss Traditional)
- Latin (Classical)
- Latin (Liturgical)
- Spanish
PHP-Typography 6.5.3
Bugfix: Ambiguous blase
removed from smart diacritics list for de-DE
.
PHP-Typography 6.5.2
- Bugfix: PHP 7.4 compatibility.
- Bugfix: Parsing does not break anymore when the returned more
DOMDocument
is invalid.
PHP-Typography 6.5.1
Bugfix: The smart area and volume units fix now handles missing whitespace as well (e.g. 5m2
is transformed into 5 m²
).
PHP-Typography 6.5.0
- Feature: Use non-breaking hyphen for connecting one-letter-words and when an elision is followed by a comma.
- Feature: All special unicode characters can now be remapped using the
Settings
constructor or the newSettings::remap_character()
method. By default,U::APOSTROPHE
is remapped toU::SINGLE_QUOTE_CLOSE
andU::NO_BREAK_NARROW_SPACE
toU::NO_BREAK_SPACE
, keeping compatibility with previous versions. - Feature: A new dash style (
Dash_Styles::INTERNATIONAL_NO_HAIR_SPACES
) has been added, following the Duden convention of not having hair spaces around interval dashes. - Feature: Metric area and volume units can now be prettified (e.g.
m2
tom²
). - Change: All settings keys now have named constants. Going forward, please only use those.
- Bugfix: Decades in the English (
'60s
) and German ('80er
) styles are now rendered with an apostrophe.
PHP-Typography 6.4.3
Bugfix: To prevent common false positives for single-letter Roman ordinals (especially in French and Dutch), Roman numeral matching is now only enabled when Settings::set_smart_ordinal_suffix_match_roman_numerals
is set to true
. In addition, only I
, V
, and X
are accepted as single-letter Roman numbers.
PHP-Typography 6.4.2
Bugfix: The Unicode hyphen character (‐
) is recognized as a valid word combiner.
PHP-Typography 6.4.1
Bugfix: Parts of hyphenated words should not be detected as Roman numerals anymore.
PHP-Typography 6.4.0
- Feature: French (1ère) and "Latin" (1o) ordinal numbers are now supported by the smart ordinals feature (also with Roman numerals, e.g. XIXème).
- Bugfix: Unit spacing was not applied to monetary symbols ($, €, etc.).