[Tex/LaTex] Replace “quotes” with „quotes“

csquotespunctuation

I live in a funny part of the world where we're required to quote text like this: „quotes“ (note the difference between the opening and closing quote).

Is there an easy way to set up a LaTeX document so that I could just type the usual double quotes that are on my keyboard ("like this"), and the LaTeX document processor would replace them to the ones that I need („like this“)?

I know I could just use ,, (two commas) and `` (two grave accents) in the LaTeX source file, but this seems like a step-back from what Microsoft Word has to offer at this point 😉

If LaTeX (or XeTeX, or whatever) can't do that by itself, is there a way to preprocess the LaTeX document with some sort of an regular expression (somehow embed the regexp in the document)?

EDIT:

The language in question is Lithuanian.

babel doesn't do what I want; I don't know if it's supposed to.

What I would like to achieve is the automatic "" => „“ replacement. Quoting text with anything more than a single keystroke doesn't seem efficient to me 😉

Best Answer

Using the csquotes package allows logical mark up of quotes. That includes 'short' quotes, which I personally would avoid but was asked for so ...

\documentclass{article}
\usepackage[german]{babel}
\usepackage{csquotes}
\MakeOuterQuote{"}
\begin{document}
\enquote{Labas rytas}

"Labas rytas"
\end{document}

(Lithuanian babel doesn't seem to work 'out of the box', so I've used German as the standard quotation style is the same.)