Replies: 3 comments
-
You need to disable the smart diacritics (which default to // Create settings object without default values.
$settings = PHP_Typography\Settings( false );
// Necessary settings - otherwise the object is not fully functional if the default values are not used.
$settings->set_smart_quotes_primary( "doubleGuillemets" );
$settings->set_smart_quotes_secondary(); // I'm not sure what's used for secondary quotations in French
$settings->set_smart_dashes_style( PHP_Typography\Settings\Dash_Style::INTERNATIONAL );
$settings->set_true_no_break_narrow_space( false );
// Optional settings.
$settings->set_hyphenation( false );
$settings->set_hyphenation_language( 'fr' ); // If hyphenation is off, this will have no effect.
$settings->set_french_punctuation_spacing( true ); The current default setting situation is somewhat US-centric for historical reasons. Unfortunately, removing it introduces a BC break and I missed the chance in 6.0.0. |
Beta Was this translation helpful? Give feedback.
-
@aourednik: Have you been able to fix the issue with my explanation? |
Beta Was this translation helpful? Give feedback.
-
Looks like this is resolved. |
Beta Was this translation helpful? Give feedback.
-
When using the following settings:
the script replaces all ne by né .
My simple workaround
Or am I setting something wrog?
Beta Was this translation helpful? Give feedback.
All reactions