You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-25Lines changed: 21 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ JoliTypo is a tool fixing [Microtypography](https://en.wikipedia.org/wiki/Microt
8
8
```php
9
9
use JoliTypo\Fixer;
10
10
11
-
$fixer = new Fixer(array('Ellipsis', 'Dash', 'EnglishQuotes', 'CurlyQuote', 'Hyphen'));
11
+
$fixer = new Fixer(array('Ellipsis', 'Dash', 'SmartQuotes', 'CurlyQuote', 'Hyphen'));
12
12
$fixed_content = $fixer->fix('<p>"Tell me Mr. Anderson... what good is a phone call... if you\'re unable to speak?" -- Agent Smith, <em>Matrix</em>.</p>');
13
13
```
14
14
```html
@@ -40,7 +40,8 @@ Just tell the Fixer class [which Fixer](#available-fixers) you want to run on yo
40
40
```php
41
41
use JoliTypo\Fixer;
42
42
43
-
$fixer = new Fixer(array("FrenchQuotes", "FrenchNoBreakSpace"));
43
+
$fixer = new Fixer(array("SmartQuotes", "FrenchNoBreakSpace"));
44
+
$fixer->setLocale('fr_FR');
44
45
$fixed_content = $fixer->fix('<p>Je suis "très content" de t\'avoir invité sur <ahref="http://jolicode.com/">Jolicode.com</a> !</p>');
45
46
```
46
47
@@ -55,7 +56,7 @@ To fix non HTML content, use the `fixString()` method:
55
56
```php
56
57
use JoliTypo\Fixer;
57
58
58
-
$fixer = new Fixer(array("Trademark", "EnglishQuotes"));
59
+
$fixer = new Fixer(array("Trademark", "SmartQuotes"));
Mostly the same as en_GB, according to [Typefacts](http://typefacts.com/) and [Wikipedia](http://de.wikipedia.org/wiki/Typografie_f%C3%BCr_digitale_Texte).
0 commit comments