From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30521 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felix SOEDJEDE Newsgroups: gmane.text.pandoc Subject: Re: [Docx reader] Keep more information between docx and native Date: Fri, 6 May 2022 06:26:10 -0700 (PDT) Message-ID: <68e8dae4-55a0-45f2-bb97-16a63354821dn@googlegroups.com> References: <8840906c-31d0-4d1b-b5e6-0d5c54ed3d1dn@googlegroups.com> <4c15ea651cd141649c80e84582f20f76@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1444_44355764.1651843570694" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17552"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC4JXJU7UYGRB46D2SJQMGQERO424PA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 06 15:26:18 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 1nmxyJ-0004JS-Hy for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 06 May 2022 15:26:15 +0200 Original-Received: by mail-ot1-f55.google.com with SMTP id j93-20020a9d17e6000000b00606458ed942sf2814338otj.12 for ; Fri, 06 May 2022 06:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=j1+EQ09HGbCs2fQdbS9HG6oGvKELa3ia0h8ecBDIYG0=; b=Nq/u5foIm+KwhMOr06nytZsiU0srk7RP2+nyhe++oVXd7c/udFHCUcE9c/WAX//HTO qucEJDmC/Wbn09XM/NC1U3cpni5eIQFoW7tR3CIefCom+qrhV175Ki840FQOygblsjwe hF/DQUmMhmKcTl2csQa7Jy6+rX/+6fF/FV5jzkjVZejLdA+jmCMTa+VH6Qmz6D/A24/j fkf2RTd7URKZ4x733Av9JEc3makpkwtF+zotWUKdYl5kjwWjaDBz8RkLEdzZXXfc6ID8 LyDDPyvr+XkCkFym4yMQ64Z25gX3/jZ/6hWEpaS1RPpKhU2isyWQHRxnO9oepWv71ueD 8rpg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=j1+EQ09HGbCs2fQdbS9HG6oGvKELa3ia0h8ecBDIYG0=; b=lUSAWCQHrz7JoLGMZp4wyWJMYsWlWQ0Li0/HoXz/RjdZFoSFIq2GyFElpohy5kRf3w EAsjTH2Se51FTXgOKMH9YvEpAvgRjLooCGcwoMCnp93w1u+k6r/eDzw0UeoGrMKTziqQ aArEM++i4Dw7l5Dr8jmZ/q/+17KMmt+lwHmIkD66RibGABS+8Eh6+TmCDthZJzSNvU2D Y92xHkEV525sVXOfS1faBdjF7ENyUFKNT+3wke3fh/MGM2+59/zAoK7c64jyw6Fdpm5l R4pjI/4cwEdwv++gHdEoDJ1ihQtcy/3RxNUMi4UBHrclU1ZNDF2sW/UwqTQxXeOFUFrm Zh9A== 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:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=j1+EQ09HGbCs2fQdbS9HG6oGvKELa3ia0h8ecBDIYG0=; b=d9zo12H9YcUCt2agq9xj2fWnyLQhZp5FQ+ypR1tHDiOKFuWPM/KNFLtOo17ooCFnnm 3epnj/uFGKbV4FFWQuqllDu0dtP2O1QcnLA5yinfzN06i2hnuP+6gV8xOg8Kpku/SwqV rhdvrotmdLteK/yZVO7NlyBgBDSf8qpF6/m8uKulf18WNUK8Mx2TfeWlNowk5Rj1BGXu FZsAver58yKkZEjkkY+RWqR33M9SH8qK/UCp8Y9rd2Dh24ArLf3rdDMhXfT61FQMq50g LcipJXDnJ4YUb5cxQVo2q+cifQYHsr16MfGyQXAxYcOAcgjamz+ssNxfQqIhzZ9k1eQZ SPBw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531fo17684GMucSnr830wOOYLO9kvLx5ARQXqgc81k6t47YgLvgm gnwqUYRmaAucz1qnmUmTcoU= X-Google-Smtp-Source: ABdhPJzDWnQ5yUQzQPLQEIKgssNxpBtY93vAOiOdaNA5H5CmUUjbA1AwmCSvr60+xAoetzDNo+SKUA== X-Received: by 2002:aca:2b11:0:b0:326:137b:ab12 with SMTP id i17-20020aca2b11000000b00326137bab12mr4747664oik.71.1651843574418; Fri, 06 May 2022 06:26:14 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:4486:0:b0:326:4611:e0d with SMTP id r128-20020aca4486000000b0032646110e0dls3216688oia.7.gmail; Fri, 06 May 2022 06:26:11 -0700 (PDT) X-Received: by 2002:a05:6808:6da:b0:325:9a3d:463c with SMTP id m26-20020a05680806da00b003259a3d463cmr1371254oih.206.1651843571329; Fri, 06 May 2022 06:26:11 -0700 (PDT) In-Reply-To: <4c15ea651cd141649c80e84582f20f76-NSENcxR/0n0@public.gmane.org> X-Original-Sender: soefelix-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:30521 Archived-At: ------=_Part_1444_44355764.1651843570694 Content-Type: multipart/alternative; boundary="----=_Part_1445_123546427.1651843570694" ------=_Part_1445_123546427.1651843570694 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks @Denis The custom-styles seems to be the good answer for the alignment. I will dig into it Regards, Felix Le jeudi 5 mai 2022 =C3=A0 10:18:59 UTC+2, denis...-NSENcxR/0n0@public.gmane.org a =C3=A9crit : > Hi, > > =20 > > I don=E2=80=99t know about the first two issues, but regarding alignment = : Maybe=20 > you can use the custom-styles extension for this. > > =20 > > Best, > Denis > > =20 > > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im=20 > Auftrag von *Felix SOEDJEDE > *Gesendet:* Mittwoch, 4. Mai 2022 20:01 > *An:* pandoc-discuss > *Betreff:* [Docx reader] Keep more information between docx and native > > =20 > > Hello, > > =20 > > I would like to known what is the best way to keep these type of=20 > information when converting from docx to native > > 1. Landscape > > Added in docx file by creating a "section break". > > Github issue: https://github.com/jgm/pandoc/issues/8054 > > 2. Columns > > Added in docx file by creating a "section break" > > Github issue: https://github.com/jgm/pandoc/issues/8057 > > 3. Alignement > > =20 > > I think it can be done using *fenced_divs*. > > =20 > > In my knowledge, lua-filters cannot do that because the information is no= t=20 > available. > > I may be at Haskell level but I'm not sure if it's possible to do it=20 > without adding code to Pandoc. > > I known PHP, Python and recently started writing lua for pandoc filters= =20 > but I don"t know Haskell nor Functional Programming. If it's possible, I= =20 > could try to learn Haskell. > > Thanks for your answers > > --=20 > You received this message because you are subscribed to the Google Groups= =20 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= =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/8840906c-31d0-4d1b-b5e6-= 0d5c54ed3d1dn%40googlegroups.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 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/68e8dae4-55a0-45f2-bb97-16a63354821dn%40googlegroups.com. ------=_Part_1445_123546427.1651843570694 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks @Denis

