From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AFSjIQEFWmN/gwAAbAwnHQ (envelope-from ) for ; Thu, 27 Oct 2022 06:11:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yMRvIQEFWmMcrgAAauVa8A (envelope-from ) for ; Thu, 27 Oct 2022 06:11:45 +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 4B93F37A2 for ; Thu, 27 Oct 2022 06:11:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onuDv-0005oN-Up; Thu, 27 Oct 2022 00:10:33 -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 1onuDp-0005Wp-HB for emacs-orgmode@gnu.org; Thu, 27 Oct 2022 00:10:25 -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 1onuDk-0004OF-37 for emacs-orgmode@gnu.org; Thu, 27 Oct 2022 00:10:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1ED43240101 for ; Thu, 27 Oct 2022 06:10:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666843816; bh=wc/TP6xcQRdmiJMHnpF+GetdpY+9Pp7xLnGoOroi8e4=; h=From:To:Cc:Subject:Date:From; b=H1WDOP7+fWiq2eduvC1B8sPsK6zbnrCGoH1A89uF/CgyQS7/cJlmvPuksVqgH6oDi Bej1J8YVblXAOxCLFIg2v6Vr45etrPjxy/ABHtIftb56LDFJryMIM6F666BVqAmNoE vSBnuFFkefOUqGY7Mijsq07E93ZnioArOkO/dymaGR76F4ufSQ0lUuEs1I5JjjZ5lR gDhC0oEM6xfYmxz2rvo8uSRgFNQrGisvNJ/28NkAgdWNnhFOW+QtV/Wd1uWK/KTYff hATeIX7lbmUpDbu4UHxjPYd/1J8fC/VSPWY8GtU74teqebciDJJGHhkJi7b/54XTDX /dAs1ZMPP39ew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MyXJk52GRz6tpy; Thu, 27 Oct 2022 06:10:14 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?Andr=C3=A1s?= Simonyi Cc: emacs-orgmode list Subject: Re: [PATCH][oc-csl] Improve reference parsing In-Reply-To: References: Date: Thu, 27 Oct 2022 04:10:57 +0000 Message-ID: <87r0ytoqi6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666843905; 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=wAwYey9phHsyUGj5tA5wDGG6AopQPJd+2du02fgFtCc=; b=aapxa4Wtr8rhZ8xlVu+OsAK5db/k2a3zz6iYbFaJuU6epg6lfSWvOjdMabTKI2VhELdn0D rpC8DzPbIlyzhKNjjmQjwa3N2F4FMxtA4J81SXiMoNpyGpB3i1I5Ac6QioUBUeOGDVs6R3 f52/Z7oGJI3z7IjFKBPWJk8iYmUDr2OPf3Cx/R2JnYYyTc0yIfgBNmAmeGmYWC5z1Bev+X aPl5iAq4ig6b81BgQImmOWJF0qM8yOVqNvdC3nxb02jQHsUYGlhSGPDWVWfZTikGaRtI9f Hg4IoTfOnMrKYXDx1yUVfkK890Uq2ckHr1nmiDqz1Nj9y/TOS/hdyddUAKj4bQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666843905; a=rsa-sha256; cv=none; b=HpdqAgMmJKQ5mUM8INeJT+32dLMBqii2a3rgVVcw7LQ/VOmvhhMkbKB/SQ3clnMgaIUfPV TM3SYyyxt+nQJLpcHFaf5y/WOeoO7QPSjZ1SIl+m5rO07Av5GJO+lub+TlBLoP/0jm4qbJ A17jHTYGmGMAnEW++ta7hMt8mdHP41I9L/ANwGP91OcidN2/aWg98cvU08UW9APMPtTzMN PSNFsH2YUHe7NqMMoyFh5XJeR2bdowOKaD6ujZG5CxeXv05fImJbjXtUqOE66PWDsT0t6+ 2cj1Ay0FKdZ0Clj8RaeYfXGlQOB34Sp0oG6PQ5tdbJnyz3E43OzdMcfZBRc+Lg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=H1WDOP7+; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -3.92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=H1WDOP7+; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 4B93F37A2 X-Spam-Score: -3.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: D/qrOF36NgJ7 Andr=C3=A1s Simonyi writes: > the attached patch improves the parsing and exporting of cite > prefixes, suffixes and locators -- the most noticeable change is > probably the support for formatted locators and of underlining in > general. Comments are welcome. Thanks! > +(defconst org-cite-csl--export-backend > + (org-export-create-backend > + :transcoders > + '((plain-text . (lambda (text _info) text)) > + (bold . (lambda (_bold contents _info) (concat "" contents "= "))) > + (italic . (lambda (_italic contents _info) (concat "" contents "= "))) > + (underline . (lambda (_underline contents _info) > + (concat "" contents ""))))) > + "Custom backend for exporting citation affixes and locators.") This will render e.g. strike-through empty. Note that citation references may contain the following Org markup objects: '(bold code entity italic latex-fragment strike-through subscript superscript underline verbatim) And we may add more, as discussed in https://orgmode.org/list/87k04xhhw3.fsf@localhost --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at