From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +FTHMSLWw16DSQAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 12:50:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CMeULSLWw15OdwAA1q6Kng (envelope-from ) for ; Tue, 19 May 2020 12:50:42 +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 2571994017B for ; Tue, 19 May 2020 12:50:42 +0000 (UTC) Received: from localhost ([::1]:34170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb1hf-00061M-E1 for larch@yhetil.org; Tue, 19 May 2020 08:50:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb1hD-00060q-QH for emacs-orgmode@gnu.org; Tue, 19 May 2020 08:50:11 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:38064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb1hC-00083x-Ik for emacs-orgmode@gnu.org; Tue, 19 May 2020 08:50:11 -0400 Received: by mail-pj1-x102b.google.com with SMTP id t40so1359935pjb.3 for ; Tue, 19 May 2020 05:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=OTXYIWrClqPsMtRWFaHObGkZPkqJFNoGgOemwMes6pE=; b=L098s37MwNFJGXNSfpdBXW7XMHvaKoywBhft/e6PiALSrbMHAK/MTSxoMOz7+XHYzM Ktmo0MRObMEQiSonZffR8Y332kZW2TggE02FW47POSURN8WvAC/U7dDhRRvkEzw+CV3F +n7gPtovw4reKqb5UlAWtvacaFPmdyOMX9DXbAfxeK3shbatgi//318jDZejN7I2y0MR 01/p+22ekjPVT8bdYR2nlNo0DBgHnJKtP3MOxUUvzQlm1YEStAn+8UtXfL/Y8oYdcyTe u0T/9xsCHU3EzRhsZRhgf2bgk89Ke/acMbcYEUxVmPjZbqtJ7ZEtbLWMWEWC7A3vydVK AETw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=OTXYIWrClqPsMtRWFaHObGkZPkqJFNoGgOemwMes6pE=; b=cINiM2wxSb0YZkyk6TfuR7VRm+YVMcQ+MF/1OZKICZuSkT7HA3dw+viseGC/9uzokH 0Uoth+Gx4w34+2QM/uvf/xB6+h347vt6IAImoiJXMvtHGDRQIkcdmUnLIOuoPM+KVgLL nbXjSLt3pE14XG9ENRPHI/5OYfPKiFhHUXK950f6BiSIaE7SW0WpvB8+mDV+Sz5JnAnL mkRAzsgdkJvM2tYv3odhY2LlZb96+BoyxFd2LXmIgxMTC+SWHp0DBqR9+8Aq85mzZ+1X yVR++3vzasoSePNyBR96QJzvKGLKp7hMGfqnF1p4AI1E1FUIds9qLavuOPSlo9AePJkY K9ZA== X-Gm-Message-State: AOAM5303xB3kvdobPAq8PGCtm69Csvs1uKmKLRa8KB0wj6JsvSGD85qg 7KWd9743wj4+VuiabTa9uy1mJlhv X-Google-Smtp-Source: ABdhPJzYEcOOMTQsXTfsfdZ4oqVXZa3rM+LUhmnRQZ8Dbc5TKwLOXoUTnrGvrP9MUINtwCGKiPiuww== X-Received: by 2002:a17:90a:5287:: with SMTP id w7mr5140104pjh.66.1589892608920; Tue, 19 May 2020 05:50:08 -0700 (PDT) Received: from tranquillity (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id s206sm1297400pfc.31.2020.05.19.05.50.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2020 05:50:08 -0700 (PDT) Date: Tue, 19 May 2020 20:50:04 +0800 From: Timothy To: Nicolas Goaziou Message-ID: In-Reply-To: <87imgsjmsf.fsf@nicolasgoaziou.fr> References: <87imgsjmsf.fsf@nicolasgoaziou.fr> Subject: Re: (Feature Request) add more entry points to configure some export functionality X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5ec3d5fc_3dfb82c2_8ce" Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x102b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: "=?utf-8?Q?emacs-orgmode=40gnu.org?=" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=L098s37M; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: 2.00 X-TUID: vuY5l2lzargU --5ec3d5fc_3dfb82c2_8ce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Nicolas, > You asked for it, though, using =60pp'. I guess I did, didn't I =F0=9F=98=85 > is just a string, with properties attached. If you simply return =60tex= t', you will only see =22string=22 Good to know, thanks :) >> I still feel that it would be nicer to have the body of this cl-case (= from org-latex-item) be a variable > Maybe. OTOH, Org has already so many variables=E2=80=A6 Indeed. Though my 2c on this sort of thing that the most important factor= is consistency. IMO if org-html-checkbox-types exists, then an equivalen= t should also exist for other primary/default export backends. > I don't know HTML enough to help you. You may want to look into headlin= e and section filters. Looks like this can do it for me=21 I still prefer doing this at-generati= on, but I'll take this too. Seems to be working :) https://tecosaur.github.io/emacs-config/config.htm= l=23header-anchors Timothy On May 19 2020, at 5:29 pm, Nicolas Goaziou wr= ote: > Timothy writes: > Once again, thanks for taking the time to respond. I = can assure you > that it's much appreciated :) You're welcome. > By item = filter, I assume you are referring to org-export-filter-item-functions. T= hat looks quite promising. I just tried a minimal function to testit > (d= efun tec/org-export-latex-fancy-item-checkboxes (text backend info) > (pp= text) > =22=22) > However, I must admit I find myself somewhat overwhelm= ed by the > output: You asked for it, though, using =60pp'. =23(=22string= =22 X Y (properties)) is just a string, with properties attached. If you = simply return =60text', you will only see =22string=22 > I've tried apply= ing a simple regex replace, which produces > a satisfactory output though= , so perhaps I'll just ignore all the > 'extra stuff' above. Exactly. The= =22extra stuff=22 is there for more advanced uses, when you need informa= tion about the surrounding of the string you are going to change. > * > I= still feel that it would be nicer to have the body of this cl-case (from= org-latex-item) be a variable, but I'm quite happy to have a working sol= ution=21 > (checkbox (cl-case (org-element-property :checkbox item) > (on= =22=24=5C=5Cboxtimes=24=22) > (off =22=24=5C=5Csquare=24=22) > (trans =22= =24=5C=5Cboxminus=24=22))) Maybe. OTOH, Org has already so many variables= =E2=80=A6 > Lastly, might you be able to shed any light on the feasibilit= y of my desire to adjust the generation of HTML headers=3F I'm specifical= ly looking to insert an element like this within the ... block:m > aria-h= idden=3D=22true=22 href=3D=22=23theHeaderID=22>(Link Icon) I don't know H= TML enough to help you. You may want to look into headline and section fi= lters. --5ec3d5fc_3dfb82c2_8ce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Nicolas,

> You asked for it, thou= gh, using =60pp'.
I guess I did, didn't I =F0=9F=98=85

> is just a string, with properties attached. If you s= imply return =60text', you will only see =22string=22
=
Good to know, thanks :)<= /div>
>> I still feel that it would be ni= cer to have the body of this cl-case (from org-latex-item) be a variable<= /font>
> Maybe. OTOH, Org has alrea= dy so many variables=E2=80=A6
Indeed. Though my 2= c on this sort of thing that the most important factor is consistency. IM= O if org-html-checkbox-types exists, then an equivalent should also exist= for other primary/default export backends.

