From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29958 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Force use of attributes in jats writer Date: Thu, 13 Jan 2022 09:24:05 +0000 Message-ID: References: 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: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32152"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBP7A76HAMGQETEBK7SA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 13 10:26:28 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f56.google.com ([209.85.167.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n7wNG-00089l-Jd for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 13 Jan 2022 10:26:26 +0100 Original-Received: by mail-lf1-f56.google.com with SMTP id u21-20020a05651206d500b0042f8930811asf900181lff.5 for ; Thu, 13 Jan 2022 01:26:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642065986; cv=pass; d=google.com; s=arc-20160816; b=heQhJtoYVtegxfNVnwaAP4Tx4UnyvjEjZ2BjXckPChBdjWHotPuJdMHucHVbNTWJ+a psP3iCqjpOpLUWzJZ5MXtZ0WYiLIHICFVM53i8eEdQIrGH1xPUttI4o170Jv7geSkQ+n qKPzZqCscHPy3o3Ez8moQmPJwf/b7ioRLIblTeGnAaY/pVDDQYkEhc02DP1cockwToIH ZAIXoLiYP4x9eSeUfX20ZnO7VLh7T5/qXk819RbJinODqzJrFO45YCif/tdyH/eRh02T xHOe24pHui8P8ty1AqesdiUStJrJtPZR7KcqPpv8+TEdNyT1+RsLu17JZpqbTaRl1pQI FMCQ== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=bi05WbC/0nOdfrgIwEJm0JR9pHU2kWa59O4GB38DHAM=; b=ZzVbDqkYylfELLnmVnSNHdP6MESJmZ2BuD8W/C2P5UFLKpFAHtrbKjG9Qki7HERxub ZTHCGBj7p4M4Ye5bVchEITYHWfsuERk2HqTEO18QGplSfwQnR9KDSwsnBrckPHzYyMdn R09uGvNuvqWDe2PGc8IucMiaue1/Levhaey2kYEgGvYHGv774WvIw0mhgUlx5xx+OYIA o8k5QZn+an1lU/p1aXrFud+9DQtjFVi17Sa+AcFFdPEVOG/a1+aNWKPHlWjuzO13UdO2 jIaGVgZzXaCMEi9gYsvLELFSWEoFK+qJgTxbSflODrm6iZSrAy0P0Z8bMU81HZ1f0sel 7fiw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HFoBpmyT; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :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=bi05WbC/0nOdfrgIwEJm0JR9pHU2kWa59O4GB38DHAM=; b=CAIK+TMOwhSdWmF2qElkqw7/Qk5ifX7H9749PjQXM6wOFbdtaTtBOV7giEiPSj8dQj aYrXb4u3uEGcChQkPWoYS+289ekud3CIEgpxkiOgTbGs7Nlbe2uvskYgQLZZi+mx0JpX 83R5mZ/su8zVBcxffdPsf4z+Fopp1HDvVFvk9CiYL2CkqjsFNlsG15Xv9NXeGA1W3+9r q+iLppd8cXS5xgUvWqTJYcvj1LrE3AHoCtFQ4dYYLLS+LQMHu4OtWmg/QuSbR6+zWt0m zry4Jinxmo1jMyj/XYW+oyyK9stCuA+MEtSd08UUxZshqLd8noyQPWLzgF6NVazTJvhj NROA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to: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=bi05WbC/0nOdfrgIwEJm0JR9pHU2kWa59O4GB38DHAM=; b=xizTawBs9mhMahyobAkMBov+swJOt6KEzZDalb55GtyRwCEBH8KEqT+D/O9QcCUs1I k+Fj2WckThXXPGttioH6O61wDqaBvSrPk2lQDLBETq2OlzOcPPk5GbAh6ilI9oADAo5w KCAL5gSrna/C2I+KKNVvSFH5yJn0nLav88AdLc3bQzVn0PAansFZh49tOyvT3aB1vphL J7kzEr2vVS1fQCpc8mxl23g2px8AAxR9UdKPw4TjzWB5Jd89GgupMcbXbM14nrhmBbYm ztQMeytlTTi5DkovS6TnOrEA+BREsOn8ob5ff2XkQDs7 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533moUdETOEXDzIzzZosQp6DLsCofIEw/ZGliAroMxX+qtMbYX71 ri33C1+RSl4rjflulBB8gvg= X-Google-Smtp-Source: ABdhPJzOL50YdV9CaNayuamjK7FOp71Gc3SYovebgx8y8vg/VlRPVoMts9EWiRGICFQ3QZIS+JVqEQ== X-Received: by 2002:a05:6512:40e:: with SMTP id u14mr2776501lfk.133.1642065985901; Thu, 13 Jan 2022 01:26:25 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a19:6e44:: with SMTP id q4ls1688415lfk.3.gmail; Thu, 13 Jan 2022 01:26:23 -0800 (PST) X-Received: by 2002:a05:6512:130f:: with SMTP id x15mr2920679lfu.179.1642065983162; Thu, 13 Jan 2022 01:26:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642065983; cv=none; d=google.com; s=arc-20160816; b=xefznZZKdJJrTPeXC2FsNehBrZFYO2C9/aM5XfHzJzJsUiLWb6O9Qlcd8hPgozIUZI +/aXuHoeaRLn+J5ujoPcOqOkWpWuQUQQchDIGOm50KGfLIXFA7TlF/RVKx9k/4lEyXaF SCwzJZR9QdctFM7obr+U6mEfcg46ePyML05PG4JTu/MnZjaLO35hqVT7YzrsnTmGSb9j nwaLoVPEA0vJkcXiMrBi1uKVZJ14WjzDz2BD6rEw8Rg1gAXcPnxVDgg+7BhDsS1wofov jIB1TAqw9rzWQ+NIKBxKttteI3OhvfJW1jF2WWihjY4n4I6z2YaiOayH+2no34LtiLdV 9l7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=ME+JltDJl1lNX7wT5MoE6IJknp7M0CUoTibz1GqTIZI=; b=kKhhYXWLNZQJOb4IPsxoWDnnP7j+GFQMZd8zlZepat3hkR6DmzYpmmc5fQU6qe/XZR RGNoxuHCXqbvwXAJbEH5gh99BTSrwJhl8RTVmRVTWPT6hqQY87QAWU+OKwdKbWJncgro kGjNUNYcYtaBqWTrzQ9M2fs2YD/CLChdJ+mMhgiHu4Gh4OCuFrcHVjnSqPhnbP7ZtN7f CA+NE596meEA0OdqtVllYNUmW5a5RXBaw0iih5nbeHL7HmAEyITP2gejVdhdMlF/pkJ3 9U8cgtNXpbwXYCN0h7mgWQ0Orc/nZeJJMGu1LpfC0og0fWVPR25q4HsXVDfzZ1kuQAmd MWaQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HFoBpmyT; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id x25si74124lja.4.2022.01.13.01.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 01:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A3667240104 for ; Thu, 13 Jan 2022 10:26:22 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JZJvy2XGXz9rxP for ; Thu, 13 Jan 2022 10:26:22 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HFoBpmyT; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:29958 Archived-At: I guess that it is can now be achieved using pandoc.write: * Create a new Pandoc object containing your Div; * Pass it to pandoc.write; * Modify the returned string; * Return it as the content of a RawBlock. By the way, this could also solve the problem discuss here, but I would lik= e to test it before closing the issue: https://github.com/jgm/pandoc/issues= /7262 Le Thursday 13 January 2022 =C3=A0 05:37:04AM, denis.maier-NSENcxR/0n0@public.gmane.org a =C3= =A9crit : > Well, the invalid file will only be temporary.=20 > Let's say I a div with content-type=3D"parallel" for parallel texts. In s= ome cases the one column or both will have righttoleft text, so I need for = multiple attributes: >=20 > content-type=3D"parallel-left-rtl" > content-type=3D"parallel-right-rtl" > content-type=3D"parallel-both-rtl" >=20 > But this will cause redundant rules in the xslt for post-processing: >=20 > I could do this: >=20 > content-type=3D"parallel right-rtl" > content-type=3D"parallel left-rtl" > content-type=3D"parallel both-rtl" >=20 > Also not ideal (because processing such lists is ugly in XSLT). I thought= about this: >=20 >=20 > content-type=3D"parallel" right-dir=3D"rtl" > content-type=3D"parallel" left-dir=3D"rtl" > content-type=3D"parallel" left-dir=3D"rtl" right-dir=3D"rtl" >=20 > I would then pick this up via xslt and construct valid colgroups based on= the values of right-dir and left-dir. But maybe there's an easier way? >=20 > Denis >=20 > > -----Urspr=C3=BCngliche Nachricht----- > > Von: John MacFarlane > > Gesendet: Donnerstag, 13. Januar 2022 01:50 > > An: Maier, Denis Christian (UB) ; pandoc- > > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: Re: Force use of attributes in jats writer > >=20 > >=20 > > I don't understand. You want to create an invalid JATS document, with = an > > attribute that is not supported for that element? > >=20 > > writes: > >=20 > > > Hi > > > > > > Is there a way to < convince > pandoc to use an attribute on a div th= at is not > > in the list for boxed-text in the list of allowed attributes in the jat= s writer? > > > Background: I want to use some non-standard attributes and pick them = up > > later during post-processing. (The intermediary jats file will not be v= alid, the > > final result will be.) I can add that stuff to one of the allowed attri= butes, but > > that will make post-processing with xslt more complex. > > > > > > Best, > > > Denis > > > > > > -- > > > 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, sen= d an > > email 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/b4b8786382dd497bb7bb231edcc5f93a%40unibe.ch. >=20 > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/b68835526c9e4d45afb6d3d122b7da91%40unibe.ch. --=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/Yd/vtdosfda4eefI%40localhost.