The custom-styles seems to be t= he good answer for the alignment.
I will dig into it
Regards,
Felix

Le jeudi 5 mai 2022 =C3=A0 10:18:= 59 UTC+2, denis...-NSENcxR/0n0@public.gmane.org a =C3=A9crit=C2=A0:

Hi,

=C2=A0

I don=E2=80=99t know about the = first two issues, but regarding alignment=C2=A0: Maybe you can use the cust= om-styles extension for this.

=C2=A0

Best,
Denis

=C2=A0

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...@googlegroups.c= om> Im Auftrag von Felix SOEDJEDE
Gesendet: Mittwoch, 4. Mai 2022 20:01
An: pandoc-discuss <pa= ndoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: [Docx reader] Keep more information between docx and native=

=C2=A0

Hello,

=C2=A0

I would like to known what is the best way to keep t= hese type of information when converting from docx to native<= /p>

1. Landscape

Added in docx file by creating a "section break= ".

2. Columns

Added in docx file by creating a "section break= "

3. Alignement

=C2=A0

I think it can be done using fenced_divs.<= /u>

=C2=A0

In my knowledge, lua-filters cannot do that because = the information is not available.

I may be at Haskell level but I'm not sure if it= 's possible to do it without adding code to Pandoc.

I known PHP, Python and recently started writing lua= for pandoc filters but I don"t know Haskell nor Functional Programmin= g. If it's possible, I could try to learn Haskell.

Thanks for your answers

--
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 pandoc-discus...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8840906c-31d0-4d1b-b5e6-0d= 5c54ed3d1dn%40googlegroups.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/68e8dae4-55a0-45f2-bb97-16a63354821dn%40googlegroups.= com.
------=_Part_1445_123546427.1651843570694-- ------=_Part_1444_44355764.1651843570694--