From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29898 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: "double emphasis" bug when converting to asciidoc? Date: Tue, 04 Jan 2022 19:17:42 -0800 Message-ID: References: <3f7b920b-c982-5be5-fa04-9025e008e518@tuxad.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24783"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Frank Bergmann To: Leonard Rosenthol , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBAU42SHAMGQENU3M4LI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 05 04:18:29 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f187.google.com ([209.85.214.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n4won-0006H4-AL for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 05 Jan 2022 04:18:29 +0100 Original-Received: by mail-pl1-f187.google.com with SMTP id t3-20020a170902bc4300b00149074b1606sf4771768plz.13 for ; Tue, 04 Jan 2022 19:18:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1641352708; cv=pass; d=google.com; s=arc-20160816; b=lBjNT4fXelFc/fi/oMT161LrsMlVmy9GjBEf5y2akyW+aWTfQMuvcWqlCDxS9xr9cZ kxYeID5vIxhCm2mlV3HG645K5Fc4QM6pPj9t1/mAaTE5hvkZ81wTJ7CciqKHA0DU82gZ LaPAAMEmmznTOzgAVaJ9Mrkg9qcRHPzWcYa1r3BZ/7Fy5m9en8QD6nyT54mShqSqElsq wlmTdbPh+2Kq/uYcVXT4EJwkgiq5j4YCIrxTF/2DeAUzh6ZoJyXRXDMtjUI7Jsp1rGnN e854MAnRqu4ADmKyNwAhvrYVVPwHZXwKyPGDE4OC3AIN7nyuUmmQGgk8Z9Xs498yLdDx 9I0g== 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:mime-version:message-id :date:references:in-reply-to:subject:cc:to:from:sender :dkim-signature; bh=qducPVu96YW6OgYThFL9vfdXzn4rCtKeLK1c4iCS0E4=; b=XEp9xfqRSk9pwiT7+FdZnrQYV3k8CX7d6Ar6ZRdKDO/U9ZA8n4aftDu5IuXY8ko3GM Uji1lXpEsJO/wAKFziajUcPYSArZKgmJ7ZvE1Z0NjPPubq7DSLn3FGntE59WD7O1hE8f eozxW6bU4plwicNV8cx9VqmPg1Q/DrEwkaa3lIBJWwFDiMYcBFZsWcS4zDevMZPXwOuf Xn3q5YQ7ePl5NZRCj0JVCdeTbH46Mt7LCDy9qEpHuGzTpRo9JOv+SiKniyrtAFZlGaBi 2q1OByoaqMDGz5yjJ9sr1HRsMq1flyxo658eklGwW5nfPCOYqQkO8hIm1eWYhy07VkQe nGkA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=zNMUhle4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=qducPVu96YW6OgYThFL9vfdXzn4rCtKeLK1c4iCS0E4=; b=qXLYIVi8N6JzxsSAYzi5RM97j3mkMp1TRc/Ia6W2fSFFPRCTI8W5XX4hoz36DaeWYN yp0vsXtxXjQQBIPrMIeCdjLJlTEA0FneY8a05CgQORXz8dZRnpbkskgvoy8pgqD6eQiM O0rRnuwdWiUhtjiDNEeJhx1CEiUO1hYtFICBKJB93LfuTH/SsVsGIofv1keMZHFAG/TG 2+jhCZHv4Br7/UMiburPlOvXIBt4HBqVzq5qHw3b1Guuv+jdO0osIrI6PCNDB3sMYWyB l0j/FyViDoW3COw5VQCx7uxAi8Oxh4cuBrkOOdEUEXC4BZ2pvQZpa/3yRS8PHwTKbpK4 y1xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=qducPVu96YW6OgYThFL9vfdXzn4rCtKeLK1c4iCS0E4=; b=7lo3HMnB/QI7QrCMtcaYt1O6kc6lUkFY1e9A7MgbnI71vgIaAWrKIOcj1Z8WnfpXec T1KPaecwGDUCn10O0I+TXWjAOX2DvPoU3NDw9v2fgYHLS4TsNcxIAcsW85YRP7IN6r5Q ob9QYDlRgCq1j8LhU2guCyqblfkNypP9T7b38O79k+tsKNssnpplv/nJ1ZFaoQ+0Lx/+ vghCKHk/d64S4UQlMbaLwBpdi3i1i6wnPDQ/rnX7CDqlBKyAnmYJdIJztJ1bVpkaoKoz KWW1eDMN9LOql5BSeBF7HSk0RH7dg9wz1gsIZdhq+vF0aaAWYvGMTYAC9bEPmj/WAAJe JV1w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533ellZVP8C+Y652j3JpMrtxXt43jLgeZJJl7YEHav/YIJE5I6rq N1WN7g5nmbSfBeb9YAuKNTM= X-Google-Smtp-Source: ABdhPJzK9ePahftGwLG9tg2ulo88zX8ahx9t3zDMjuaV7GKsbSjPFhRuC8nAmC9NX2juT1cVOPt5Tw== X-Received: by 2002:a65:6a93:: with SMTP id q19mr9918105pgu.155.1641352708116; Tue, 04 Jan 2022 19:18:28 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:34cc:: with SMTP id b195ls8352079pga.10.gmail; Tue, 04 Jan 2022 19:18:26 -0800 (PST) X-Received: by 2002:a63:e616:: with SMTP id g22mr46765455pgh.466.1641352706023; Tue, 04 Jan 2022 19:18:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641352706; cv=none; d=google.com; s=arc-20160816; b=MUogfGJXBxIyLegtN3/wuL6QbUIus7KgGwecBzJmpEq19ue5cr355nxUYHM5+71od1 z8u8JOxqXolcO+zq10uUoOAIGioHQcVw9XLhW3LTFL0FAgLmq7ZrL4vWUh07wEXMlEl7 hBWijswPWUALS2Xr27s+c6BYQ9jECz0hel6atLfTu4VRQR5Bg7ABTMA8JUq6q+JjmXv3 48hMcMKQjw277vjbD/bQhy+HFKSUWnvHR4dVGcKwdu9gIJEBl/ztDsmaHIlfu1IXtc90 QSeCu+7j1VswVKK7TEAGthzo5H2wyjvp9mfTNe5FuDK75TYzxwh6IxwmNRH6i6ENGG8G Zg4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=wb68ApcqHxvppBYm2S7tDhvAVlZgsmse8LeFB+ZgwWQ=; b=XBDK1AFQlsyLBXSAt/ixCQ8L7pw0y96drrEHD2WKHCxEFvsoDJOUq/RN+lnSsfbbyY 6DKGhfvs/kKOm8YUrBspyupURxMpnKnqtSeHQm7hC2Tcf4QyoCc5M47d/XTNfYxoeUk5 MCAsrUZGQ03MlQxNG+ZcjqhRty9+FWFsogYG9c3o0ZDqO6BSx/2/r0S6gcOx1E1BkxZ2 o8aNCaeXC+M51u2VrAL8ar/AXQ3VFcbEGdzmkT17HvR1iWaHYs1TCIDkvi1a49M5ZqIv GXrzhuPmc/+H5SyiE0BLqWiCFClVXEl3VYOWtIXLP3Fa33UQmAr08VPHoY/fTL1DrU9z fdng== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=zNMUhle4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com. [2607:f8b0:4864:20::102c]) by gmr-mx.google.com with ESMTPS id v14si1851986plo.5.2022.01.04.19.18.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jan 2022 19:18:26 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) client-ip=2607:f8b0:4864:20::102c; Original-Received: by mail-pj1-x102c.google.com with SMTP id n30-20020a17090a5aa100b001b2b6509685so5088627pji.3 for ; Tue, 04 Jan 2022 19:18:26 -0800 (PST) X-Received: by 2002:a17:902:c008:b0:149:346b:cb85 with SMTP id v8-20020a170902c00800b00149346bcb85mr52346033plx.122.1641352704944; Tue, 04 Jan 2022 19:18:24 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id ds24sm646280pjb.36.2022.01.04.19.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 19:18:24 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 97560A29D; Tue, 4 Jan 2022 22:17:42 -0500 (EST) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=zNMUhle4; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:29898 Archived-At: That's helpful. Please submit a bug report at https://github.com/jgm/pandoc/issues Leonard Rosenthol writes: > The AsciiDoc specs on emphasis/italics is here - > https://docs.asciidoctor.org/asciidoc/latest/text/italic/ - and talks about > the intraword scenario. > > Hope that helps. > > Leonard > > On Tue, Jan 4, 2022 at 2:13 PM John MacFarlane wrote: > >> >> I see this in the code: >> >> inlineToAsciiDoc opts (Emph lst) = do >> contents <- inlineListToAsciiDoc opts lst >> isIntraword <- gets intraword >> let marker = if isIntraword then "__" else "_" >> return $ marker <> contents <> marker >> >> >> So apparently in asciidoc you use __ for intraword emphasis >> (I don't use asciidoc myself). >> >> The problem may be that this is a context asciidoc doesn't >> consider "intraword." >> >> Anyway, please submit a bug report and link here. >> >> Frank Bergmann writes: >> >> > Hi, >> > >> > I found a strange behaviour when converting some HTML files to asciidoc. >> > >> > Versions used: >> > asciidoc 9.1.0 >> > pandoc 2.16.2 >> > >> > Example input: >> > >> > >> > >> > >> > Xx >> > >> > >> > Xx, >> > >> > >> > >> > With "pandoc --wrap=none -f html -t asciidoc" I get this asciidoc output: >> > >> > link:x.htm[_Xx_]__,__ >> > >> > The double underscores look "suspicious" and with "asciidoc -b >> > docbook;xmllint" I get: >> > >> > z.xml:10: parser error : Unescaped '<' not allowed in attributes values >> > link:x.htm> > role="Xx">,> > >> > The related docbook line which was created by asciidoc: >> > >> > link:x.htm> > role="Xx">, >> > >> > *Is this a known bug?* >> > >> > >> > If I add a space before comma... >> > >> > Xx , >> > >> > then I get >> > >> > link:x.htm[_Xx_] _,_ >> > >> > which causes no issue. Also adding a space before the emphasis... >> > >> > Xx , >> > >> > create an asciidoc file which can be rendered: >> > >> > link:x.htm[_Xx_] _,_ >> > >> > >> > >> > Does someone know this? Does a fix already exist? >> > >> > >> > cheers, >> > Frank >> > >> > -- >> > 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/3f7b920b-c982-5be5-fa04-9025e008e518%40tuxad.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/m2v8yzpb5x.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net >> . >> > > -- > 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/CALu%3Dv3JE2PPCY8%3DagCY9wtvwrMKXAidpSVFN650oc%2BHge8J3dw%40mail.gmail.com.