From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uLapKJ/HJ2H+DAAAgWs5BA (envelope-from ) for ; Thu, 26 Aug 2021 18:55:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KGUXJJ/HJ2GCTAAAB5/wlQ (envelope-from ) for ; Thu, 26 Aug 2021 16:55:59 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 237DC21FD5 for ; Thu, 26 Aug 2021 18:55:59 +0200 (CEST) Received: from localhost ([::1]:59990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJIfV-0008Fo-5p for larch@yhetil.org; Thu, 26 Aug 2021 12:55:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJIdv-0007XQ-1s for emacs-orgmode@gnu.org; Thu, 26 Aug 2021 12:54:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]:40179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJIdo-00029l-1T for emacs-orgmode@gnu.org; Thu, 26 Aug 2021 12:54:18 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A6146240028 for ; Thu, 26 Aug 2021 18:54:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1629996849; bh=AhMG4L4MaeZoEnGYth1qsDaLRVd7AWeORqcK22w2+Vs=; h=From:To:Cc:Subject:Date:From; b=a8debIntxmanJPJ7zQCODws9Ht4MdKseD9B+UJFyuePzlAQ05U/GA8CqZoctW0F1s 66OgDqlt7n3TjzUonvk80EPBaDYB7X5pWJsZHFl7DgtD9Gu+pPhp7HB4SiD4QIlLk+ eM1ZuSkRakDMxlEBGDyfr8qPhnpmc/M4DLERl5vGEhNSK7J1kf5jc+SQLLpJfiMu4I MOfKBz8mYOVrdkam9ckaXXJ9SaI7OkTj/khI/Jp9u+kP5KO1kkDkR33AzH6v6FIKBl hPMvvw0OB+fdQ1fjK23GmRoNeoww6TDhegY2Pj2qhgjEFrcy+lXFj7Ad4eXo2c1y4P veBdK8XP/lMfA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GwTTD3L30z9rxL; Thu, 26 Aug 2021 18:54:08 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Eric S Fraga Subject: Re: how to get multi-line author in ODT export? References: <87bl5k48z1.fsf@ucl.ac.uk> <877dg8473k.fsf@ucl.ac.uk> <87k0k82nuy.fsf@posteo.net> Date: Thu, 26 Aug 2021 16:54:07 +0000 In-Reply-To: <87k0k82nuy.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Thu, 26 Aug 2021 16:05:09 +0000") Message-ID: <87fsuw2llc.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629996959; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PI5zuCQeTGs2fQA+BX0DCJpSvgErkXjEQe6Xh1pBF4s=; b=sLy4QTGiYk/mhSZ5avM59l3IY96eP/u1ItranN+si1wy5Mz07hY2u8atn/eNLfPIwvGGxb x+ztfnpJgFBRG7SsmxIhS6L+WdOdTLQM/OS5QTzTx15rLsXpFMPzL4sF1IfOv9BTHnaH0e pGCpvEp06xlB/R5j8iRCBKQC4wcoZLnClKQcz5M3FUI4dHbFMgzuhz4DWnFoJscFKmTfKu bnRwBuyMkLH5n7YHlz0ByotsxDIvlse35hpR4H38AwgKtwM92uXpuj0vBR18KdOSFO1eNo AAhSde08kTDQb5QUWDvCqZIwXSArR8zquMBrQ0p2f9pdO4wfTAn7IyWrRwURuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629996959; a=rsa-sha256; cv=none; b=je9RySZN4fRHn7oPkb0ERR5kpnFQ22RiPBgsVP+imFwGboIQkxRdTw46BAcmeqq6/MvtAw NaZTXU5j7S49J7V3PgQeBaYoeeZ0YUimErTUQgs+q0Yls1L0Er7mI4jOwJugLvZzyItg9T ZHxxczUktNfNd6TdZb4lBGX0JEWOadKAZ0w1xeOM64WLsw7IlpHCjzviAboaqFbCT8zITE e1M8xFuAdeiTdgiSO6PCo9V/c8xX0D3tObnf2C78MvpEBfnqrImIlElvIZtzeSVABhivJL 8hfXeTLMcXH7b0W1O/FS7sDDOUUKnEGz55BN9BTouB1BnuVkgBbKTjs9D+aOtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=a8debInt; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=a8debInt; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 237DC21FD5 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1lh1rn4ipLgA Hi again, Another simpler approach, with a filter: #+TITLE: The kessel run in 12 parsecs #+AUTHOR: Han Solo !!! Chewbacca !!! Lando Calrissian #+BIND: org-export-filter-plain-text-functions (author-lb-filter) #+begin_src emacs-lisp :exports results :results none (defun author-lb-filter (text backend info) (cond ((org-export-derived-backend-p backend 'odt) (replace-regexp-in-string "!!!" "\n" text)) ((org-export-derived-backend-p backend 'latex) (replace-regexp-in-string "!!!" "\\\\\\\\" text)))) #+end_src Content... Best regards, Juan Manuel Juan Manuel Mac=C3=ADas writes: > Hi Eric, > > I think the problem is in this two lines of `org-odt-template', that > creates the meta.xml file inside the odt file: > > (format "%s\n" author) > (format "%s\n" author) > > Perhaps, modifying them like this: > > (format "\n" (replace-regexp-in-st= ring "\\\\\\\\" "\n" author)) > (format "\n" (= replace-regexp-in-string "\\\\\\\\" "\n" author)) > > We could do this in our documents: > > #+AUTHOR: Han Solo \\ Chewbacca > > (little tested) > > Best regards, > > Juan Manuel > > Eric S Fraga writes: > >> So, as usual, I answer my own question, sort of. >> >> The problem is that org exports the author text enclosed within a >> special directives, specifically: >> >> (format "%s" author)) >> >> New line directives are not allowed within this declaration, it >> seems. Removing (manually) the initial-creator directive then works. >> >> So, my question would be: is this text:initial-creator tagging >> necessary? If not, can we remove it? The OpenDocument schema is vague >> about whether this is necessary. If we cannot remove it, i.e if >> initial-creator is required in the document, could it be put in >> separately (as a meta:initial-creator tag) so that the author field can >> be more general? >> >> I am *not* an ODT expert of any sort. But it is my route to Word >> documents when the need arises (which is luckily seldom). >> >> Anyway, no panic: I can simply manually edit the odt file just before >> the final processing... >> >> Thank you, >> eric > >