From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31963 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Ottinger Newsgroups: gmane.text.pandoc Subject: NOTE and WARNING in DocBook -> Word conversions Date: Fri, 6 Jan 2023 11:57:18 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1886_624403600.1673035038895" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28948"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCRIPYPRWQFBBIH24GOQMGQE5GKCEYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 06 20:57:24 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pDsqC-0007KN-Ds for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 06 Jan 2023 20:57:24 +0100 Original-Received: by mail-ot1-f64.google.com with SMTP id t13-20020a9d748d000000b00682cd587d0csf1193451otk.7 for ; Fri, 06 Jan 2023 11:57:24 -0800 (PST) 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:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=0gJW1tkXHI2Lk8fN+Bt05S7hPPqdsujiT9SQC3hLdPI=; b=nYDISJfephT8eEYjfFY5daxYoT20/z8NAQ8BsogMSAuh1ULJlYCOy03iCDIVShLi1q CMo2Hre4ueA1Soqe28aFZEpvkClZl55Q7bfQOVMhEtKfd33qWdzXLr9L1b1AxMrAC/n6 R+mZgra1LBQ1CDMupZwXj0x2EGt+gpAfrEZNaQVZxTggy0vPXlyHjVANsjNvFAy7C8kq tQUKZ0zIenW1Rt2qg6xmXt3H9O95jukcc4SEZqKHbMUudO5WlG7fO8YuM7IvVhVbdLN3 7lzpsiW1OBWCM31IoAlqCpvnC4tlgdSE4+Rr7KmFY4KZR0JO6KECatLzooJSGJxv/VcH 5sEA== 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:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=0gJW1tkXHI2Lk8fN+Bt05S7hPPqdsujiT9SQC3hLdPI=; b=MDvMhNl6mJjAZdn2T8sDjn/0Cv6Vf4AyAjg3NIUXNoh3zXxdHqYLCm1CeXH3mnKHOH BdlOjXcswzIBR5E+SSRqQGJf+09VhvFJ0nmL6TZ685fWScNMcgUHHAk7dCxRIhWtOjGK HJlFOxM+DVFyO9Kh3Rma8oeb0HCbmWXerzcC48WySqWMuYFQtxMZ9AFIE0fTgq3sl6HQ 6KEWxvU1UhulMj4m1a2TlzIsAk0TC9ij5mhiLIIcCrVqmto0SL1JYjTVrws1r9X6ef6j ZOuY2QGK2v351+LfBx+aTH6jV5kQ+0kC/IzfNDOFiwYAOD/jNj1OXwECMIPExdYS/izG +GPw== 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 :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=0gJW1tkXHI2Lk8fN+Bt05S7hPPqdsujiT9SQC3hLdPI=; b=ld7mJVs4vseOlcwIV/RK0MeDUrydABSjk/YuCSvlVMDiiB087nf9qkCPW7jWBchEj7 jgRh3dtb/E/BgbmkqLmsN12zAmmWcjYFgfiZT1tk5UIFZMYUTPcAGhDOzxh+9m4OVywm +qgSGZQcR8RUH5CEpB7PB8J4KZ0CKtMnzHv2Ol3l6RPGc0U2rRU61eFH6kIiisD9hXcC 7bqOPeqWYtmDQLFIYqTf6k/7tpL2xtxt0UmPEZp/7/tzmrtIex1ljQaCy3t9uKUc0zDo ZADCbutngjmwRMmQduyjWQ2Q4fWQNLddHQT+ZS4cjkJ+hj7yCZA1SRqgqtg4G/uRbZLp WvTw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2krmsN0Z6jK9ONUxp71gKyO/wKPX9Vi3f7lZWJBpe6/u0hCFPznj PJLhr0JdjQ4RYbSMFZbkuQQ= X-Google-Smtp-Source: AMrXdXsafDSncpycF7eRAvINIgTVXojbI5caSAwbrWxAHR6PhcNQPLfCGLeo4GPu+eg9oknHgHe9aA== X-Received: by 2002:aca:4257:0:b0:35e:a998:eb0c with SMTP id p84-20020aca4257000000b0035ea998eb0cmr2249809oia.132.1673035043066; Fri, 06 Jan 2023 11:57:23 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:6c1:0:b0:359:ca69:f473 with SMTP id 184-20020aca06c1000000b00359ca69f473ls11291807oig.10.-pod-prod-gmail; Fri, 06 Jan 2023 11:57:19 -0800 (PST) X-Received: by 2002:a05:6808:3a83:b0:35a:7d30:3ece with SMTP id fb3-20020a0568083a8300b0035a7d303ecemr3289333oib.21.1673035039676; Fri, 06 Jan 2023 11:57:19 -0800 (PST) X-Original-Sender: dreamreal-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:31963 Archived-At: ------=_Part_1886_624403600.1673035038895 Content-Type: multipart/alternative; boundary="----=_Part_1887_269673735.1673035038895" ------=_Part_1887_269673735.1673035038895 Content-Type: text/plain; charset="UTF-8" Hi. I have a book written with asciidoctor, from which I generate DocBook, and that's fed into pandoc to generate Word output. However, WARNING and NOTE types aren't rendered very well, I *think* - or it's entirely possible that they are rendered according to paragraph type and I just can't tell. In the AST, WARNING and NOTE generate XML: When AsciiDoctor generates HTML, it annotates the content with NOTE: and a paragraph with the contents of the note. In Word, generated from DocBook, this annotation (the "NOTE:") is lost. That's sort of understandable, but... how would one replicate the behavior from the HTML backend? The DocBook *has* the types; the AST in Pandoc contains a DIV with a class that maps to NOTE or WARNING, so the context is there, but I have no idea how I'd update the Word output to reflect the NOTE or WARNING type. -- 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/f05af404-d529-4e22-8334-3a637bc98efcn%40googlegroups.com. ------=_Part_1887_269673735.1673035038895 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi. I have a book written with asciidoctor, from which I generate DocBook, = and that's fed into pandoc to generate Word output.

Howe= ver, WARNING and NOTE types aren't rendered very well, I *think* - or it's = entirely possible that they are rendered according to paragraph type and I = just can't tell.

In the AST, WARNING and NOTE gene= rate XML:

<note><simpara /></note> <!-- for NOT= E types, obviously -->

When AsciiDoctor generates HTML, it annota= tes the content with NOTE: and a paragraph with the contents of the note. I= n Word, generated from DocBook, this annotation (the "NOTE:") is lost. That= 's sort of understandable, but... how would one replicate the behavior from= the HTML backend? The DocBook *has* the types; the AST in Pandoc contains = a DIV with a class that maps to NOTE or WARNING, so the context is there, b= ut I have no idea how I'd update the Word output to reflect the NOTE or WAR= NING type.

--
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/f05af404-d529-4e22-8334-3a637bc98efcn%40googlegroups.= com.
------=_Part_1887_269673735.1673035038895-- ------=_Part_1886_624403600.1673035038895--