From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29213 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: Corner case: Bullet list item starting with number with period Date: Thu, 9 Sep 2021 02:15:05 -0700 (PDT) Message-ID: <6553671e-f5b0-42d5-998b-38ae3639081en@googlegroups.com> References: <35cb746c-1ee8-4fd4-b7fb-753caa8c5e1dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_670_2002597449.1631178905183" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35516"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJOHJEKUQNBBGVB46EQMGQEJYZTQDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 09 11:15:08 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mOG9E-00090i-98 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 09 Sep 2021 11:15:08 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id v24-20020a056808005800b00268eee6bf2csf689983oic.11 for ; Thu, 09 Sep 2021 02:15:08 -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=SopZuMlvtk2sWG0dpX91nwNUFscXij1QEUF7TYhq0fw=; b=W2TB5FsqLNjyyoKSaS09tlQybyOrthICLykQCnR/CjVENV8LuRgvDh/7K9/9On0QC9 h56CrIyHUPOhkI5L/EHYMOk44M39DQ5C5tBBwPG+u/+hG9rqoTQEr/QRDuMZAj+CjiRt JhCfeARcLUsdh32xMs2zsa2YIPRWxzjHOQoi9b4KCgmXZUwHbeGGbd5SDdZjmidaOwx6 fQJ0asBdIfemAeZnxTaxA1LOygIc4HFwlhEJjKvGvBLupu+um9aiH+eBL4vR/gpjuUWA G0PYERFOGiEAhBPz5yxC5RNgIgKyzqFkEpRYFWyaZlxxjD2bYmrTdcWc3pu1yUS6gAZg 5dUw== 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=SopZuMlvtk2sWG0dpX91nwNUFscXij1QEUF7TYhq0fw=; b=Qfdsw7jkWLU+reJ65WKadaQt6++TUY6orc6ou+XofxJhY0QqpTyAsiLpyRs1CF2B/s yaee+y0f4fgTDXfPwh8BnC3Aw+Il2xSJg1Fd7EpxNzlzCxoTZOM/TaLuF1VKBFvcYXgd YScKpmPYJIPqIB3Por6uJ2LgkDjhSH4O+KafwabmRdM5IAKRhfoEev80uOOR6F33VG7D GrG0E7FZiHC/T0KmAV9laXGaMuZ36b6bGY9IRwcAuPK+yD+lc3UTMZnSBUZPmT24v/Cx a7zOIfwKhqfp1Ew6qQ8zpebG8wqDKuNIVyoKI2heRJADKl9Vm6FMYpobCjWU4s7byPhE q+2A== 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=SopZuMlvtk2sWG0dpX91nwNUFscXij1QEUF7TYhq0fw=; b=elu3C2wexVmbtiZQcsKGyrJe0Z+VfKiAVYRCkE4q7baf6ZVJWOc3JGOFKgj0SVFHns 8HpECcMvni82O9aBFZn4Vd/GdooRBZ6Fbt1jcT2jxPCE1GGud0jV17jjbTo2KGH5zNpG Vz13Fs4mA5lIjYvcvD6umgyzd6u14saPhOhDR1KQdg66EasuPKdykvMfYAREZxRWKF71 oie30ZP45R8fx48LHfatkYDvN5s7pRUAOC/Ke17HNSHmMrF9pLmaxUMMt3jmAPZqmZXp WdQGrSoS0LqdYjD8cC4J7k8MIkRPBCDAWB7E2KBerWU7jeX1PhXFKxRDrG372cmatLPN wzqA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532V1gYy1oQyZjRb3GveB9rvsoRCc1h5YkAPYVSN1mxn6nAewCN0 PVOFQee1rO1K0UVR280staA= X-Google-Smtp-Source: ABdhPJyc2YaH93wTHrvRhuQZqOE/ZT6Pz0yJazdinhpr6NG8mZJ4z4F87GGlSdpdqiB2/p6e/rE7Kg== X-Received: by 2002:a05:6808:14ca:: with SMTP id f10mr1272587oiw.131.1631178907234; Thu, 09 Sep 2021 02:15:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:d344:: with SMTP id d4ls78438oos.11.gmail; Thu, 09 Sep 2021 02:15:06 -0700 (PDT) X-Received: by 2002:a4a:9d0f:: with SMTP id w15mr1613588ooj.62.1631178905929; Thu, 09 Sep 2021 02:15:05 -0700 (PDT) In-Reply-To: X-Original-Sender: krulis.tomas.tk-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:29213 Archived-At: ------=_Part_670_2002597449.1631178905183 Content-Type: multipart/alternative; boundary="----=_Part_671_1255400831.1631178905183" ------=_Part_671_1255400831.1631178905183 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for the reply! Created as issue #7557 here: https://github.com/jgm/pandoc/issues/7557 Dne st=C5=99eda 8. z=C3=A1=C5=99=C3=AD 2021 v 18:58:59 UTC+2 u=C5=BEivatel = John MacFarlane napsal: > > If pandoc renders this differently than Emacs interprets it in > org-mode, then it can be considered a bug and should be reported > on the tracker. > > "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > > > Recently I have hit upon a corner case which (I guess) wasnt probably= =20 > > thought off. If you have bullet list item like so: > > > > ```{org} > > - 11. and 12. 09. meeting > > ``` > > > > converting to pandoc AST yields (ran in Try pandoc): > > > > ```{native} > > [BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[Plain [Str=20 > > "and",Space,Str "12.",Space,Str "09.",Space,Str "meeting"]]]]]]=20 > > ``` > > > > removing first number. > > > > Running this: > > > > ```{org} > > - 11. 09. meeting > > ``` > > > > removes even more: > > > > ```{native} > > [BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[OrderedList= =20 > > (1,DefaultStyle,DefaultDelim) [[Plain [Str "meeting"]]]]]]]]=20 > > ``` > > > > Meaning removes all numbers, whitespace, periods until alphabetic=20 > letters. > > > > Markdown conversion acts a little differently -- anything that seems as= =20 > a=20 > > start of ordered list is interpreted as such: > > > > ```{md} > > - 11. 09. meeting > > ``` > > > > produces: > > > > ```{native} > > [BulletList [[OrderedList (11,Decimal,Period) [[OrderedList=20 > > (9,Decimal,Period) [[Plain [Str "meeting"]]]]]]]]=20 > > ``` > > > > and=20 > > > > ```{md} > > - 11. and 12. 09. meeting > > ``` > > > > produces: > > > > ```{native}=20 > > [BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str=20 > "and",Space,Str=20 > > "12.",Space,Str "09.",Space,Str "meeting"]]]]]] > > ``` > > > > I guess that pandoc is making a pretty sensible assumption that all=20 > those=20 > > numbers ending with period are starting new ordered list from different= =20 > > number than 1. But that breaks when using dates in start of a bullet=20 > list=20 > > item. > > > > As far as I know pandoc doesnt have a "date" element, and I also think= =20 > it=20 > > doesnt need one. > > > > As proposed solution I think that another check in readers should be=20 > made=20 > > that all text after bullet mark should be considered regular text, unti= l=20 > a=20 > > linebreak; or 2 linebreaks with text starting in column 2 (for items=20 > > spanning more than one paragraph). > > > > I have hit upon this when converting Org mode to docx, in where the=20 > first=20 > > number is actually left off totally, so: > > > > ```{org} > > - 11. and 12. 09. meeting > > ``` > > > > results in: > > > > ```{docx} > > - and 12. 09. meeting > > ``` > > > > Which in my opinion is bug in all instances. If it would render ordered= =20 > > list in bullet list (as it should with): > > > > ```{native}=20 > > [BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str=20 > "and",Space,Str=20 > > "12.",Space,Str "09.",Space,Str "meeting"]]]]]] > > ``` > > > > it would be easier to notice, at least. > > > > Can this corner case be resolved better? Should I make this a github=20 > issue? > > > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an 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/35cb746c-1ee8-4fd4-b7fb-= 753caa8c5e1dn%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/6553671e-f5b0-42d5-998b-38ae3639081en%40googlegroups.com. ------=_Part_671_1255400831.1631178905183 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for the reply!

