From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28439 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Bracke Newsgroups: gmane.text.pandoc Subject: Re: Proposed new list type Date: Tue, 25 May 2021 06:20:01 -0700 (PDT) Message-ID: References: <4e936aa2-41d6-4d68-ba5a-bea916754922n@googlegroups.com> <11e20690-21cc-4287-81b0-e5f3e191cf1bn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_834_763829208.1621948801038" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7070"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDM4NA6G6UGRBAXTWOCQMGQER7OLQIQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 25 15:20:04 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f63.google.com ([209.85.210.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1llWya-0001cC-AN for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 May 2021 15:20:04 +0200 Original-Received: by mail-ot1-f63.google.com with SMTP id c19-20020a0568303153b0290315c1232768sf19558687ots.9 for ; Tue, 25 May 2021 06:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=QpeTwbA0WSTQ2N3roBnTGnqE5idYY8saVTaaBYdGvKw=; b=aYbeO37pYhIxq1X7T+Yeh3XRe6oAqfokXVfnv2y0GXGn8194F1jWxKD+oMnJY4HMJz xPVgYPIjDkq93etjSSfGfbmAZOLE+XlGBi2+PH37krm++5fKJW/470AWvpbVR7oE7X0f Xo6HsQ0Af64wZG/7ArUW5TLhhXiHbyYgWUl7yVfGxzKOa2oMrZSBK/yM8+vYnTNfAUWV dLfue3jWgZJnCMc9md6q8PRJVt280cU7V48Wh87yEGx93/G2TVnbH8MH6+eu/dYCpJ+6 jpCvX2625s6SPHfGG/I9t1SQgKtOMcrCdgIXCa7z9MPDWYzAtX1blBDngBCE/06X3qJM QmCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=QpeTwbA0WSTQ2N3roBnTGnqE5idYY8saVTaaBYdGvKw=; b=MNbIW+4UBAQydpM1d6ZWb2Y1S0DZdE83ENT8NPaKSVYzpzhB7W/cpClY62CRdW0LXh UwwG4fC2z07zrhoHXVwuvc49vw2Cb5GGllXq4yz13HLiUkRBZR9cbXu/GAGCpBBBgEk4 oaKNEUp8tbm0x/d4e06lrlEOxzNJvwb+UyGCP5LxM6Rq7YY/K6qThBOpc6cSDpj42tdo NhC9vkB/dPgsmQlu8rAPuJEvAp62D4grHtYovB5K5zgxjbIESUlaC7I64apQVta7Q4Gm QAHFAVgaLp2yH7IbcvMOlKTUekdfxIMGNxEeAb2eUCAUasNPPDoK8Z0wGrqJMzIjaHFP f1mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=QpeTwbA0WSTQ2N3roBnTGnqE5idYY8saVTaaBYdGvKw=; b=QlADiCrybHIVK0XItk4U33Nky1w2stOfoOnXJm9cN3hTefsknRcp/TH7KekSP+ymLu lM98NqNJnyCMUT3KuPfD7Pu2imlgrAVHYLJ+n5pyVjOo3kkJm/fxAgz5OXOFCjGvWxxC gTETET7AFpYWArHwMvoC0SMGc5Jd1KBytATSP05Rg92e8D6ch9gzKBa7payLQOX4We9z IMVmwXf5dSVyn4geWX6ryAnonP4u5NBANPADugJ4dQNWkemUj82aK/gqGi1VuYBiXGZd 4wIXu9+mmhE12OaNRMyIdzEprOYED/eAgIWQ8x4aNNGF4xEimgmHxFvrS/WaYZElRbxN Th+A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5309qk8hUrTA3JOnd2J55CGwyPUpWMvb88aGC1PKJK1b2SP9J0Eu 4bK58LukjRNhiy6svpdnGTI= X-Google-Smtp-Source: ABdhPJw65yDHhTLy+sgMHN9K0D3eUmEMgqk72BtuVDOhzH2LSOvN+SiJ5vMRlZ5nHEjEKE4dDPjFsQ== X-Received: by 2002:aca:4fc2:: with SMTP id d185mr2727733oib.123.1621948803344; Tue, 25 May 2021 06:20:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:3807:: with SMTP id f7ls5114704oia.10.gmail; Tue, 25 May 2021 06:20:01 -0700 (PDT) X-Received: by 2002:a05:6808:3dc:: with SMTP id o28mr2785253oie.64.1621948801694; Tue, 25 May 2021 06:20:01 -0700 (PDT) In-Reply-To: <11e20690-21cc-4287-81b0-e5f3e191cf1bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: milan.bracke-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:28439 Archived-At: ------=_Part_834_763829208.1621948801038 Content-Type: multipart/alternative; boundary="----=_Part_835_1192830616.1621948801038" ------=_Part_835_1192830616.1621948801038 Content-Type: text/plain; charset="UTF-8" Hi, This thread seems to have been forgotten. What do you think about my last proposal? On Tuesday, May 11, 2021 at 4:04:45 PM UTC+2 Milan Bracke wrote: > Hi, > > Thanks for your feedback, and sorry for taking a while to respond. > > Your objections are very reasonable and parsing these lists as regular > paragraphs is a decent alternative, but it also has its drawbacks. So I > came up > with a third solution. The main drawback was that these lists without > markers > are often used to add paragraphs in a list item without visually adding a > new > list element or ending the list. By using paragraphs, we would visually > end the > list. My solution to this is to add the list items without markers as > paragraphs to the last item of the list immediately before if there is > one. In > the other cases we propose to just use paragraphs as you suggested. > > I have attached a docx file and an HTML file to demonstrate both cases and > how > they would be rendered with my solution. > > What are your thoughts on this solution? If you think it's good I'll send a > pull request either Friday or in two weeks. > On Tuesday, May 4, 2021 at 7:39:23 PM UTC+2 John MacFarlane wrote: > >> >> I guess I do have objections to features that get implemented >> in just a couple of formats, leaving the work of implementing >> them in others to other people. >> >> There's also a question whether it makes sense to support >> this kind of list -- that depends on whether it has a reasonable >> rendering in enough of the formats we support. (Particularly >> in Markdown, which is supposed to be expressive enough for >> everything in the AST, with the current exception of some of >> the new table features.) >> >> What about parsing these docx lists as just lists of regular >> paragraphs? Then they'll render pretty well in every output >> format. >> >> Milan Bracke writes: >> >> > Hi, >> > >> > Both docx and HTML have a list type named "none", where no marker is >> shown. >> > However, Pandoc doesn't support these types of lists and will put >> numbers >> > instead. See the attached docx file for an example. >> > >> > We would like to add a ListNumberStyle called None in pandoc-types and >> use >> > it in >> > the docx reader and HTML writer. For HTML5, we can't use the "type" >> > attribute so >> > we will have to fall back on the "list-style-type" CSS as described >> here: >> > https://www.w3schools.com/tags/att_ol_type.asp, and for docx the >> change >> > seems >> > simple since all the types can be set with w:numFmt. >> > >> > We'd prefer not to implement the usage of the new type in the other >> readers >> > and >> > writers yet. (We'll of course avoid breaking them.) We only need it in >> the >> > two >> > mentioned above and we don't master all the file types in Pandoc. Is >> this >> > OK and >> > should we make an issue to track the progress in the other readers and >> > writers >> > when people implement the new type there? >> > >> > Do you have any feedback or objections? If there are no objections, >> we'll >> > make >> > a pull request soon. >> > >> > -- >> > 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/msgid/pandoc-discuss/4e936aa2-41d6-4d68-ba5a-bea916754922n%40googlegroups.com. >> >> > -- 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/msgid/pandoc-discuss/cbd38158-110b-4ecb-8fa4-ee87f1b886e5n%40googlegroups.com. ------=_Part_835_1192830616.1621948801038 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

This thread seems to have been forgotten.= What do you think about my last proposal?
On Tuesday, May 11, 2021 at 4:04= :45 PM UTC+2 Milan Bracke wrote:
Hi,

Thanks for your feedback, and sorry for taki= ng a while to respond.

Your objections are very reasonable and parsi= ng these lists as regular
paragraphs is a decent alternative, but it als= o has its drawbacks. So I came up
with a third solution. The main drawba= ck was that these lists without markers
are often used to add paragraphs= in a list item without visually adding a new
list element or ending the= list. By using paragraphs, we would visually end the
list. My solution = to this is to add the list items without markers as
paragraphs to the la= st item of the list immediately before if there is one. In
the other cas= es we propose to just use paragraphs as you suggested.

I have attach= ed a docx file and an HTML file to demonstrate both cases and how
they w= ould be rendered with my solution.

What are your thoughts on this so= lution? If you think it's good I'll send a
pull request either F= riday or in two weeks.
On Tuesday, May 4, 2021 at 7:39:23 PM UTC+2 John MacFarlan= e wrote:

I guess I do have objections to features that get implemented
in just a couple of formats, leaving the work of implementing
them in others to other people.

There's also a question whether it makes sense to support
this kind of list -- that depends on whether it has a reasonable
rendering in enough of the formats we support. (Particularly
in Markdown, which is supposed to be expressive enough for
everything in the AST, with the current exception of some of
the new table features.)

What about parsing these docx lists as just lists of regular
paragraphs? Then they'll render pretty well in every output
format.

Milan Bracke <milan....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes= :

> Hi,
>
> Both docx and HTML have a list type named "none", where = no marker is shown.
> However, Pandoc doesn't support these types of lists and will = put numbers
> instead. See the attached docx file for an example.
>
> We would like to add a ListNumberStyle called None in pandoc-types= and use=20
> it in
> the docx reader and HTML writer. For HTML5, we can't use the &= quot;type"=20
> attribute so
> we will have to fall back on the "list-style-type" CSS a= s described here:
> https://www.w3schools.com/tags/att_ol_type.asp, and for docx t= he change=20
> seems
> simple since all the types can be set with w:numFmt.
>
> We'd prefer not to implement the usage of the new type in the = other readers=20
> and
> writers yet. (We'll of course avoid breaking them.) We only ne= ed it in the=20
> two
> mentioned above and we don't master all the file types in Pand= oc. Is this=20
> OK and
> should we make an issue to track the progress in the other readers= and=20
> writers
> when people implement the new type there?
>
> Do you have any feedback or objections? If there are no objections= , we'll=20
> make
> a pull request soon.
>
> --=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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4e93= 6aa2-41d6-4d68-ba5a-bea916754922n%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/cbd38158-110b-4ecb-8fa4-ee87f1b886e5n%40googlegroups.= com.
------=_Part_835_1192830616.1621948801038-- ------=_Part_834_763829208.1621948801038--