JoliTypo icon indicating copy to clipboard operation
JoliTypo copied to clipboard

German uses both „quotes“ and »quotes«

Open frischnetz opened this issue 3 years ago • 1 comments

While curly quotes are common in German, especially in script use, angular quote marks (reversed french guillemets or »Möwchen«) are more common in printed german text, books and newspapers. Please note that they are used in the reversed direction compared to French or Swiss German:

This is an »example«. And this is an »example with another ›single quote‹ inside«.

Please provide an option for these quote marks.

frischnetz avatar Jan 15 '22 01:01 frischnetz

Hi!

Thanks a lot for this feature suggestion.

At the moment we do not support "nested" quotes but you can configure your fixer to use any opening or closing string like this:

use JoliTypo\Fixer;

$angularQuoteFixer = new Fixer\SmartQuotes('de');
$angularQuoteFixer->setOpening('»');
$angularQuoteFixer->setClosing('«');

$fixer = new Fixer(array('Ellipsis', 'Dash', $angularQuoteFixer, 'CurlyQuote', 'Hyphen'));

damienalexandre avatar Jan 17 '22 16:01 damienalexandre