From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22330 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Convert \index{true@`true`} to \index{true@\texttt{true}} ? Date: Thu, 21 Mar 2019 10:22:00 -0700 Message-ID: References: <2d229904-88ac-452d-90da-d27d54528779@googlegroups.com> <2e883e9d-f7c8-f7b7-952d-41945ef038aa@gmail.com> <2ac8ec4b-51f8-4121-89a5-06ebc6090ffa@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="13570"; mail-complaints-to="usenet@blaine.gmane.org" To: BPJ , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBRMQZ7SAKGQEULWO5XQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Mar 21 18:22:16 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yw1-f59.google.com ([209.85.161.59]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1h71OS-0003ND-4M for gtp-pandoc-discuss@m.gmane.org; Thu, 21 Mar 2019 18:22:16 +0100 Original-Received: by mail-yw1-f59.google.com with SMTP id i203sf8622691ywa.5 for ; Thu, 21 Mar 2019 10:22:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1553188934; cv=pass; d=google.com; s=arc-20160816; b=1JvPr1EcWQeLydzeW8Sqe25+MPN3hv/NYwW/hPEL01x/sE9Hgi2RHjuD3SzPV9PynM 1Kqh4iI9uPIoRRNzi4x0j3m/3lTRdTcCncx1EvQ2KSl0mD581EoTtgGHMMSvMq0CWyUV MhWSPxvpj3QTD7otIn693IqF1n48RAp6PQr8JBZ5uRoSKDOWvr75kUqXfDj/KLCbOI5Z lY4pI/3bx7AS3Vh11z5l9X4oauLva0o6vxss46PpG8CVD1+EwKt0VyFvHjzg0Z7QQqax EElRuI5sh+fx/QuVA1DuBZqGpt2hz4P4cm+kE9mFyRULYRet5WalDrKSZi1GPYfC8hmE DccQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=CoJuybttrK6WzS0YfFO2jIPADeTYOd58sDqFo1Nt//E=; b=Dqz/ELQ3waJUgKq0G+whCV5OGycuxQSnR8riBgatBX9lvlqKIz3wqW2bvzAviouGUq 1YoyDgCjPxHaAs19ETQGdMcKgZuF9g//nTRcSjgmfJu4CKczS/D4hBxihTDIeU1rsFAb /G3MEBUmVwbJXiWSX5h0EN/LAuFavJzk1/JuV+1IB1UOzb4GbRBkCk/tdYZM7cp9OrYq af/Uw1BzQ36otZ1rVVnwKSsd/lsf1hL2NUls2XZTmeasUpCPAh0ZpIakAfnzJ0SxyUYv dnspbZ0TL/O8JvYaiYLwBOiqIowTkzLURfDIGcfdFiVos8RoA3TiHivCNV/vG4o9TBRs f7/A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=iNYQkHBR; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=CoJuybttrK6WzS0YfFO2jIPADeTYOd58sDqFo1Nt//E=; b=G3SKjxL/g3de9Rw7Gjee6gzmi5N8XevTmcRrynx88u1BZ5NtUem0+eGABOIreJYsx5 WW6wubOiV0hrvz3VMZbiRpm/NKvjtWjksmbfs/4fdnTp57Fza20Fn5V3M/kunq/ybrPU F131JNnlUpcOVzT4siwN72jX8vttsVTmo185+If/SdS+cLNvklHuJUpmjwHXVirfeDUC PgQAHqbEtW/wuecIVlQjs5eLom/P9QEkG3ybWhUhDuqT8Szfy0Egmr4RI41Bspq08MiU XWAbyTThb4MxHbjMQUbpBV9vSLo8+SvBFbYCvHwf22kaYC4zDFGmEKXfxAvwgy4PALP3 8F6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=CoJuybttrK6WzS0YfFO2jIPADeTYOd58sDqFo1Nt//E=; b=Nzo0i+DHdzfxyNniFuQTOE+xEL5h0B5ArOZZHr5CyCJFbjFhrlW2FXpvdkvEcAkwL2 BZbFT5kPwF+y0PuOHt8tYZss8hYNPy7TKF+Ytfm+pnq6jqVhTSvkwaz6FlPIV2xdp3My DQc6JMasa9jhHYI9C2MYBi0iZkhpaBKqi7pqCfDucBtZ78ZfPtXo3659EWyCHgYXYNe6 exqgmy9XFJsfQOUTtcbJNR3y8MbFrROfQ1hw4Nw/uo6dvX6iGCACeWEqI8BHZHi12c5v MBdRklZqEPRjF1v+mrfDNEbmSaW1mOHm3YuyWhidaI38PzNC3mr9jeqpqj3O0JH8INZI Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAV1CkqFPONBNDe+GbWbuM96haE6Su4qFTbvVNehzTjt1Je2hR9t ZXCewQ3xkvdJeqhM+WM+gzE= X-Google-Smtp-Source: APXvYqyu12wOJk3Tn9nB9iwKvQ8BkBq0VqVc0UztqYk+UKl6eQ/zExzqkuQvBovTUzyWswCeKgCh3Q== X-Received: by 2002:a81:550b:: with SMTP id j11mr4193830ywb.463.1553188934775; Thu, 21 Mar 2019 10:22:14 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:3d0e:: with SMTP id k14ls2378621ywa.4.gmail; Thu, 21 Mar 2019 10:22:13 -0700 (PDT) X-Received: by 2002:a0d:dd4c:: with SMTP id g73mr4305269ywe.145.1553188933656; Thu, 21 Mar 2019 10:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553188933; cv=none; d=google.com; s=arc-20160816; b=Q9xms6/yr7OT/DSmugd/nFHv4HEc5fT6OLWMQq7dg3y2q0zEL3JdnpQekA0YulFAr8 wyxO1QcoGdKFEAUognOPN5pdJdIhHY4PjWEMJ/wSVZS3y1fhQmAVoAyNH6FEUt+rvhSE Q/tRLnRL1v/6YpxwrlpkhdSyJwKuPfio276xgiOgeAVapwcrACGs28Vv4dsaiq2RtZjx laCvPykl1Wn+A4axcJzZIHcugqEwOfZTZXe1T1ma1wR7HGLJpzIQt7PZAM3zt7Fmw47m EYXTzaGP2kb9jCUuTm12/qLt2m73bmILr3zsaxUj2Cqqia61WUvPu1vynt71UkrCROlK Hbvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=Dg/5ksijo4zHiihVWZoZEh4unT62hhqUMp6GiU3PLXg=; b=SpXCYJzOLcGnJQqBPDJ6olqRDBfGaXuJZmowdhSXDL8QfQmhSmH/QdpypAbcgGA94c 6r8XOiLw/DYdl401oc0THO4wB1ToE68QgbXUuaVK4L2VVmMVb+3qRDXRHMmaoUs536Ya A13VKc5vPNEu8khsBd4ARLvoU87WjF9w0D4t1PkplquGZ1xtjGylvtKpCvkLI6ibOG/E feLiNZbJ9343sgntObAIzn3L9Hhn2QBYsNQ5UR4AhPN6A2H9iG902Bwe8Zbdc9czZouH Rap7vUF9n1ac+zQlBURtTHmwSmh2zbF2ZegNktFYOelsJBN0Xh9me7uMUivuitCYJAvF TyjQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=iNYQkHBR; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com. [2607:f8b0:4864:20::429]) by gmr-mx.google.com with ESMTPS id r128si534403ywd.0.2019.03.21.10.22.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 10:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) client-ip=2607:f8b0:4864:20::429; Original-Received: by mail-pf1-x429.google.com with SMTP id p10so4735213pff.3 for ; Thu, 21 Mar 2019 10:22:13 -0700 (PDT) X-Received: by 2002:a62:54c5:: with SMTP id i188mr4347758pfb.188.1553188933194; Thu, 21 Mar 2019 10:22:13 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id k8sm5807312pgq.37.2019.03.21.10.22.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 10:22:11 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id E734BA177; Thu, 21 Mar 2019 13:22:00 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=iNYQkHBR; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:22330 Archived-At: > The problem with using a Lua pattern to parse a string is that it require= s > rather crude heuristics compared to more full-fledged regexes which suppo= rt > alternations and quantified groups: the Raw=E2=80=A6 element must contain= exactly > one index entry and nothing else, the first `@` char in the string must b= e > the separator. I agree about the superiority of the span approach. But note, if you have more complex parsing needs in a lua filter, you could use lpeg. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/yh480kh8bw6t3b.fsf%40johnmacfarlane.net. For more options, visit https://groups.google.com/d/optout.