From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Multiple (natural) languages in a single org-file Date: Wed, 11 Apr 2012 01:23:34 -0400 Message-ID: <3699.1334121814@alphaville> References: <87linka45j.fsf@gmail.com> <86lim35ako.fsf@iro.umontreal.ca> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHq1t-0003ss-Le for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 01:23:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHq1r-0002Je-JF for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 01:23:41 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:34559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHq1r-0002JH-CT for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 01:23:39 -0400 In-Reply-To: Message from pinard@iro.umontreal.ca (=?us-ascii?Q?=3D=3Futf-?= =?us-ascii?Q?8=3FQ=3FFran=3DC3=3DA7ois=3F=3D?= Pinard) of "Tue\, 10 Apr 2012 21\:19\:51 EDT." <86lim35ako.fsf@iro.umontreal.ca> 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: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FFran=3DC3=3DA7?= =?us-ascii?Q?ois=3F=3D?= Pinard Cc: emacs-orgmode@gnu.org Fran=C3=A7ois Pinard wrote: > Nicolas Goaziou writes: >=20 > > Just use two different drawer names, and select which one to actually > > export through i.e. #+OPTIONS: d:("EN"). No need for extra syntax. >=20 > Well, the manual says, in node Export options: >=20 > d: turn on/off inclusion of drawers >=20 > So one would never guess from the manual that d: may accept drawer > names. If what Nicolas suggests is real, the documentation should be > adjusted. I do not find any other explanation in the manual about > values for the d: option. >=20 Two paragraphs below the d: line you found, the manual says ,---- | The default values for these and many other options are given by a | set of variables. For a list of such variables, the corresponding | OPTIONS keys and also the publishing keys (*note Project alist::), see | the constant `org-export-plist-vars'. `---- Examining the value of org-export-plist-vars shows ,---- | ... | (:drawers "d" org-export-with-drawers) | ... `---- Also, in section 13.1.5, (info "(org) Options for the HTML/LaTeX exporters"), it says ,---- | The table below lists these properties along with | the variable they belong to. See the documentation string for the | respective variable for details. |=20 | ... | `:drawers' `org-export-with-drawers' | ... `---- and examining the doc of org-export-with-drawers (with C-h v) we find: ,---- | Non-nil means export with drawers like the property drawer. | When t, all drawers are exported. This may also be a list of | drawer names to export. `---- None of this is an argument for leaving the manual as is: if you had a problem finding the information, then others will too, so the manual should be improved. But the information is there, and moreover, learning how to find it in this instance has the huge advantage of teaching one how to find it for all the other options as well. The question as always is how far to go in documenting all the options: it would be good to document them all (as Bastien would say: "patches are welcome"), but is it better to learn searching tricks or to submit patches to improve the doc? Each one of us would probably answer that question differently (we have different "breaking points"). So you might prepare a doc patch (please do!) - I might go on a searching expedition and find things you didn't [fn:1]. The first one benefits everybody, the second one benefits mainly me, but sometimes I can find a teaching moment and tell other people how to do something: which is why I spent a half-hour writing this :-) [fn:2] I think both of these methods (and surely there are other methods as well) have some value - and some drawbacks as well, but I'll leave that for another time.=20 Nick Footnotes: [fn:1] If I think it's easier, I'll search in the sources, rather than the manual, but that's just me :-) I'm not advocating this as a general solution of course - otoh, once you have a basic grasp of lisp, it's a great way to learn how to read programs - real-life, non-trivial programs at that. [fn:2] For me, the puzzle aspects are more interesting: I'm not a "power-user" of org, and I use maybe 1/10 of its capabilities. But when I'm climbing walls and I need a distraction, a good juicy question on org-mode is just what the doctor ordered...