From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31623 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: DTP Formats Date: Fri, 21 Oct 2022 09:35:54 -0700 Message-ID: <6444F4E4-2C77-484B-B047-EA83FFDA4970@gmail.com> References: <94877023-0E96-4760-8B50-900C3087DB5B@gmail.com> <6080948D-C510-4C74-BF12-1BD9DD3C4193@gmail.com> <65d7b8a6-77fd-4e53-8e14-f98ceefd836bn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="7337"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBB6EUZONAMGQEMXVLEMQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 21 18:36:12 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vs1-f62.google.com ([209.85.217.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olv0G-0001hv-2V for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 Oct 2022 18:36:12 +0200 Original-Received: by mail-vs1-f62.google.com with SMTP id h8-20020a056102104800b003a7cdc977c4sf1051188vsq.21 for ; Fri, 21 Oct 2022 09:36:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666370171; cv=pass; d=google.com; s=arc-20160816; b=s6GZ3m9DcyrodDHQHuS1xxLb08iXu+Y0SuzkLEC8OvMmZKP4uh+Qu4z5X3l0RAlOrF ZCTQjHOBIf8+dTQLt+Kecz68Z/meRJHM1EAAK26xKnxCSxo54BIu20m8qEG97xzWPcyW tBfpk2Qyazc9sdvVNaaOClLuDU9yB5QWvN58xZp3UA/h0GrJOXDqz5FxIwbbVpXNoK84 N0/eW4kpfTjQGluGYfYu6yY+b+p6eB4p42CQ4iTzZugdNXRbQZPCNOCT+wM84HiQ87c4 CZ6KlT6752cl6jS1PALQwVb+DNua2/+JigS7ylNEpeVQXk/ScO0Pa00HbaIRS/W8cGXY bpjA== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=xwQJFCTcqWQFZW6+tMTFhH5l0l8d0lLY0Rfnt9DCn8c=; b=Z/k43xA5Y2bY+wyPVF3Nty66tukw205Tzu8WF9oyxT3NDuzg1/x3kCxKHlT3lB1vhf fE6or+k02EFJCu/FgeYnuLOPGe4eRE81WBxuITE8qFgnniJRkWzEkqERVHVzW2sbjgpJ CooNX++0514RpHo5HgBvLK1Wn0eHPh92hgNQsxEqQWlLTLRh0OjPiuO3YjxfA0eanSp9 F6cct/dVDhH4nTiadr6ln8MYXg40WF85rmohLpNeOLx8SRqHBBl5xVjW0lisykpv6jnl LngCow69zeo5aVUEtCFI3ANpIis7f0C8ta+fgcxML67v+sWFjIr0R7DjDbTq6lExUwK7 5G0w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bbXZbsxJ; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=xwQJFCTcqWQFZW6+tMTFhH5l0l8d0lLY0Rfnt9DCn8c=; b=lz5I5zKvvZt90Neyem//jhoTJB5+bcVMihA68fU+1xECQr6aGt7CIPSBrSVAsZC/jX 8Q5Ao1qoqES1hZRAWl3VWqmx2/dvjuj5Y8egaV/FRsUIXLM9SAUL0mAw5KiQcLwxtA9F bmZMBEzvAs70f2O04uPOCKc67AE/P8T5xdgCox7lyQ61uOwGRAQuV3vVY2POD7SuOcMD BKmNC8jupsYsj8NjPjyDbfPTUaXzRVpNOPCQXUEb77IyMxMuSJmagSxCcyS0BosLUjLX P7WiH57ZswYzRWhpPQR0uQtvJl3Hcnq3BqMMMQoUkP2CIqRY9rVpVqYo722HzkuRV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=xwQJFCTcqWQFZW6+tMTFhH5l0l8d0lLY0Rfnt9DCn8c=; b=MyfQMP2SANAW/nVjT3oxRz6TRcAtAkU5r6c4jGiArMAN+eYXi0Cr0GxVqgm2m8Jvc1 cBFJVUWJ2txvxWm2INAPMDfGIApmTBqUGnbvQFjZesz0BL+K9katpQPetghpgaE6iTv0 hhC6rkt3a9E8A1JKvomuzRZvcD9HuWeAJ8vWpeqPdcacP6Dy5O0o0CI2BazUUGHXNDIT 8d2A49g9OYtMl6sYL4H2FvIK7lR4EB4Nlb+adXHEICnXAHJswBwZHjXLkrhTXmaUrZeN U41NnbuPCrXyrbunnW8973Sg0Qe5zm+wIErnSJyaLNV6AqHYmSRfTDBJ74JheyWsx91d V X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=xwQJFCTcqWQFZW6+tMTFhH5l0l8d0lLY0Rfnt9DCn8c=; b=QhzyiCWG/F0rBy8RUegXsfwFRLOhHJJNv+C4SSRQ69s5jflAaf+Q+yC1S16VDBKBk8 ySdt54QIX8lnYp52wbqlsqSp69XvIs0d0NhiMEw4tGGpvYea5J5q0LlSAt6ulh3j+E2+ uOAaiw+gyK9wB6HMukPXbCQcdL9h2c0ThNpaZiA++dSTeTcTu15o+HlmBLsLLJWSeCCb FpItAa/32/wICkWYLpxtbxftH182tM+J0hXewNqmjVZ4RtOR5129LG8FcgkZeSniIMGo uNiLt1ZqR9Klys0d116S Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf3gidMI8y2XHB6GU0mdip9ab0dtzTyPCVKj9PiaR2p6AMStnN9J 6346ulJ23hf74RlNl4kHa+Y= X-Google-Smtp-Source: AMsMyM581sfbRTfpQFqRNHaAuIIQ6ivf968h8kTDOVuTy1ZZFhxOWRWayv5+2G7InG2cvNybT3YPaQ== X-Received: by 2002:a05:6102:3d99:b0:3a9:5976:cd84 with SMTP id h25-20020a0561023d9900b003a95976cd84mr12340441vsv.4.1666370171013; Fri, 21 Oct 2022 09:36:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:d39e:0:b0:3a6:3be8:f923 with SMTP id b30-20020a67d39e000000b003a63be8f923ls701553vsj.11.-pod-prod-gmail; Fri, 21 Oct 2022 09:36:08 -0700 (PDT) X-Received: by 2002:a67:e903:0:b0:3a9:7a04:9f28 with SMTP id c3-20020a67e903000000b003a97a049f28mr14185089vso.18.1666370168060; Fri, 21 Oct 2022 09:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666370168; cv=none; d=google.com; s=arc-20160816; b=Bm7X0DAb7fFm9zAnuCvlK2BkCvoIMNh9/6fIzN3AUCVc6ZWH4B36lLme0IpZnxK9Vm TCLsnogxnct7zZR8aah4ZJLEzpbVGE31b1OIzv6aDWq5U7jS34UHRbyOHT5mY+j+Xg5S XFXaKKTWEzLoymKfX8Pu7Xn7cQKdEvara7R1vwx+sNXq1FZLCFqiDCEToeVqBQX6If0k 7Q4oA5V9VX45nPp2reNZQNy0crPWsabe0404485wtQP+NG2iJB3Bstb3DfSA3jr08la8 GkMeB2rdkYcWxjKNDd8ZnHT/GrLB/2TzF+tf+Hc2ENohAJJmvuslC/zJjGEKkHStZEVP yuJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=7bP5fJzdboQqy8eGJcsfKdQ8BU+Gxix2i9Qxxs5oUZ0=; b=rQre1/MdPkBROQD6M2UQRa7AcXciaSmkWrY0lBkZQJ3mKvDKd/scVVQJCX7J4IjMad SFoddWVkR7MBY3HND8f0cyhmDfn4BAYJnIguZsKIzX44blD1nexZ9N9XRjPBB+woi9PG WjJNIVBedS3EAkgf+bHRfHhjUcNULsHPXoo7g/faycf7660hUVrrA1CD9NPhvTFBXqX3 rV61L1dPB1ECs4FIuET8+YlEy3wq8i73ypDWNqBWWchlamdFW9AJblC4vvjb0oIe5dFa acDfbdbkPVIqoAQRQ6szXZOf8KVgoXacNEBL6CDxC90DtypaDjqBnsWHLaImOX+DL5QG xuVg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bbXZbsxJ; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com. [2607:f8b0:4864:20::1032]) by gmr-mx.google.com with ESMTPS id ay26-20020a056130031a00b003d919da0471si2040380uab.1.2022.10.21.09.36.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Oct 2022 09:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) client-ip=2607:f8b0:4864:20::1032; Original-Received: by mail-pj1-x1032.google.com with SMTP id x31-20020a17090a38a200b0020d2afec803so3414666pjb.2 for ; Fri, 21 Oct 2022 09:36:08 -0700 (PDT) X-Received: by 2002:aa7:96e6:0:b0:562:6f4e:151 with SMTP id i6-20020aa796e6000000b005626f4e0151mr20151795pfq.35.1666370156296; Fri, 21 Oct 2022 09:35:56 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:400:7c40:fd6d:e541:74ba:6aa8]) by smtp.gmail.com with ESMTPSA id u21-20020a62d455000000b0053b2681b0e0sm15363449pfl.39.2022.10.21.09.35.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2022 09:35:55 -0700 (PDT) In-Reply-To: <65d7b8a6-77fd-4e53-8e14-f98ceefd836bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bbXZbsxJ; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:31623 Archived-At: One approach could be to keep a global stack of attributes. function Strong(el) -- add "Strong" to the attribute stack -- process the children of el -- remove "Strong" from the top of the attribute stack end function Str(el) -- get all the attributes from the current attribute stack -- output an ITEXT node with these attributes end > On Oct 20, 2022, at 9:12 AM, perro tuerto wrote: >=20 > I am working on a Scribus writer --- it stills need a lot of work but the= work in progress is here. The main difficulty for Scribus writer is that i= ts structure is =E2=80=9Cflat=E2=80=9D. For example, what it is usual for h= tml (or other xml format) is a nested structure like this: >=20 >

I have a strong and italic<= /em>.

Other paragraph.

I am outside.

>=20 > Where there are nested blocks and inlines (I ignore attr for clearness): >=20 > Div [Para [ Str, Space, Str, Space, Str, Space, Strong [ Str, Space, Str,= Space, Emph [ Str]], Str], Para [ Str, Space, Str]], Para [Str, Space, Str= , Space, Str] >=20 > But in Scribus, same structure should be like the following: >=20 > > > > > > > > > >=20 > So the must difficult task I am trying to solve is how to flat the struct= ure and inherit the attributes --- as far as I noted, only classes have to = be inherit. In the first test I tried to solve it by pure regex, lol, it wo= rked except the inheritance of inline atrributes. In the second try it seem= s it could work, but I have to continue working and refactor the code for t= he classic writer --- to late I come to realize that the new writer works w= hen you don't need to rewrite everything, which it is not this case. >=20 > So, if anyone has an idea of how to solve this problem (elements flatteni= ng and attributes inheritance), I will be happy to know :D >=20 > El jueves, 18 de agosto de 2022 a las 5:20:16 UTC-7, leon...-bM6h3K5UM154beGV+Eop3g@public.gmane.org= m escribi=C3=B3: > Yes, I have notified the relevant people and hopefully we'll get it fixed= . (we updated to a new system so things something get lost...) >=20 > No support for Scribus in pandoc currently, though that might be an inter= esting thing to try to do with the new Lua reader/writer functionality. Al= ternatively, it does support importing Word files and you could go that rou= te - but, of course, that wouldn't be automatic. >=20 > Leonard >=20 > On Thu, Aug 18, 2022 at 7:51 AM Trevor Jenkins wrote= : > On 17 Aug 2022, at 19:45, Leonard Rosenthol wrote= : >=20 > > Trevor - what do you want/need to know about ICML? I believe the docum= entation is part of the InDesign SDK. >=20 > As a sometime member of WG8 my interest is nothing more than intellectual= curiosity, But the broken link is important. >=20 > Although it did raise my question of whether pandoc could process Scribus= documents into/from other formats. And subsequent general question of the = absence of the simple introduction/excmples for using Lua. >=20 > Regards, Trevor. >=20 > <>< Re: deemed! >=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/6080948D-C510-4C74-BF12-1BD9DD3C4193%40gmail.com. >=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/65d7b8a6-77fd-4e53-8e14-f98ceefd836bn%40googlegroups.com. --=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/6444F4E4-2C77-484B-B047-EA83FFDA4970%40gmail.com.