From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eOfXLOWDv2Tn1gAASxT56A (envelope-from ) for ; Tue, 25 Jul 2023 10:12:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +FKSLOWDv2RGMgEAauVa8A (envelope-from ) for ; Tue, 25 Jul 2023 10:12:21 +0200 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 4F99A4D7D2 for ; Tue, 25 Jul 2023 10:12:21 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aYYL2Ff1; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690272741; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SGKTwsxIT1E4GKOEr5dbihZjtwjXsaa1sZGKZKke9/E=; b=k6OJAt9vwHVPmdxIjr0OxHPqvZev0uvqSTct1LQEOjcgN77pDyPkvKSGqROzr3gXvqMGf5 FPvQX1kNeAU+NnqENc/TdY038HL2nZxhxMw/sO0QlkxT+/VmzpOWpaeKSOAZ1SR1sVYvEF WGNViPxAGnCS/Aq5WiV5otvU5Uj9rbqSL45NLhGiB/qMOAVftmIgv+5LHPKS7tmA6hGF14 GcNKN2+TXlhXMwNOWFE0GaJexNOw1nlc+AAz70Sf/XWqXmjKXNvdT2Et6Y9VfaGQ2201aJ QjvmVfRCI7oJj1mcRa11bAmtSr/yM/E/AhVEbTgT9YErs3OXVOGRX4ruk+tMBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690272741; a=rsa-sha256; cv=none; b=DO4KNvLGt6WVIMQS0THV5gqJ1vfPTua97pzTDxHXwL8h/HwNMZ5L0F/lXb/5U4OWltXG/M 3A5BpPyKLlb95VG92nhSwL6eOrYt1Q41/aNYH3n9J5vQ+N3YlAGqmFM4dbVmD+Wt5lNY+B xh/yVVGwMfC5ApZ25i+/0N7AJaluV6lO1X7GDzk1oOpUqilZGYPJPxY4/t4KtLbk25p2yO Qt9wHgn2QMocK2bLE/r8oqjS4fIxtzHJ63qnLt+9DGqtoxIQ8OmfCrMe/8bEDwTyegHeQO OsPOV19ii6XAxLgMUnOh1hhqrRDhYCpR3jWdSwjuF/4bxj0DslrNeNMuqTkBgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aYYL2Ff1; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOD8N-0008BV-Lx; Tue, 25 Jul 2023 04:11:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOD8K-0008B5-Ec for emacs-orgmode@gnu.org; Tue, 25 Jul 2023 04:11:04 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOD8H-0007CU-4h for emacs-orgmode@gnu.org; Tue, 25 Jul 2023 04:11:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BF774240101 for ; Tue, 25 Jul 2023 10:10:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690272658; bh=CJBjZPCL//+OrKFPEd5F0EpGVovhciv2dK+nRnFNevA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=aYYL2Ff11FyOh+RAZxCZFs/QWIA7zGEtMP2gUw/Dbo+9ngqZ0y/P8dF1+AFgxG79O hs6SjnnnnsgZX8G+evy/PbWf0kugsdvPhSV1bSchzXgEhbzSZwsQMlet2ualzR5JWN xMHc4BgMeY12GLwm43SnanNJHcUHYio6UpaeIcO/9EHBQU7WMoYOZ088uwDjhfd7vX K+bDkPHxUsqW0TipobloUlTDxMhYjx5oyzsYZQdVDwC4avLkz0LNG+6aEsEATmNFJU 2LdjCB/oJqaXplTBX6EQ4iW7olRV6h3mbjQdUJ7zFagzMhiXKYzH2MwlKFTIxxjAUF csJcOyu69bVew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R98qP4G4Dz6tvy; Tue, 25 Jul 2023 10:10:57 +0200 (CEST) From: Ihor Radchenko To: Britt Anderson Cc: emacs-orgmode@gnu.org Subject: Re: ox-publish index allows alternative formats? In-Reply-To: <87mszlctmn.fsf@b3l.xyz> References: <87mszlctmn.fsf@b3l.xyz> Date: Tue, 25 Jul 2023 08:11:11 +0000 Message-ID: <878rb4s95s.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: 4F99A4D7D2 X-Migadu-Scanner: mx1.migadu.com X-TUID: skyjIqbqob9f Britt Anderson writes: > Question: > > Could ~:makeindex~ (in the ~org-publish-project-alist~) be expanded to > accept a user provided function for formatting the output differently? Yes. > It seems like it would be nice to allow users to provide their own > formatting functions to ~org-publish-index-generate-theindex~. Similar > to the way that ~:sitemap-function~ allows a user controlled sitemap. > ... > My question is whether this is something that is worth doing, and if it > is worth doing how hard should it be for a novice to attempt, and does > anyone have any pointers for how to tackle it? You can introduce :makeindex-function property that will override `org-publish-index-generate-theindex', or at least its part after ";; Write "theindex.inc" in DIRECTORY.". Alternatively (or additionally), you can introduce :makeindex-format-entry keyword that will hold function used to format an item in the index. Should not be too hard. You can follow the existing examples with sitemap generation code. And feel free to ask anything, if you have difficulties along the way. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at