Problem with quotes signs in Pandoc conversion

V K sovhist at yahoo.com
Wed Feb 5 15:05:10 UTC 2020


Hello.
 I quite often need export form Lyx to docx.So I installed Pandoc, converted document to docx and... lost all opening quote signs. They are in pdf, generated by Lyx, but not in exported docx or odt.
I tested simple lyx file (attached) changing only language of document in Lyx settings.  It is all right with all quote signs in English or Italian, bad with Lithuanian (my language) and some other languages. So that is language dependant. 
After exporting file to plain LaTeX I see what is going wrong. The same text with outer and inner quotes:
In English: ``Outer quote `inner quote'{}'' – Result: I can see all quote signs.
In Italian: <<Outer quote ``inner quote''>> – all quote signs.In Lithuanian: \glqq Outer quote \glq inner quote`{}``– I see only closing sings of quotes.
In German, Latvian, Estonian, Polish: ,,Outer quote \quotesinglbase inner quote`{}`` – can't see  inner opening quote sign.In Russian: \guillemotleft Outer quote \quotedblbase inner quote``\guillemotright – only closing mark of inner quote can be seen.In French: \og Outer quote ``inner quote''\fg – only inner quotes can be seen.Tex files attached. Pdf generated from them with pdflatex are correct, with all quote marks.

So it is obvious that Pandoc understands only quotes signs, but not, how to say, commands, it doesn't convert all the \og, \guillemotleft, \quotesinglbase, \glqq and so on, but perfectly convert signs `` '' << etc.Using csquotes package change nothing. Maybe I should load other package? 


Now I export file to tex, change \glqq to ,,  \glq to , in it and convert tex to docx with pandoc. Maybe there is some other solutions? Or maybe I am doing wrong something?

It's Pandoc problem  more than Lyx and I can open issue in Pandoc github. But maybe it could be considered as Lyx bug? Can Lyx export to tex only quotes signs in all languages (as in English or Italian), but not commands? That would add more consistency to tex file generated by lyx because now half of quote signs represented in signs and half – in commands in the same language.

And thank all developers for hard work with this wonderful program.

Best regards,
Valdemaras Klumbys
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quotes_it.tex
Type: text/x-tex
Size: 683 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quotes_en.tex
Type: text/x-tex
Size: 683 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quotes_de.tex
Type: text/x-tex
Size: 698 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment-0002.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quotes_ru.tex
Type: text/x-tex
Size: 725 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment-0003.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quotes_lt.tex
Type: text/x-tex
Size: 699 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment-0004.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quotes.lyx
Type: application/x-lyx
Size: 2207 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quotes_fr.tex
Type: text/x-tex
Size: 843 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20200205/8bdd908a/attachment-0005.tex>


More information about the lyx-users mailing list