From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] [ODT] Annotations break paragraphs Date: Wed, 27 Mar 2013 16:48:43 +0100 Message-ID: <87k3osg7xg.fsf@gmail.com> References: <871ub3o6mn.fsf@bzg.ath.cx> <87ip4f9zqa.fsf@bzg.ath.cx> <87r4j35ejb.fsf@bzg.ath.cx> <87ip4fxh1e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKsaq-00015W-3E for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 11:48:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKsao-0000Hb-5A for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 11:48:51 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:55703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKsan-0000GS-VH for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 11:48:50 -0400 Received: by mail-wg0-f43.google.com with SMTP id f12so630171wgh.34 for ; Wed, 27 Mar 2013 08:48:49 -0700 (PDT) In-Reply-To: (Achim Gratz's message of "Tue, 26 Mar 2013 07:28:17 +0100") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Hello, Achim Gratz writes: > Am 25.03.2013 23:15, schrieb Nicolas Goaziou: >>> The proper way to handle this is to introduce a new syntax for >>> inlined annotations and to treat them appropriately in exporters. >>> >>> Since we have both #+begin_src and src_{...} I'd suggest >>> having annotation_{...} or something similar. >> >> I would suggest [annotation:label] or [note:label] a dedicated section >> for contents, much like footnotes (aren't they just special footnotes, >> after all?). That way, they can be inlined while still being able to >> contain paragraphs. > > That only solves this single problem. Provide something like an > (implicit) P-Block that will become a paragraph in each exporter and can > contain other elements like all other blocks. I suggest to follow the > lead of (La)TeX and determine begin and end of such blocks by blank lines. > > So this would be a single P-Block with an annotation inside: > > ----8<---- > There is an annotation by the original author here > #+BEGIN_ANNOTATION > I never meant to break this paragraph. > #+END_ANNOTATION > in the middle of the paragraph. > ---->8---- It wouldn't allow paragraphs within the annotation. Anyway, every back-end has its own interpretation of what a paragraph is. Some back-ends don't even know what a paragraph is. Org cannot fit them all. On the other hand, as the ox-odt patch somehow demonstrates, it is possible for a back-end to ignore Org paragraph definition and rolls its own. It requires some additional code, but I'm open to discussion about implementing tools in ox.el in order to ease the process. In any case, I think we ought to keep raw Org syntax as simple as possible. The current definition of a paragraph is simple enough. Regards, -- Nicolas Goaziou