Skip to content

Commit 536c603

Browse files
Merge pull request #122 from mundschenk-at/meta
Release 6.5.0
2 parents 976a1d7 + 2665c87 commit 536c603

14 files changed

+30
-18
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Change History
22

3-
## 6.5.0 - unreleased
3+
## 6.5.0 - July 6, 2019
44
* _Feature_: Use non-breaking hyphen for connecting one-letter-words and when
55
an elision is followed by a comma.
6+
* _Feature_: All special unicode characters can now be remapped using the `Settings`
7+
constructor or the new `Settings::remap_character()` method. By default,
8+
`U::APOSTROPHE` is remapped to `U::SINGLE_QUOTE_CLOSE` and `U::NO_BREAK_NARROW_SPACE`
9+
to `U::NO_BREAK_SPACE`, keeping compatibility with previous versions.
10+
* _Feature_: A new dash style (`Dash_Styles::INTERNATIONAL_NO_HAIR_SPACES`) has
11+
been added, following the Duden convention of not having hair spaces around
12+
interval dashes.
13+
* _Feature_: Metric area and volume units can now be prettified (e.g. `m2` to ``).
14+
* _Change_: All settings keys now have named constants. Going forward, please
15+
only use those.
16+
* _Bugfix_: Decades in the English (`'60s`) and German (`'80er`) styles are now
17+
rendered with an apostrophe.
618

719
## 6.4.3 - January 29, 2019
820
* _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.

src/fixes/node-fixes/class-numbered-abbreviation-spacing-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2017 Peter Putzer.
5+
* Copyright 2017-2019 Peter Putzer.
66
*
77
* This program is free software; you can redistribute it and/or modify modify
88
* it under the terms of the GNU General Public License as published by

src/fixes/node-fixes/class-process-words-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2017 Peter Putzer.
5+
* Copyright 2017-2019 Peter Putzer.
66
*
77
* This program is free software; you can redistribute it and/or modify modify
88
* it under the terms of the GNU General Public License as published by

src/fixes/node-fixes/class-single-character-word-spacing-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2017 Peter Putzer.
5+
* Copyright 2017-2019 Peter Putzer.
66
*
77
* This program is free software; you can redistribute it and/or modify modify
88
* it under the terms of the GNU General Public License as published by

src/fixes/node-fixes/class-smart-ellipses-fix.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2017 Peter Putzer.
5+
* Copyright 2017-2019 Peter Putzer.
66
*
77
* This program is free software; you can redistribute it and/or modify modify
88
* it under the terms of the GNU General Public License as published by
@@ -47,7 +47,7 @@ class Smart_Ellipses_Fix extends Abstract_Node_Fix {
4747
* @param bool $is_title Optional. Default false.
4848
*/
4949
public function apply( \DOMText $textnode, Settings $settings, $is_title = false ) {
50-
if ( empty( $settings[ Settings::SMART_ELLIPSES] ) ) {
50+
if ( empty( $settings[ Settings::SMART_ELLIPSES ] ) ) {
5151
return;
5252
}
5353

src/fixes/node-fixes/class-smart-exponents-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2014-2018 Peter Putzer.
5+
* Copyright 2014-2019 Peter Putzer.
66
* Copyright 2009-2011 KINGdesk, LLC.
77
*
88
* This program is free software; you can redistribute it and/or modify modify

src/fixes/node-fixes/class-smart-marks-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2017 Peter Putzer.
5+
* Copyright 2017-2019 Peter Putzer.
66
*
77
* This program is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by

src/fixes/node-fixes/class-smart-ordinal-suffix-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2014-2018 Peter Putzer.
5+
* Copyright 2014-2019 Peter Putzer.
66
* Copyright 2009-2011 KINGdesk, LLC.
77
*
88
* This program is free software; you can redistribute it and/or modify

src/fixes/node-fixes/class-style-caps-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ class Style_Caps_Fix extends Simple_Style_Fix {
101101
* @param bool $feed_compatible Optional. Default false.
102102
*/
103103
public function __construct( $css_class, $feed_compatible = false ) {
104-
parent::__construct( self::REGEX, 'styleCaps', $css_class, $feed_compatible );
104+
parent::__construct( self::REGEX, Settings::STYLE_CAPS, $css_class, $feed_compatible );
105105
}
106106
}

src/fixes/node-fixes/class-style-initial-quotes-fix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of PHP-Typography.
44
*
5-
* Copyright 2017-2018 Peter Putzer.
5+
* Copyright 2017-2019 Peter Putzer.
66
*
77
* This program is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)