From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [RFC] Introduce ox-i18n.el Date: Tue, 02 Jul 2013 23:42:06 +0530 Message-ID: <8738rwn85l.fsf@gmail.com> References: <87fvw1ovtm.fsf@gmail.com> <87li5p1n7i.fsf@gmail.com> <871u7hq8cj.fsf@gmail.com> <87ip0thqzi.fsf@pank.eu> <87sizxorhr.fsf@gmail.com> <877gh8j1rz.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu52L-0002mh-VL for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 14:10:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uu52G-0005Lm-D4 for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 14:10:45 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:42892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu52F-0005LS-Te for emacs-orgmode@gnu.org; Tue, 02 Jul 2013 14:10:40 -0400 Received: by mail-pa0-f52.google.com with SMTP id kq13so6537247pab.25 for ; Tue, 02 Jul 2013 11:10:39 -0700 (PDT) In-Reply-To: <877gh8j1rz.fsf@pank.eu> (rasmus@gmx.us's message of "Tue, 02 Jul 2013 19:43:28 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Nicolas Goaziou writes: > >> Even though it is a defconst, you can still change it. You are not >> forced to anything. But you're on your own. > > I agree, but it being a defconst, it comes with the message > > "This declares that neither programs nor users should ever change > the value." > >> By the way, it is a defconst because of the keys, which shouldn't be >> altered, not the values.=20 > > If that's really a the concern then why not write a function to alter > values in a safe manner? > > Alternatively, it could stay defconst, and there could be a > org-export-smart-quotes-alist-user, defaulting to nil but taking > precedence over its non-user counterpart. If people specify a wrong > language code it'll just be ignored. Snippet below is a good starting point, for customizability you are asking for. (defcustom ox-sq-alist nil "" :type '(alist :key-type string :value-type (alist :key-type symbol :options (ODQ CDQ OSQ CSQ) :value-type (plist :options (:utf-8 :html :latex :texinfo))))) > =E2=80=93Rasmus