emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Question to the list about csquotes
@ 2011-07-09  0:04 Nick Dokos
  2011-07-11 13:11 ` [PATCH] org-latex.el: New defcustom `org-export-latex-quotes' to control quotes Bastien
  2011-07-11 13:14 ` Question to the list about csquotes Bastien
  0 siblings, 2 replies; 6+ messages in thread
From: Nick Dokos @ 2011-07-09  0:04 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Frederik, nicholas.dokos


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-12  8:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-09  0:04 Question to the list about csquotes Nick Dokos
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

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).