> I don't know HTML enough to help you. You may want to look into hea= dline and section filters.
Looks like this can do= it for me=21 I still prefer doing this at-generation, but I'll take this= too.


Ti= mothy
<= /div>
On May 19 2020, at 5:29 pm, Nicolas Goaziou = <mail=40nicolasgoaziou.fr> wrote:
Timothy wri= tes: > Once again, thanks for taking the time to respond. I can assure= you > that it's much appreciated :) You're welcome. > By item filt= er, I assume you are referring to org-export-filter-item-functions. That = looks quite promising. I just tried a minimal function to testit > (de= fun tec/org-export-latex-fancy-item-checkboxes (text backend info) > (= pp text) > =22=22) > However, I must admit I find myself somewhat o= verwhelmed by the > output: You asked for it, though, using =60pp'. =23= (=22string=22 X Y (properties)) is just a string, with properties attache= d. If you simply return =60text', you will only see =22string=22 > I'v= e tried applying a simple regex replace, which produces > a satisfacto= ry output though, so perhaps I'll just ignore all the > 'extra stuff' = above. Exactly. The =22extra stuff=22 is there for more advanced uses, wh= en you need information about the surrounding of the string you are going= to change. > * > I still feel that it would be nicer to have the b= ody of this cl-case (from org-latex-item) be a variable, but I'm quite ha= ppy to have a working solution=21 > (checkbox (cl-case (org-element-pr= operty :checkbox item) > (on =22=24=5C=5Cboxtimes=24=22) > (off =22= =24=5C=5Csquare=24=22) > (trans =22=24=5C=5Cboxminus=24=22))) Maybe. O= TOH, Org has already so many variables=E2=80=A6 > Lastly, might you be= able to shed any light on the feasibility of my desire to adjust the gen= eration of HTML headers=3F I'm specifically looking to insert an element = like this within the ... block:m > aria-hidden=3D=22true=22 href=3D= =22=23theHeaderID=22>(Link Icon) I don't know HTML enough to = help you. You may want to look into headline and section filters.
--5ec3d5fc_3dfb82c2_8ce--