-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Hello.
Pdflatex compile tex file with opening quotes in Lithuanian, but Pandoc conversion from the same file to docx or odt omits them.
File quotes.tex:
\documentclass[a4paper,11pt]{article}
\usepackage[T1,L7x]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\usepackage[lithuanian]{babel}
\begin{document}
\glqq Outer quote \glq inner quote`{}``
\end{document}
pandoc quotes.tex -o quotes.docx or pandoc quotes.tex -o quotes.odt result is no opening quote signs:
Outer quote inner quote‘“
While correct conversion should be:
„Outer quote ,inner quote‘“
The same happens with the same text in other languages, but slightly different. In Russian code is
\documentclass[12pt,russian]{article}
\usepackage[T1,L7x]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\usepackage{babel}
\begin{document}
\guillemotleft Outer quote \quotedblbase inner quote``\guillemotright
\end{document}
Result:
Outer quote inner quote“
while should be
«Outer quote „inner quote“»
So Pandoc doesn't convert \grqq, \glqq, \grq, \flqq, \frqq, \flq, \frq, \dq from ngerman (babel) – they are used in Lithuanian too. And \quotesinglbase \quotedblbase \textquoteright \textquoteleft \textquotedblright \textquotedblleft \textquotesingle \textquotedbl \guilsinglleft \guilsinglright \guillemotleft \guillemotright – they are from textcomp package, adopted to LaTeX. List of such text symbols in LaTeX. \textbar from latter isn't converted too.
Such tex files are generated by Lyx (frontend of LaTeX). When exporting from Lyx to docx or odt with Pandoc situation is the same – there is no part of quote signs and all | disappears.
Can be conversion of quotes signs and \textbar (maybe more LaTeX text symbols) implemented to Pandoc?
Thank you for hard work.
Valdemaras