Re: [O] Smart quotes not working with some languages?

2013-11-14 Thread Daniil Frumin
Thanks! I prepared a patch as you've suggested (attached). On Thu, Nov 14, 2013 at 3:15 AM, Rasmus ras...@gmx.us wrote: Hi Daniil, Daniil Frumin difru...@gmail.com writes: Hi! I am using the latest org from git and I can't get org to export (I need LaTeX export particularly) files

Re: [O] Smart quotes not working with some languages?

2013-11-14 Thread Rasmus
Caio Daniil, Daniil Frumin difru...@gmail.com writes: I prepared a patch as you've suggested (attached). Are the unicode entities correct? In my UTF8-Emacs they look like, e.g, \302\253. It could be OK, though and I could just be missing a font that has these glyphs. Also, please change the

[O] Smart quotes not working with some languages?

2013-11-13 Thread Daniil Frumin
Hi! I am using the latest org from git and I can't get org to export (I need LaTeX export particularly) files with smart quotes. The following example silently fails to produce smart quotes: #+OPTIONS: ':t #+LANGUAGE: ru This is a 'test' file. * Headline with 'quotes' ** Subheading with quotes.

Re: [O] Smart quotes not working with some languages?

2013-11-13 Thread Rasmus
Hi Daniil, Daniil Frumin difru...@gmail.com writes: Hi! I am using the latest org from git and I can't get org to export (I need LaTeX export particularly) files with smart quotes. You need to add it to the variable org-export-smart-quotes-alist defined in ox.el. Put your cursor on the

Re: [O] Smart Quotes Exporting

2012-08-07 Thread Bastien
Hi Mark and Nicolas, in the patchwork¹, I've marked patches² related to this discussion as Not Applicable. If there are progress made on this front, please send updated patches. If there is a patch below that I should apply, please let me know. Thanks! ¹

Re: [O] Smart Quotes Exporting

2012-06-19 Thread Nicolas Goaziou
Hello, Mark Shoulson m...@kli.org writes: Well, wait; regexps can make some pretty darn good guesses at the beginnings or ends of strings. I know that. They make a good job, I just want a better one. This isn't quite it; beginning-of-string followed by quote, then punctuation and then

Re: [O] Smart Quotes Exporting

2012-06-15 Thread Mark Shoulson
Nicolas Goaziou n.goaziou at gmail.com writes: Hello, Mark Shoulson mark at kli.org writes: ASCII exporter also handle UTF-8. So it's good to have there too. Really? I would have thought ASCII meant ASCII, as in 7-bit clean text. org-e-ascii.el (as old org-ascii.el) handles

Re: [O] Smart Quotes Exporting

2012-06-12 Thread Nicolas Goaziou
Hello, Mark Shoulson m...@kli.org writes: ASCII exporter also handle UTF-8. So it's good to have there too. Really? I would have thought ASCII meant ASCII, as in 7-bit clean text. org-e-ascii.el (as old org-ascii.el) handles ASCII, Latin1 and UTF-8 encodings. It looked to me like your

Re: [O] Smart Quotes Exporting

