emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Smart Quotes Exporting


From: Mark E. Shoulson
Subject: Re: [O] Smart Quotes Exporting
Date: Sat, 02 Jun 2012 23:16:00 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

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 appropriate locations, made customs, docstrings and types fixed, etc, etc.

It supports onscreen display of "smart" quotes (when enabled); I have the quotes displayed in org-document-info face so they are slightly distinct, to make it clearer that they are "altered" from what they are in the plain text. This may or may not be a popular (or good) idea. I have also built it into the new export engine in org-e-latex and org-e-html as proofs of concept. I'm not positive the latex one will work properly for German, though; there might need to be something enabled in LaTeX for it to format ,, into „.

It should probably be set not to smartify quotes onscreen in comments; I haven't done that yet.

Comments welcome; I hope I didn't complicate matters in the export engines too much.

~mark

Attachment: 0001-Add-smart-quotes-for-onscreen-display-and-for-latex-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]