Re: Smart quotes not working correctly with single quotes

2021-05-29 Thread Andreas Gösele
Hi, thanks to Albert for pointing me to pandoc-quotes.lua. It doesn't take care of apostrophes so I wrote my own very simple pandoc lua filter: text = require 'text' function Str (s) s.text = pandoc.pipe("sed", {"-e","s/'/’/"}, s.text) return s end Together with pandoc-quotes.lua and "

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Andreas Gösele
Juan Manuel Macías writes: > Andreas Gösele writes: > >> I tried it, but it doesn't work. It leaves the simple quotes >> untouched. Did you test it and did it work then? > > I forgot to tell you (sorry!) that you should set the variable > `org-export-allow-bind-keywords' as non-nil: > > (setq org

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Andreas Gösele
Albert Krewinkel writes: > Andreas Gösele writes: > >> [...] I tried to convert the LaTeX document with pandoc, tex4h and >> latex2html to odt and html but none of them produces the correct >> output. >> >> So I'm wondering whether there is any way to make org export to >> recognize single quote

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Andreas Gösele
Nicolas Goaziou writes: > "Andreas Gösele" writes: > >> So I'm wondering whether there is any way to make org export to >> recognize single quotes also outside from double quote. It should be >> possible as inner quotes is not the only use of simple quotes. > > Genuine question: what language us

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Juan Manuel Macías
Hi Andreas, Andreas Gösele writes: > I tried it, but it doesn't work. It leaves the simple quotes > untouched. Did you test it and did it work then? I forgot to tell you (sorry!) that you should set the variable `org-export-allow-bind-keywords' as non-nil: (setq org-export-allow-bind-keywords t

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Andreas Gösele
Thanks Juan Manuel! I tried it, but it doesn't work. It leaves the simple quotes untouched. Did you test it and did it work then? Best regards, Andreas Juan Manuel Macías writes: > Hi Andreas, > > A quick fix (for LaTeX, odt and HTML), if you want to use second-level > quotes as first-level q

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Juan Manuel Macías
Hi Nicholas, Nicolas Goaziou writes: > Genuine question: what language uses two different styles of outer > (level 1) quotes? And in what context? I answer in the case of Spanish. In Spanish the level 1 quotes are «» (french quotes). The level 2 are “...” (english quotes). Only in some cases, an

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Nicolas Goaziou
"Andreas Gösele" writes: > So I'm wondering whether there is any way to make org export to > recognize single quotes also outside from double quote. It should be > possible as inner quotes is not the only use of simple quotes. Genuine question: what language uses two different styles of outer (l

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Albert Krewinkel
Andreas Gösele writes: > [...] I tried to convert the LaTeX document with pandoc, tex4h and > latex2html to odt and html but none of them produces the correct > output. > > So I'm wondering whether there is any way to make org export to > recognize single quotes also outside from double quote.

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Nicolas Goaziou
Hello, "Andreas Gösele" writes: > So I'm wondering whether there is any way to make org export to > recognize single quotes also outside from double quote. It should be > possible as inner quotes is not the only use of simple quotes. As Juan Manual Macías wrote, I confirm single quotes are only

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Juan Manuel Macías
Hi Andreas, A quick fix (for LaTeX, odt and HTML), if you want to use second-level quotes as first-level quotes in parts of your document, could be to define a filter. You must put these quotes as ´ ... ´ (for example): #+LANGUAGE: de #+OPTIONS: ':t #+BIND: org-export-filter-final-output-functio

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Andreas Gösele
Thanks Juan Manuel! Your suggestion works for LaTeX, but I need the other formats too. I tried to convert the LaTeX document with pandoc, tex4h and latex2html to odt and html but none of them produces the correct output. So I'm wondering whether there is any way to make org export to recognize si

Re: Smart quotes not working correctly with single quotes

2021-05-28 Thread Juan Manuel Macías
Hi Andreas, I don't know if this is a bug, but I would say that in principle it's the expected result. Single quotes are understood here as inner quotes or second-level quotation marks, therefore they are only activated nested in text with first level quotes: " ... '...' ... " lorem "ipsum 'dolor

Smart quotes not working correctly with single quotes

2021-05-27 Thread Andreas Gösele
Hi, even using "smart quotes", single quotes are not correctly exported into html, odt or latex. I have as document: | #+LANGUAGE: de | #+OPTIONS: ':t | #+OPTIONS: toc:nil | It's a 'test'. "Please". If I export it to html I get: | It’s a ’test’. „Please“. I should get: | It’s a ‚test‘. „Plea