From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31622 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: perro tuerto Newsgroups: gmane.text.pandoc Subject: Re: DTP Formats Date: Thu, 20 Oct 2022 09:12:32 -0700 (PDT) Message-ID: <65d7b8a6-77fd-4e53-8e14-f98ceefd836bn@googlegroups.com> References: <94877023-0E96-4760-8B50-900C3087DB5B@gmail.com> <6080948D-C510-4C74-BF12-1BD9DD3C4193@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4898_1423643549.1666282352545" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32590"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMYR75V2YMRB54MZONAMGQEBC6EP6A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 21 18:19:06 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f55.google.com ([209.85.210.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oluji-0008Kc-6y for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 Oct 2022 18:19:06 +0200 Original-Received: by mail-ot1-f55.google.com with SMTP id l5-20020a9d7345000000b00661c76ded95sf1995252otk.15 for ; Fri, 21 Oct 2022 09:19:06 -0700 (PDT) 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=8aUbsB5Zkz89QIEVLYLa4uqKOvcKLVZIXjbxd9OdrQI=; b=GbIEnxfHui+kI62G9PMWu5myMNqAoHBf0OZ9o7KLyEOisnvpH84QF8lpUiLt5cyQZD zdW9WQmBvfG6Nqlzk2EGtwVpua65mwSb/b+3gXllDOAes8tyhccYDOnsP8h1seCJ2CVV 183cX70xjk8IWOhcorKNyhvTENbAj2NBx05X/1i5xR1ugF6CWib9sjid0VRBixSJHbEa JG0NYXXEnCQ21UMp/0lJNe5rY65/0cor5FRYjF0D1oY0pKMXYeweQaBFGE9QCdhvdAum yG1y0SE2S7+exUHiZbXDaBPKFVx6ZvVHgz0cPB773s4bvO9Si42EwkEk5iz3z9cjhnsq VF+g== 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=8aUbsB5Zkz89QIEVLYLa4uqKOvcKLVZIXjbxd9OdrQI=; b=Mg+EWGta87pYW9nxYAB/bcXiObSFBNKtxGZcNMQI/JsX3NnjPhLakiUoC+b7orF6GG q46DsPYaAVn3HbgZbtxNSdEIk1RWTJe9QqCIhB4xHqEuvxpA7poJ0c4ttb3ofjpoKgy0 K6MqRZ8hJZYbhAUAy2ifBPLdgGPjypFDFD1M6PmOI4Rq8r9C4TmEPjJsF2WpgYZIgwEQ RuVM2BS/uvPA3YP4MaO4wxzvlcD0BGv4xm3Kkzo/DSF5eJ7K14Yza0IoVSrjOj+4LqKd J+R5tzZxlEfdyLNVDL7h7wOgiFRy3xnWX2gjWCVeuZuukzSpDyKwmWDkIKCSE4XJG9sr 6xng== 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 :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=8aUbsB5Zkz89QIEVLYLa4uqKOvcKLVZIXjbxd9OdrQI=; b=QI65KrtSlqCriBoPRqhsngldyGYANz6vTPfxmeKP7HLqB1dvH/UNgOJaNcZUYU5P7L fK5qSZYhfrKMVr/deN3sQOuvuOujm0cRKsco2QPxYVsn8MPHwCxy/lTew0NYumbeZke0 u3XfTDiYZwoqg48y0lo3CnryeoAHjZEh41d83RtzIX3dpQH8Z+taNxciMIFs5hrpURDY Nb3jQBSouwWgAA0IJNG3Agy5M2XOxSU2qjYsVfhjy1+zljcsS92ppsyqiIxVBtQnRXfv NXAuzexMOACaDLe76mHnEpb2Aph4VdAjjxY09a3w4XrigDOHE33BPCYsotZ/VXNlH6LZ gDvw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2cU6t27UVanFkNU2utTstt+eE+i0bIowL68ZX9MN4Aix8/U3Ft o7dmxk9on6plsDYTOfgeya8= X-Google-Smtp-Source: AMsMyM7nRNMam6/eUYkM16L0lxgFH8Sm+p12IKgbWHx2iqVTNOvjKc1iluifpBI13k66Grru0CvvTw== X-Received: by 2002:a05:6808:1405:b0:354:c1fd:278 with SMTP id w5-20020a056808140500b00354c1fd0278mr24187992oiv.52.1666369145131; Fri, 21 Oct 2022 09:19:05 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:e407:b0:136:39a4:9094 with SMTP id n7-20020a056870e40700b0013639a49094ls1124629oag.5.-pod-prod-gmail; Fri, 21 Oct 2022 09:19:02 -0700 (PDT) X-Received: by 2002:a05:6871:707:b0:13b:1197:ead1 with SMTP id f7-20020a056871070700b0013b1197ead1mr4610603oap.168.1666369142834; Fri, 21 Oct 2022 09:19:02 -0700 (PDT) Original-Received: by 2002:aca:bf09:0:b0:354:4c0b:602c with SMTP id 5614622812f47-35557f45447msb6e; Thu, 20 Oct 2022 09:12:33 -0700 (PDT) X-Received: by 2002:a05:6830:d0b:b0:661:9435:5e30 with SMTP id bu11-20020a0568300d0b00b0066194355e30mr7591763otb.276.1666282353273; Thu, 20 Oct 2022 09:12:33 -0700 (PDT) In-Reply-To: X-Original-Sender: nika.zhenya-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:31622 Archived-At: ------=_Part_4898_1423643549.1666282352545 Content-Type: multipart/alternative; boundary="----=_Part_4899_416900176.1666282352545" ------=_Part_4899_416900176.1666282352545 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am working on a Scribus writer --- it stills need a lot of work but the= =20 work in progress is here=20 .=20 The main difficulty for Scribus writer is that its structure is =E2=80=9Cfl= at=E2=80=9D. For=20 example, what it is usual for html (or other xml format) is a nested=20 structure like this:

I have a strong and=20 italic.

Other paragraph.

I am=20 outside.

Where there are nested blocks and inlines (I ignore attr for clearness): Div [Para [ Str, Space, Str, Space, Str, Space, Strong [ Str, Space, Str,= =20 Space, Emph [ Str]], Str], Para [ Str, Space, Str]], Para [Str, Space, Str,= =20 Space, Str] But in Scribus, same structure should be like the following: So the must difficult task I am trying to solve is how to flat the=20 structure and inherit the attributes --- as far as I noted, only classes=20 have to be inherit. In the first test I tried to solve it by pure regex,=20 lol, it worked except the inheritance of inline atrributes. In the second= =20 try it seems it could work, but I have to continue working and refactor the= =20 code for the classic writer --- to late I come to realize that the new=20 writer works when you don't need to rewrite everything, which it is not=20 this case. So, if anyone has an idea of how to solve this problem (elements flattening= =20 and attributes inheritance), I will be happy to know :D El jueves, 18 de agosto de 2022 a las 5:20:16 UTC-7, leon...-bM6h3K5UM15l57MIdRCFDg@public.gmane.org= =20 escribi=C3=B3: > Yes, I have notified the relevant people and hopefully we'll get it=20 > fixed. (we updated to a new system so things something get lost...) > > No support for Scribus in pandoc currently, though that might be an=20 > interesting thing to try to do with the new Lua reader/writer=20 > functionality. Alternatively, it does support importing Word files and y= ou=20 > could go that route - but, of course, that wouldn't be automatic. > > Leonard > > On Thu, Aug 18, 2022 at 7:51 AM Trevor Jenkins wrote= : > >> On 17 Aug 2022, at 19:45, Leonard Rosenthol =20 >> wrote: >> >> > Trevor - what do you want/need to know about ICML? I believe the=20 >> documentation is part of the InDesign SDK. >> >> As a sometime member of WG8 my interest is nothing more than intellectua= l=20 >> curiosity, But the broken link is important. >> >> Although it did raise my question of whether pandoc could process Scribu= s=20 >> documents into/from other formats. And subsequent general question of th= e=20 >> absence of the simple introduction/excmples for using Lua. >> >> Regards, Trevor. >> >> <>< Re: deemed! >> >> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/6080948D-C510-4C74-BF12= -1BD9DD3C4193%40gmail.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/65d7b8a6-77fd-4e53-8e14-f98ceefd836bn%40googlegroups.com. ------=_Part_4899_416900176.1666282352545 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am working on a Scribus writer --- it stills need a lot of work but = the work in progress is here. The main difficult= y for Scribus writer is that its structure is =E2=80=9Cflat=E2=80=9D. For e= xample, what it is usual for html (or other xml format) is a nested structu= re like this:

<div class=3D"dd"><p class= =3D"pp">I have a <strong>strong and <em>italic</em><= ;/strong>.</p><p>Other paragraph.</p></div><p= >I am outside.</p>

Where there are ne= sted blocks and inlines (I ignore attr for clearness):

=
Div [Para [ Str, Space, Str, Space, Str, Space, Strong [ Str, Space, S= tr, Space, Emph [ Str]], Str], Para [ Str, Space, Str]], Para [Str, Space, = Str, Space, Str]

But in Scribus, same structur= e should be like the following:

<ITEXT CH=3D"I = have a "/>
<ITEXT CPARENT=3D"Strong" CH=3D"strong and "/>= ;
<ITEXT CPARENT=3D"StrongEmph" CH=3D"italic"/>
&= lt;ITEXT CH=3D"."/>
<para PARENT=3D"ddpp"/>
&l= t;ITEXT CH=3D"Other paragraph."/>
<para PARENT=3D"dd"/><= /div>
<ITEXT CH=3D"I am outside."/>
<para />
<= /div>

So the must difficult task I am trying to solve is= how to flat the structure 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 worked except the inheritance of inline atrributes. In= the second try it seems it could work, but I have to continue working and = refactor the code for the classic writer --- to late I come to realize that= the new writer works when you don't need to rewrite everything, which it i= s not this case.

So, if anyone has an idea of how = to solve this problem (elements flattening and attributes inheritance), I w= ill be happy to know :D

El jueves, 18 de agosto de 2022 a las 5:20:16 U= TC-7, leon...-bM6h3K5UM15l57MIdRCFDg@public.gmane.org escribi=C3=B3:
Yes, I have notified the rele= vant people and hopefully we'll get it fixed.   (we updated = to a new system so things something get lost...)

No supp= ort for Scribus in pandoc currently, though that might be an interesting&nb= sp;thing to try to do with the new Lua reader/writer functionality.  A= lternatively, it does support importing Word files and you could go that ro= ute - but, of course, that wouldn't be automatic.

= Leonard

On Thu, Aug 18, 2022 at 7:51 = AM Trevor Jenkins <= bslwa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On 17 Aug 2022, at 19:45= , Leonard Rosenthol <leon...-bM6h3K5UM15l57MIdRCFDg@public.gmane.org> wrote:

> Trevor - what do you want/need to know about ICML?  I believe the= documentation is part of the InDesign SDK.

As a sometime member of WG8 my interest is nothing more than intellectual c= uriosity, But the broken link is important.

Although it did raise my question of whether pandoc could process Scribus d= ocuments into/from other formats. And subsequent general question of the ab= sence of the simple introduction/excmples for using Lua.

Regards, Trevor.

<>< Re: deemed!

--
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-discus.= ..@googlegroups.com.
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex"> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6080948D-C510-4C74-BF12-1= BD9DD3C4193%40gmail.com.

--
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/65d7b8a6-77fd-4e53-8e14-f98ceefd836bn%40googlegroups.= com.
------=_Part_4899_416900176.1666282352545-- ------=_Part_4898_1423643549.1666282352545--