From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32653 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ThomasH Newsgroups: gmane.text.pandoc Subject: Re: What is the point of isBlockElement in the JATS reader? Date: Fri, 19 May 2023 00:50:21 -0700 (PDT) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_488_344585341.1684482621409" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11529"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOJJAXZ7EPBBPWUTSRQMGQEWKZQIEI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 19 09:50:26 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pzusb-0002pi-Go for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 19 May 2023 09:50:25 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id 5614622812f47-394140ffedesf892028b6e.1 for ; Fri, 19 May 2023 00:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684482624; x=1687074624; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=ZLP5Bale6ItxQdZAXhfIZuvrPuDVeM4psJxfXcHIka8=; b=R/mts9wATkiYHD1/D8WaOX4/apmZNLoK++lBkRMLI8gDaMX+uxbVEd4p+fCkDVKSAi jiMx7s/VDG7EtU1etk7OmmPcmhs1jaq3MPWA5yPRtEDB119WRfCFRcmnGfgKjL2J2zko FKIw4T4T2kUOpxpA4guuUJMIuKQnDZvYsX7I/EGFJZxsMjQMMNiaDZtnOgFcpILT23Hw oLY/4AcmEvYbymUERVsn8uhYHWqea71nAfNDj8v7edyz0AmE12AgLDc0xEeiC6CDBl1G an5tOC2hNJlxR+m5oycj2+EX4iBvbxqtQJmNGyvqG/VhEeG1QMBUQolBLwLiD02zGxRA 5pWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684482624; x=1687074624; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=ZLP5Bale6ItxQdZAXhfIZuvrPuDVeM4psJxfXcHIka8=; b=nHagY3kfbubAmWmGPO5jFl986fDJ0NhKFjcNyl85Pt1UboGHpqpP6sME8FNCPyOEZN d5h9TNMN33Vk5X/gJJ5pKilMd1N43VX7unIelX+Om1nttHsRkUF1Ju52FHFwfinceomN +IRpm9ow9ZpJI3vO2g4eGmEGxngSzBoWD9sAfe0kmZBrIau6bvrCth4fKlYDZexBVy/J xoqfk6ftJSK9kAcTI4MPAhr0085QtYSUtN2z2w19uA5h4Z5Nw8xwNW6N3lMBTVfkxPQa K/VzZh5VoctdhfF3ReqR1rzIWtH9QnOmlhz0w8vXl1mlqHWhZ91bNV/t1EW5rgOcZFmf Xoug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684482624; x=1687074624; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=ZLP5Bale6ItxQdZAXhfIZuvrPuDVeM4psJxfXcHIka8=; b=O98md1HzlsKkTXSvNGEgLLR2uY8+TG5rplrF7U/4uJTytElDYhMLWTf9FX8eYmeq7D 4pAXEhRh7y85L5kzJV1otYiv1VuQX23K7FLaueWO2JRS+DzWRZxpOPdtJgYiIrTtmW61 Y4xxqUJSwopRA8MXkMChtcoIHrj/544+ZQrg4nq0Sm0pr8CwCuTlJ4u6Db5/fmMD4KHb nsM13SsCPBaq2adZbMC+B/xp2o6IpXtKwwccVywyY2fTjCl8mdFh65/C4jUxowGAx84p wM2AL+jIr6OtCmZuj18M9km97+Z++BSrLsw3YIvfFJKPzSOlJF Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxdGt3UksHVMsDvSfPHMJfYTcnyN5t5kuxIiAMUtQB8VSffG5q2 4L7VRF1FlM0WN16gGKJsoDE= X-Google-Smtp-Source: ACHHUZ6JNmG3CKKsgjyFfRkci+bN0rXz5QJdl36LstRT89++qxp8gcx5I8eKbEs2APcGypmji6Dt6w== X-Received: by 2002:aca:3445:0:b0:390:5cee:53ed with SMTP id b66-20020aca3445000000b003905cee53edmr262156oia.4.1684482624393; Fri, 19 May 2023 00:50:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:822b:b0:187:a128:fe88 with SMTP id n43-20020a056870822b00b00187a128fe88ls4039515oae.1.-pod-prod-07-us; Fri, 19 May 2023 00:50:22 -0700 (PDT) X-Received: by 2002:a05:6870:3a0e:b0:193:4f67:654a with SMTP id du14-20020a0568703a0e00b001934f67654amr529866oab.9.1684482621932; Fri, 19 May 2023 00:50:21 -0700 (PDT) In-Reply-To: X-Original-Sender: therch-Re5JQEeQqe8AvxtiuMwx3w@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.io gmane.text.pandoc:32653 Archived-At: ------=_Part_488_344585341.1684482621409 Content-Type: multipart/alternative; boundary="----=_Part_489_1129754453.1684482621409" ------=_Part_489_1129754453.1684482621409 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It appears that all element types first listed are then exempted again via= =20 the `inlinetags` list, except the `p` type. This looks indeed like a very= =20 complicated way to come up with a list of only `p`. - A bug? Or maybe an=20 attempt to conform to a common pattern in Pandoc to list candidates first= =20 and then subtract them again if necessary? I have no knowledge of JATS so I= =20 cannot comment on semantics. Is there some kind of ambiquity that e.g. the= =20 `address` element can appear both as a block *and* inline element? On Friday, May 19, 2023 at 1:47:46=E2=80=AFAM UTC+2 Julia Diaz wrote: > I just realised this function produces TRUE if the name of the element is= =20 > "p", false otherwise. Why do we need a 126 lines=20 > =20 > to do the same as:=20 > > qName (elName e) =3D=3D p > > What am I missing? > --=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/e8dfa46a-1f69-4fa6-a412-6751e2250cacn%40googlegroups.com. ------=_Part_489_1129754453.1684482621409 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It appears that all element types first listed are then exempted again via = the `inlinetags` list, except the `p` type. This looks indeed like a very c= omplicated way to come up with a list of only `p`. - A bug? Or maybe an att= empt to conform to a common pattern in Pandoc to list candidates first and = then subtract them again if necessary? I have no knowledge of JATS so I can= not comment on semantics. Is there some kind of ambiquity that e.g. the `ad= dress` element can appear both as a block and inline element?
<= br />
On F= riday, May 19, 2023 at 1:47:46=E2=80=AFAM UTC+2 Julia Diaz wrote:
I just realised this f= unction produces TRUE if the name of the element is "p", false ot= herwise. Why do we need a 126 lines to do the same as:=C2=A0

qName (elName e) =3D=3D p

What am I missing?
<= /blockquote>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/e8dfa46a-1f69-4fa6-a412-6751e2250cacn%40googlegroups.= com.
------=_Part_489_1129754453.1684482621409-- ------=_Part_488_344585341.1684482621409--