Created as issue #7557 here: https://github= .com/jgm/pandoc/issues/7557

Dne st=C5=99eda 8. z=C3=A1=C5=99=C3=AD 2021=C2=A0= v=C2=A018:58:59 UTC+2 u=C5=BEivatel John MacFarlane napsal:

If pandoc renders this differently than Emacs interprets it in
org-mode, then it can be considered a bug and should be reported
on the tracker.

"krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <krulis....-Re5JQEeQqe8@public.gmane.org= m> writes:

> Recently I have hit upon a corner case which (I guess) wasnt proba= bly=20
> thought off. If you have bullet list item like so:
>
> ```{org}
> - 11. and 12. 09. meeting
> ```
>
> converting to pandoc AST yields (ran in Try pandoc):
>
> ```{native}
> [BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[Plain [S= tr=20
> "and",Space,Str "12.",Space,Str "09."= ;,Space,Str "meeting"]]]]]]=20
> ```
>
> removing first number.
>
> Running this:
>
> ```{org}
> - 11. 09. meeting
> ```
>
> removes even more:
>
> ```{native}
> [BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[OrderedL= ist=20
> (1,DefaultStyle,DefaultDelim) [[Plain [Str "meeting"]]]]= ]]]]=20
> ```
>
> Meaning removes all numbers, whitespace, periods until alphabetic = letters.
>
> Markdown conversion acts a little differently -- anything that see= ms as a=20
> start of ordered list is interpreted as such:
>
> ```{md}
> - 11. 09. meeting
> ```
>
> produces:
>
> ```{native}
> [BulletList [[OrderedList (11,Decimal,Period) [[OrderedList=20
> (9,Decimal,Period) [[Plain [Str "meeting"]]]]]]]]=20
> ```
>
> and=20
>
> ```{md}
> - 11. and 12. 09. meeting
> ```
>
> produces:
>
> ```{native}=20
> [BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str "a= nd",Space,Str=20
> "12.",Space,Str "09.",Space,Str "meeting&= quot;]]]]]]
> ```
>
> I guess that pandoc is making a pretty sensible assumption that al= l those=20
> numbers ending with period are starting new ordered list from diff= erent=20
> number than 1. But that breaks when using dates in start of a bull= et list=20
> item.
>
> As far as I know pandoc doesnt have a "date" element, an= d I also think it=20
> doesnt need one.
>
> As proposed solution I think that another check in readers should = be made=20
> that all text after bullet mark should be considered regular text,= until a=20
> linebreak; or 2 linebreaks with text starting in column 2 (for ite= ms=20
> spanning more than one paragraph).
>
> I have hit upon this when converting Org mode to docx, in where th= e first=20
> number is actually left off totally, so:
>
> ```{org}
> - 11. and 12. 09. meeting
> ```
>
> results in:
>
> ```{docx}
> - and 12. 09. meeting
> ```
>
> Which in my opinion is bug in all instances. If it would render or= dered=20
> list in bullet list (as it should with):
>
> ```{native}=20
> [BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str "a= nd",Space,Str=20
> "12.",Space,Str "09.",Space,Str "meeting&= quot;]]]]]]
> ```
>
> it would be easier to notice, at least.
>
> Can this corner case be resolved better? Should I make this a gith= ub issue?
>
> --=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..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/35cb= 746c-1ee8-4fd4-b7fb-753caa8c5e1dn%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/6553671e-f5b0-42d5-998b-38ae3639081en%40googlegroups.= com.
------=_Part_671_1255400831.1631178905183-- ------=_Part_670_2002597449.1631178905183--