2012-06-10 Thread Mark Shoulson
Nicolas Goaziou n.goaziou at gmail.com writes: Hello, Mark E. Shoulson mark at kli.org writes: Update on the smart-quotes patch. Supports the odt exporter now too, which I think covers all the current major new exporters for which it is relevant (adding smart quotes to ASCII export

Re: [O] Smart Quotes Exporting

2012-06-07 Thread Nicolas Goaziou
Hello, Mark E. Shoulson m...@kli.org writes: Update on the smart-quotes patch. Supports the odt exporter now too, which I think covers all the current major new exporters for which it is relevant (adding smart quotes to ASCII export is a contradiction in terms; ASCII exporter also handle

Re: [O] Smart Quotes Exporting

2012-06-05 Thread Mark E. Shoulson
Update on the smart-quotes patch. Supports the odt exporter now too, which I think covers all the current major new exporters for which it is relevant (adding smart quotes to ASCII export is a contradiction in terms; should it be in the publish exporter? It didn't look like it to me).

Re: [O] Smart Quotes Exporting

2012-06-02 Thread Mark E. Shoulson
All right, preliminary patch is attached, *maybe* good enough for more serious consideration now, but might need some fixes. Still only uses ordinary regexps and plain-text strings, but can now handle the example with formatting-breaks next to quotes. Things have been moved into more

Re: [O] Smart Quotes Exporting

2012-06-01 Thread Nicolas Goaziou
Hello, Mark E. Shoulson m...@kli.org writes: Oh, certainly; they're all a disaster. I think I said that in the writeup at the top. This is just proof of concept, nothing is in the right place, nothing is properly documented. They have to be defcustoms, there needs to be a good :type in

Re: [O] Smart Quotes Exporting

2012-06-01 Thread Mark E. Shoulson
On 06/01/2012 01:11 PM, Nicolas Goaziou wrote: Hello, Mark E. Shoulsonm...@kli.org writes: Oh, certainly; they're all a disaster. I think I said that in the writeup at the top. This is just proof of concept, nothing is in the right place, nothing is properly documented. They have to be

[O] Smart Quotes Exporting (Was: Re: (no subject))

2012-05-31 Thread Mark E. Shoulson
Sorry for messing up the thread subject header; I think I misused gmane's posting. On 05/31/2012 09:38 AM, Nicolas Goaziou wrote: Hello, Mark Shoulsonm...@kli.org writes: +(defvar org-e-html-quote-replacements + '((fr « » ‘ ’ ’) +(en “ ” ‘ ’ ’) +(de „ “ ‚ ‘ ’)) A docstring will

Re: [O] Smart quotes

2012-05-29 Thread Nicolas Goaziou
Hello, Mark E. Shoulson m...@kli.org writes: Maybe, if it's all on one line. But if the quote is several lines long, can you sensibly count the levels? Well, yes. I guess it doesn't actually matter, but it starts to get weird if you find yourself looking arbitrarily far back, and then you

Re: [O] Smart quotes

2012-05-29 Thread Mark E. Shoulson
On 05/29/2012 01:57 PM, Nicolas Goaziou wrote: Hello, Mark E. Shoulsonm...@kli.org writes: I guess it doesn't actually matter, but it starts to get weird if you find yourself looking arbitrarily far back, and then you start building in exceptions for crossing paragraph boundaries... True.

Re: [O] Smart quotes

2012-05-28 Thread Mark E. Shoulson
On 05/26/2012 02:48 AM, Nicolas Goaziou wrote: Hello, Mark E. Shoulsonm...@kli.org writes: The regexp may be able to tell level 1 from level 2 quotes. Do you mean that the author would use the same characters for both first and second level quotes, and the regexp would be smart enough to

Re: [O] Smart quotes

2012-05-26 Thread Nicolas Goaziou
Hello, Mark E. Shoulson m...@kli.org writes: The regexp may be able to tell level 1 from level 2 quotes. Do you mean that the author would use the same characters for both first and second level quotes, and the regexp would be smart enough to distinguish which level each was at? I don't

Re: [O] Smart quotes

2012-05-25 Thread Nicolas Goaziou
Hello, Mark E. Shoulson m...@kli.org writes: Hm. I like the idea, but it raises some questions for me. It would be particularly good if this could share code/custom variables with the pieces of the (new) exporter that make smart quotes on export. That way we could be sure that what it

Re: [O] Smart quotes

2012-05-25 Thread Jambunathan K
I could be interesting, but keep in mind that no matter how smart your quotes are, they will fail in some situations. So, it will have to be optional for export, independently on their in-buffer status. The OPTIONS keyword may be used, with q:t and q:nil items. I don't see an entry for this

Re: [O] Smart quotes

2012-05-25 Thread Mark E. Shoulson
On 05/25/2012 01:14 PM, Nicolas Goaziou wrote: Hello, Mark E. Shoulsonm...@kli.org writes: Hm. I like the idea, but it raises some questions for me. It would be particularly good if this could share code/custom variables with the pieces of the (new) exporter that make smart quotes on

Re: [O] Smart quotes

2012-05-23 Thread Nicolas Goaziou
Hello, Mark E. Shoulson m...@kli.org writes: Smart quotes can be annoying when they aren't smart enough. But when they work you can miss them. I'm attaching a patch that defines a custom variable org-smart-quotes (nil by default), which when non-nil causes the and ' characters to display

Re: [O] Smart quotes

2012-05-23 Thread Mark E. Shoulson
On 05/23/2012 06:17 PM, Nicolas Goaziou wrote: Hello, Mark E. Shoulsonm...@kli.org writes: Smart quotes can be annoying when they aren't smart enough. But when they work you can miss them. I'm attaching a patch that defines a custom variable org-smart-quotes (nil by default), which when

[O] Smart quotes

2012-05-21 Thread Mark E. Shoulson
(I seem to be winding up fixating on non-asciisms for org-mode; strange) "Smart" quotes can be annoying when they aren't smart enough. But when they work you can miss them. I'm attaching a patch that defines a custom variable org-smart-quotes (nil by default),