Skip to content

Releases: mundschenk-at/php-typography

PHP-Typography 6.7.0

14 Nov 22:31
6b04148
Compare
Choose a tag to compare
  • 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

05 Apr 12:15
Compare
Choose a tag to compare
  • 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

27 Mar 21:14
Compare
Choose a tag to compare

Bugfix: Ambiguous blase removed from smart diacritics list for de-DE.

PHP-Typography 6.5.2

07 Dec 12:40
Compare
Choose a tag to compare
  • Bugfix: PHP 7.4 compatibility.
  • Bugfix: Parsing does not break anymore when the returned more DOMDocument is invalid.

PHP-Typography 6.5.1

08 Jul 20:11
Compare
Choose a tag to compare

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

05 Jul 22:27
536c603
Compare
Choose a tag to compare
  • 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 new Settings::remap_character() method. By default, U::APOSTROPHE is remapped to U::SINGLE_QUOTE_CLOSE and U::NO_BREAK_NARROW_SPACE to U::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 to ).
  • 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

28 Jan 23:19
00b1b11
Compare
Choose a tag to compare

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

27 Jan 13:56
Compare
Choose a tag to compare

Bugfix: The Unicode hyphen character () is recognized as a valid word combiner.

PHP-Typography 6.4.1

27 Jan 12:57
Compare
Choose a tag to compare

Bugfix: Parts of hyphenated words should not be detected as Roman numerals anymore.

PHP-Typography 6.4.0

24 Jan 16:02
2a1ef2f
Compare
Choose a tag to compare
  • 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.).