-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings-french.php
40 lines (28 loc) · 1.22 KB
/
settings-french.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
function typography($html)
{
include('php-typography.php');
$typo = new phpTypography();
//ignore php-typo on this class. you can add notypo class to your elements for avoiding typography modifications
$typo->set_classes_to_ignore($classNames = array("vcard","notypo"));
//words with more than (x) letters can be alone on a new line
$typo->set_max_dewidow_length(10);
// French typography options
$typo->set_smart_quotes_primary("doubleGuillemetsFrench");
$typo->set_smart_quotes_secondary("doubleCurled");
// uncomment line below for disabling non-breaking space before punctuation (french)
//$typo->set_punctuation_spacing(FALSE);
//delete the line below if you want hyphenation in your texts
$typo->set_hyphenation(FALSE);
// uncomment lines below for activate french hyphenation. Works if set_hyphenation is true
// $typo->set_hyphenation_language("fr");
// $typo->set_hyphenate_all_caps(FALSE);
// avoid the addition of diacritics on non diacritics french words
$typo->set_smart_diacritics(FALSE);
// avoid slashes converted in divide sign in dates like 04/05/13
$typo->set_smart_math(FALSE);
//Process input text with option
$html = $typo->process($html);
return $html;
}
}