From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Viren Subject: Re: Overriding org-html-headline or other export functions? Date: Mon, 29 May 2017 16:34:43 -0400 Message-ID: <86bmqb1jx8.fsf@bnl.gov> References: <8637bn3l9o.fsf@bnl.gov> <86poer1q4t.fsf@bnl.gov> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFRNI-0004xX-M4 for emacs-orgmode@gnu.org; Mon, 29 May 2017 16:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFRNF-00010I-Ik for emacs-orgmode@gnu.org; Mon, 29 May 2017 16:34:48 -0400 Received: from smtpgw.bnl.gov ([2620:10a:0:3::30]:4252 helo=smtpout2.bnl.gov) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFRNF-0000zs-EM for emacs-orgmode@gnu.org; Mon, 29 May 2017 16:34:45 -0400 In-Reply-To: <86poer1q4t.fsf@bnl.gov> (Brett Viren's message of "Mon, 29 May 2017 14:20:34 -0400") 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" To: "Charles C. Berry" Cc: "emacs-orgmode@gnu.org" Brett Viren writes: > Or, maybe you suggest I do direct "surgery" on the TEXT argument that > gets passed in to the filter and insert the "..." that way? I guess it > could work to find the end of the "" opening tag and then insert > my "..." part. I'll try this approach. Okay, this works but relies on searching through the HTML to find the end of "" tag. This feels like it will be error prone but so far it seems to work when processing my manual. In case it might help others, here is my filter: https://github.com/WireCell/wire-cell-docs/blob/master/manuals/publish.el#L7 My Elisp is bad, so maybe this is not done well.... And, for completeness there is now also the export-as-html, export-to-html and publish-to-html functions copied from ox-html and tweaked for this custom backend. Thanks for the nudges and help! -Brett.