emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Cc: Frederik <freak.fred@gmail.com>, nicholas.dokos@hp.com
Subject: Question to the list about csquotes
Date: Fri, 08 Jul 2011 20:04:44 -0400	[thread overview]
Message-ID: <6492.1310169884@alphaville.dokosmarshall.org> (raw)


There's been a recent discussion about using csquotes in the latex
exporter[fn:1] and Tom Dye came up with a good idea of how to implement
it. We have been discussing it off list but there is a point that might
benefit from more general airing, so I offered to solicit opinions on
the list.

The question is about the following bit of code in
org-export-latex-quotation-marks:

,----
|   ...
|   (let* ((lang (plist-get org-export-latex-options-plist :language))
| 	 (quote-rpl (if (equal lang "fr")
| 			'(("\\(\\s-\\)\"" "«~")
| 			  ("\\(\\S-\\)\"" "~»")
| 			  ("\\(\\s-\\)'" "`"))
| 		      '(("\\(\\s-\\|[[(]\\)\"" "``")
| 			("\\(\\S-\\)\"" "''")
| 			("\\(\\s-\\|(\\)'" "`")))))
|   ...
`----

The question is what to do about the lang = "fr" case (which I think we
all agree is a hack):

o leave it alone and implement the csquotes mechanism on top of it?

o get rid of it and depend on the general csquotes mechanism to replace it?

The first solution perpetuates the hack but leaves existing org files that
use it unaffected.

The second cleans up the hack but at the cost of some backward inompatibility:
files that use the hack will not get guillemets unless some (one-time)
customizations are done: the LaTeX preamble has to be expanded to pull
in the appropriate packages (babel and csquotes) and a couple of string
variables have to be set to the right values.

So we turn to the collective wisdom of the list: how important is
backward compatibility in this case (i.e. are there lots of files out
there that use the hack)? And if it is important, how would you weigh
the inconvenience of the required customizations against the code
cleanup?  Presumably, french speakers have been the heaviest users of
this, so we'd like to hear from you - but opinions are welcome.

Thanks,
Nick

Footnotes:

[fn:1] http://thread.gmane.org/gmane.emacs.orgmode/43689

             reply	other threads:[~2011-07-09  0:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-09  0:04 Nick Dokos [this message]
2011-07-11 13:11 ` [PATCH] org-latex.el: New defcustom `org-export-latex-quotes' to control quotes Bastien
2011-07-11 14:38   ` Stefan Nobis
2011-07-11 13:14 ` Question to the list about csquotes Bastien
2011-07-12  8:22   ` Frederik
2011-07-12  8:30     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6492.1310169884@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=freak.fred@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).