Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

German uses both „quotes“ and »quotes« #75

Open
frischnetz opened this issue Jan 15, 2022 · 1 comment
Open

German uses both „quotes“ and »quotes« #75

frischnetz opened this issue Jan 15, 2022 · 1 comment

Comments

@frischnetz
Copy link

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.

@damienalexandre
Copy link
Member

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'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants