From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32877 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: docx+styles to dokuwiki somehow ? Date: Mon, 26 Jun 2023 13:46:54 +0000 Message-ID: References: <16df0de5-a608-4e6e-9545-3fa338229d8fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5479"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBUFN42SAMGQE2PO4ISI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 26 15:47:01 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qDmYX-0001GG-48 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 26 Jun 2023 15:47:01 +0200 Original-Received: by mail-wm1-f64.google.com with SMTP id 5b1f17b1804b1-3f9b4491cdfsf22189425e9.1 for ; Mon, 26 Jun 2023 06:47:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687787220; cv=pass; d=google.com; s=arc-20160816; b=SQsu42Pw6nYSkLqh/G9NTyrkW9CvQlhWoP56PwfNrUSQwWaND5MpfRz2ZxwGitPB6H suMFILa6teDsJUnF4xTR1JY2t13OXhJ8B1QgZ9UOlP18C74FZFhHGO/oAoArY9hobxl8 kX3BgRrCutKwAPRizGgUoGd69IJ536DNYdjSUepMWw7vxXUAHkEnf7f9uNDJD2Of2DgS f3v3P+i4L7bqwF4M945hMRb47cMN+ADIdsoFNPfli9EU4GmVbqiwH6R9Xasoir792Htc QhzlwTwVzlol1pB2VUnaujmipx8+1IcRF1NrHY0VRPipD5o+u4PE7sALpKRlIlTkwCOt IPcA== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=A9pf3AfFbKvC0xeQXEqRvdkffGSqGVOtrLdpup3AOj4=; b=ZndR1ka1KJUm7YTE08oVI8Huxe+68Xb4iapvg8dEWkRFR56YsjsZCC8Xi1ERHtRncc qBWMUOpfFf5pMFdpbCGzrjp0EVHD0BU9LRfF8ObM+se+vmjVYKaU7E6Af77rHE74Kl1/ djJVPOkgs77leJoNqWIsueKtAxp/ASqGOC2NH/IV2KThpUVGP4oFq5hH3JE6xEGsqJ2a Iq9+1imTKaPmYmu8XKAVHWQ2rFf1MuGZ62hzGOvDsoCxsgtnARke5jifiwkX30uSWx2e 0rmn4dxW5QpRBMxsUaS+rMNoCyZLKLZt2NM+z6PPDxZYK2CLmKHf4iTK2waO48/D3gpA kZmQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YmSJ0Ow2; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1687787220; x=1690379220; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=A9pf3AfFbKvC0xeQXEqRvdkffGSqGVOtrLdpup3AOj4=; b=pFpZZo31M/zGeFijWXlzyGBPGVbmrl6TBRNDmNdroOLRUQMyBkAtqmO6FwO2HbIERA SoOgYhDqUDI4krn3qrlpxp8iSNtdyhma+b1kgS1R5EdjjxD2X84IRW+T3iS4A4xUKBdE uiea2PB9xcHWKsvb2TzxZ5c1hKSyDLMRnMaUKzJgzCRyzne3N21L0vU0b08tsgNVS5rH JIfzpGYnaIt2HJSbsJFSBs6Ux/zi2dgyx/RM9X2GlXG1YZAXZzsNgztN7M3GqchCDtku wo5KWwAW54e340B+J X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687787220; x=1690379220; 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-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=A9pf3AfFbKvC0xeQXEqRvdkffGSqGVOtrLdpup3AOj4=; b=M+iV4QmmIO40XQxfYDY/3dC0wcjmBIAlXPgU58vE5mtOkhGuE6GN36FTgWqAgIWdIo 7cSLUmskNTGWufHtpEFgY2ZdbOv5vi959xdL/WF9Cw52e3wm9vdp8ZwndK+IBVKWR7wX D0M08GdPrzkp7Bq15g/g0lg7DZJqB/3Cb8aoc+t4sSmriWKYzxT/JIMAuOb8Z2fuFrK0 wB/3LbTXtrULWUgedX1c+0ljOrI1 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDz78kqIw0Iow7abo7gXpomWxwtAVeBxzQsgFgHLN1XUNc5N2/lb BoSb7DaJ2Qv7dBSncURn8e8= X-Google-Smtp-Source: ACHHUZ7P1Bg3JcQY5nB4JnPWgkExX9ZBnkNxMoPnDLDRTB/TmquxJyI4IR4i12UO07ScjD93xfAavw== X-Received: by 2002:a7b:c4ca:0:b0:3fb:41b5:52eb with SMTP id g10-20020a7bc4ca000000b003fb41b552ebmr64072wmk.26.1687787220327; Mon, 26 Jun 2023 06:47:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1ca8:b0:3f3:15ce:e16c with SMTP id k40-20020a05600c1ca800b003f315cee16cls1586565wms.0.-pod-prod-01-eu; Mon, 26 Jun 2023 06:46:55 -0700 (PDT) X-Received: by 2002:a7b:ce06:0:b0:3fa:7b09:67b4 with SMTP id m6-20020a7bce06000000b003fa7b0967b4mr7924317wmc.20.1687787215786; Mon, 26 Jun 2023 06:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687787215; cv=none; d=google.com; s=arc-20160816; b=MTQKGn6oW9/cFV5nUlqcz6ipcbetcih06dV9O+OerAaksrj84pm0lobz+tD4byKURW aSfRWr7SN0b5FMeb3ShLs4XzW1OG9ppLGTs20ozz0bI1vfqoci+GoZcLIoUSYMCmvm+3 txSOp0qJlrEOlsA1eHDmY4lkpkwoWKImSNdSinXdyc8cHmJX2fIQxzx0aie1ojsl/6MC 6JzhPEGyzDkDnV++/lqzuMKDjoErINO4lf7V+l2fePU7PAeWwz7FK0Ms5PUyCFY6MuRu r7R4OhGFUbS6JxKkMJqaFDETk+m2Dgv2BL3Y9ncHAq8/0VrI9AGt4ij28huPoFAxpXGO jutw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=UGsLOkyBRGnq+0o2c8g2npJG/8Ryoa8My74sDeQFbo8=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=vUTk9zam5rXH6o60nEspVQ+hmJTcMoUtPd3cV5XRkmLlgKZiz3qlNfBcUwzYP4GNrA zQNnVz1TAFU2Y2hvKnDqFE/kZfcgV1BV9VUmnRkX3xMD6/duMgaMFBLkTaG/2jjIw6Xl eu6+dfuzS2PEIyxfFC1Aikx+ZwieObNCtLjR4SDQp3HuAX6dTcB53KXLspjyxPImlff1 TZm72ACAPw1wc6kMof6nwTt7ecmTgnmsXKVX6CPBKKrpHTrj05zNwALfuW0eCJeoqsvT wbvumqCOjlG7g4sedWDICoR0o4tRyGoxKevugTu4bCpgVjMCWXOFqP3hSsegQ6ZhxDZz t9ig== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YmSJ0Ow2; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id a16-20020a05600c349000b003facc8c7725si84048wmq.0.2023.06.26.06.46.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 06:46:55 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5AAFF240028 for ; Mon, 26 Jun 2023 15:46:55 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QqTfQ6x3mz6twD for ; Mon, 26 Jun 2023 15:46:54 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YmSJ0Ow2; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:32877 Archived-At: With `-f docx+styles`, you can replace the divs with custom styles with thi= s kind of filter: ``` function Div (div) local custom_style =3D div.attributes['custom-style'] if custom_style then local pre =3D pandoc.RawBlock('dokuwiki', '') local content =3D div.content table.insert(content, 1, pre) table.insert(content, post) return content end end ``` Le Monday 26 June 2023 =C3=A0 06:16:48AM, Sigismond a =C3=A9crit : > OK, let's try it another way : >=20 > I plan to use Pandoc to convert several docx files to dokuwiki format. > I need to retain custom block styles and convert them to custom tags, som= ething > like=C2=A0 >=20 > > my dokuwiki formatted block text > >=20 > Do I need to develop a custom dokuwiki writer from scratch to do that or = is > there a way to use lua filters for this purpose. > Sorry if the answer is obvious but I struggle to find relevant informatio= n. >=20 > Thanks for any help, > -- > =C2=A0 Pascal >=20 >=20 > Le mercredi 26 avril 2023 =C3=A0 16:14:20 UTC+2, pascal Conil-lacoste a = =C3=A9crit=C2=A0: >=20 > Hi everybody, >=20 > I've been using pandoc for some years to accomplish very straightforw= ard > conversions. > Now that what I plan to do is a little more complex, I struggle to fi= nd > relevant information. >=20 > I need to convert docx to dokuwiki and retain Word custom styles. I t= hought > I could use docx+styles to get custom-styles in dokuwiki files but th= ey > don't make it to the output and get stripped. >=20 > I would be happy with ::: {custom-style=3D"myStyle"} my text here::: >=20 > If I could get something along these lines, I would be able to apply = some > other simple transformation to get to the final dokuwiki files and tr= eat > them with a plugin. >=20 > What is the best way to achieve this ? Filters ? Templates ? >=20 > Any help welcome! >=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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/bdc377c4-3918-4f0f-a87e-a66f9d128cc2n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/bdc377c4-3918-4f0f-a= 87e-a66f9d128cc2n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=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/ZJmWzkAnDtwn4Ibt%40localhost.