I need to change english quotation marks: “text” into german quotation marks: „text“ through out my entire document.
The problem is I used ``text'' and `text' in the entire document.
There is another complication. I also have a lot of greek text in the document which is using both ` and ' to produce accents.
Is there a way to add something to the preamble to change this throughout the document?
Here is my MWE:
\documentclass{scrartcl}
\usepackage[polutonikogreek,ngerman]{babel}%
\usepackage[babel,german=quotes]{csquotes}
\begin{document}
``Double quotes''
`Single quotes'
\foreignlanguage{polutonikogreek}{`ouko~un t~w m`en >agenn'htw patr`i o>ike~ion >ax'iwma fulakt'eon, mhd'ena to~u e@inai a>ut~w t`on a>'ition l'egontas; t~w d`e u<i~w t`hn <arm'ozousan tim`hn >aponemht'eon, t`hn >'anarqon a>ut~w par`a to~u patr`os g'ennhsin >anatij'entas; ka`i <ws >afj'asamen a>ut~w s'ebas >apon'emontes, m'onon e>usebos ka`i e>uf'hmws t`o @hn ka`i t`o `ae'i ka`i t`o pr`o a>i'wnwn l'egontes >ep> a>uto~u, t`hn m'entoi je'othta a>uto~u m`h paraitou'menoi, `all`a t~h e>ik'oni ka`i t~w qarakt~hri to~u patr`os >aphkribwm'enhn >emf'ereian kat`a p'anta >anatij'entes, t`o d`e >ag'ennhton t~w patr`i m'onon >id'iwma pare~inai dox'azontes, <'ate d`h ka`i a>uto~u f'askontos to~u swt~hros; »<o pat'hr mou me'izwn mo'u >estin«.}
\end{document}
\enquote{random text}
if you want to change quotation marks document wide. – Oliver Jul 16 '14 at 18:59``
and replace them with„
. Then search for''
and replace with“
. That's half of the job. The single ones need a little more work… could happen that a single quote`
appears before a word? Or'
after a word? Those cases need your explicit decision, since there is no way to differentiate. Otherwise, a regular expresion (sed
) might help. – Manuel Jul 19 '14 at 10:02